Hide Table of Contents
SOLIDWORKS Inspection API Help
Getting Started

Glossary Item Box

Activate SOLIDWORKS Inspection

To use the SOLIDWORKS Inspection add-in API, you must first:

  • Install SOLIDWORKS Professional or Premium 2022 (or later).
  • Install SOLIDWORKS Inspection 2022 (or later) with a valid license key.
  • Activate the SOLIDWORKS Inspection add-in from SOLIDWORKS Tools > Add-Ins....

After activation, you can access the user-interface help for SOLIDWORKS Inspection by selecting Tools > SOLIDWORKS Inspection > Help and Quick Start Tour. See how SOLIDWORKS Inspection works in the user interface before trying to balloon drawings using the SOLIDWORKS Inspection APIs.

How to balloon a drawing using the SOLIDWORKS Inspection APIs
  1. Refer to the Examples in IInspectionAddinMgr.
  2. Get the IInspectionMgr add-in object.
    Read Accessing SOLIDWORKS Add-in Objects to determine GUID or ProgID of the SOLIDWORKS Inspection add-in.

    For example in VBA,
    ...
    Dim inspectionMgr As SwInspectionAddin.InspectionAddinMgr
    Set progID = "Inspection.ExtSwAddin"
    Set inspectionMgr = SwApp.GetAddInObject(progID)
  3. Create inspection project data.

    Dim projData As SwInspectionAddin.InspectionProjectData 
    Set projData = inspectionMgr.CreateInspectionProjectData
    'Specify properties in projData, e.g.,
    projData.AutoBalloon = True
    projData.StartNumber = 1
    projData.IncludeNotes = True
    projData.NotesAutoExplode = True
    projData.Extraction = swiCharacteristicInfoExtraction_e.swiExtraction_Automatic
  4. Balloon the drawing by creating an inspection project based on an inspection template and project data.
    Templates are located in install_drive:\ProgramData\SOLIDWORKS\SolidWorks Inspection yyyy Addin\Templates.
     
    Dim inspectionProj As SwInspectionAddin.InspectionProject
    Set inspectionProj = inspectionMgr.CreateInspectionProject("dir_name\template_name.swidot", projData) 

 

How to modify the Bill of Characteristics

All of the inspection characteristics that you extracted during creation of the inspection project appear in a Bill of Characteristics.

Modifying Characteristics

After the model is ballooned, you can add/edit characteristics using:

     inspectionMgr.AddCharacteristics(annotationArray)

     inspectionMgr.GetCharacteristicIDs

     Set charData = inspectionMgr.GetCharacteristicsData(charID)

     inspectionMgr.EditCharacteristic(charID, charData)

Exploding Characteristics

You can separate characteristics into multiple instances whenever charData.Quantity >= 1 by setting:

     projData.CreateForEachInstance = True

 

How to add/edit balloons

Adding/Editing

If you set projData.AutoBalloon to false, you can manually add inspection balloons.

     Set aBalloonSettingsObject = inspectionMgr.GetBalloonSettings

     'Specify the offsets and/or properties in the aBalloonSettingsObject.

     Call inspectionMgr.AddOrEditBalloons(aBalloonSettingsObject)

Removing

You can remove all balloons from the document.

     Call inspectionMgr.RemoveBalloons

Selecting

You can select all balloons in the document.

     Call inspectionMgr.SelectBalloons

 

How to add customizations to the inspection report

Manage vendor, operation, and inspection method lists to fit company requirements by using:

 

How to publish and export inspection reports using the SOLIDWORKS Inspection APIs

After you finish ballooning the drawing, you can export the inspection report in a variety of file types:

 



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Getting Started
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2024 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.