Welcome
Expand Getting StartedGetting Started
Collapse SOLIDWORKS API HelpSOLIDWORKS API Help
Functional Categories
Release Notes
Collapse SolidWorks.Interop.sldworks NamespaceSolidWorks.Interop.sldworks Namespace
Overview
Collapse InterfacesInterfaces
Expand IAdvancedHoleElementDataIAdvancedHoleElementData
Expand IAdvancedHoleFeatureDataIAdvancedHoleFeatureData
Expand IAdvancedSaveAsOptionsIAdvancedSaveAsOptions
Expand IAdvancedSelectionCriteriaIAdvancedSelectionCriteria
Expand IAngleMateFeatureDataIAngleMateFeatureData
Expand IAnnotationIAnnotation
Expand IAnnotationViewIAnnotationView
Expand IAppearanceSettingIAppearanceSetting
Expand IAssemblyDocIAssemblyDoc
Expand IAttributeIAttribute
Expand IAttributeDefIAttributeDef
Expand IAutoBalloonOptionsIAutoBalloonOptions
Expand IBalloonOptionsIBalloonOptions
Expand IBalloonStackIBalloonStack
Expand IBaseFlangeFeatureDataIBaseFlangeFeatureData
Expand IBeltChainFeatureDataIBeltChainFeatureData
Expand IBendsFeatureDataIBendsFeatureData
Expand IBendTableIBendTable
Expand IBendTableAnnotationIBendTableAnnotation
Expand IBody2IBody2
Expand IBodyFolderIBodyFolder
Expand IBomFeatureIBomFeature
Expand IBomTableIBomTable
Expand IBomTableAnnotationIBomTableAnnotation
Expand IBomTableSortDataIBomTableSortData
Expand IBoundaryBossFeatureDataIBoundaryBossFeatureData
Expand IBoundingBoxFeatureDataIBoundingBoxFeatureData
Expand IBreakCornerFeatureDataIBreakCornerFeatureData
Expand IBreakLineIBreakLine
Expand IBrokenOutSectionFeatureDataIBrokenOutSectionFeatureData
Expand IBSurfParamDataIBSurfParamData
Expand ICalloutICallout
Expand ICalloutAngleVariableICalloutAngleVariable
Expand ICalloutLengthVariableICalloutLengthVariable
Expand ICalloutStringVariableICalloutStringVariable
Expand ICalloutVariableICalloutVariable
Expand ICameraICamera
Expand ICamFollowerMateFeatureDataICamFollowerMateFeatureData
Expand ICavityFeatureDataICavityFeatureData
Expand ICenterLineICenterLine
Expand ICenterMarkICenterMark
Expand ICenterOfMassICenterOfMass
Expand IChainPatternFeatureDataIChainPatternFeatureData
Expand IChamferFeatureData2IChamferFeatureData2
Expand ICircularPatternFeatureDataICircularPatternFeatureData
Expand IClosedCornerFeatureDataIClosedCornerFeatureData
Expand ICoEdgeICoEdge
Expand ICoincidentMateFeatureDataICoincidentMateFeatureData
Expand ICollisionICollision
Expand ICollisionDetectionGroupICollisionDetectionGroup
Expand ICollisionDetectionManagerICollisionDetectionManager
Expand IColorTableIColorTable
Expand ICombineBodiesFeatureDataICombineBodiesFeatureData
Expand ICommandGroupICommandGroup
Expand ICommandManagerICommandManager
Expand ICommandTabICommandTab
Expand ICommandTabBoxICommandTabBox
Expand ICommentIComment
Expand ICommentFolderICommentFolder
Expand IComplexCornerTreatmentFeatureDataIComplexCornerTreatmentFeatureData
Expand IComponent2IComponent2
Expand ICompositeCurveFeatureDataICompositeCurveFeatureData
Expand IConcentricMateFeatureDataIConcentricMateFeatureData
Expand IConfigurationIConfiguration
Expand IConfigurationManagerIConfigurationManager
Expand IConnectionPointFeatureDataIConnectionPointFeatureData
Expand ICoordinateSystemFeatureDataICoordinateSystemFeatureData
Expand ICoreFeatureDataICoreFeatureData
Expand ICornerManagementFolderICornerManagementFolder
Expand ICornerMemberICornerMember
Expand ICornerReliefFeatureDataICornerReliefFeatureData
Expand ICornerTreatmentFeatureDataICornerTreatmentFeatureData
Expand ICornerTreatmentGroupFolderICornerTreatmentGroupFolder
Expand ICosmeticThreadFeatureDataICosmeticThreadFeatureData
Expand ICosmeticWeldBeadFeatureDataICosmeticWeldBeadFeatureData
Expand ICosmeticWeldBeadFolderICosmeticWeldBeadFolder
Expand ICounterboreElementDataICounterboreElementData
Expand ICountersinkElementDataICountersinkElementData
Expand ICrossBreakFeatureDataICrossBreakFeatureData
Expand ICThreadICThread
Expand ICurveICurve
Expand ICurveDrivenPatternFeatureDataICurveDrivenPatternFeatureData
Expand ICurveParamDataICurveParamData
Expand ICustomBendAllowanceICustomBendAllowance
Expand ICustomPropertyManagerICustomPropertyManager
Expand ICutListSortOptionsICutListSortOptions
Expand IDatumOriginIDatumOrigin
Expand IDatumTagIDatumTag
Expand IDatumTargetSymIDatumTargetSym
Expand IDecalIDecal
Expand IDeleteBodyFeatureDataIDeleteBodyFeatureData
Expand IDeleteFaceFeatureDataIDeleteFaceFeatureData
Expand IDerivedPartFeatureDataIDerivedPartFeatureData
Expand IDerivedPatternFeatureDataIDerivedPatternFeatureData
Expand IDesignTableIDesignTable
Expand IDetailCircleIDetailCircle
Expand IDiagnoseResultIDiagnoseResult
Expand IDimensionIDimension
Expand IDimensionSensorDataIDimensionSensorData
Expand IDimensionToleranceIDimensionTolerance
Expand IDimPatternFeatureDataIDimPatternFeatureData
Expand IDimXpertManagerIDimXpertManager
Expand IDisplayDataIDisplayData
Expand IDisplayDimensionIDisplayDimension
Expand IDisplayStateSettingIDisplayStateSetting
Expand IDistanceMateFeatureDataIDistanceMateFeatureData
Expand IDocumentSpecificationIDocumentSpecification
Expand IDomeFeatureData2IDomeFeatureData2
Expand IDowelSymbolIDowelSymbol
Expand IDraftFeatureData2IDraftFeatureData2
Expand IDragArrowManipulatorIDragArrowManipulator
Expand IDragOperatorIDragOperator
Expand IDrawingComponentIDrawingComponent
Expand IDrawingDocIDrawingDoc
Expand IDrSectionIDrSection
Expand IEdgeIEdge
Expand IEdgeFlangeFeatureDataIEdgeFlangeFeatureData
Expand IEdgePointIEdgePoint
Expand IEndCapFeatureDataIEndCapFeatureData
Expand IEntityIEntity
Expand IEnumBodies2IEnumBodies2
Expand IEnumCoEdgesIEnumCoEdges
Expand IEnumComponents2IEnumComponents2
Expand IEnumDisplayDimensionsIEnumDisplayDimensions
Expand IEnumDocuments2IEnumDocuments2
Expand IEnumDrSectionsIEnumDrSections
Expand IEnumEdgesIEnumEdges
Expand IEnumFaces2IEnumFaces2
Expand IEnumLoops2IEnumLoops2
Expand IEnumModelViewsIEnumModelViews
Expand IEnumSketchHatchesIEnumSketchHatches
Expand IEnumSketchPointsIEnumSketchPoints
Expand IEnumSketchSegmentsIEnumSketchSegments
Expand IEnvironmentIEnvironment
Expand IEquationMgrIEquationMgr
Expand IExplodeStepIExplodeStep
Expand IExportPdfDataIExportPdfData
Expand IExtrudeFeatureData2IExtrudeFeatureData2
Expand IFace2IFace2
Expand IFaceDecalPropertiesIFaceDecalProperties
Expand IFaceHatchIFaceHatch
Expand IFacetIFacet
Expand IFaultEntityIFaultEntity
Expand IFeatMgrViewIFeatMgrView
Expand IFeatureIFeature
Expand IFeatureFolderIFeatureFolder
Expand IFeatureManagerIFeatureManager
Expand IFeatureStatisticsIFeatureStatistics
Expand IFillPatternFeatureDataIFillPatternFeatureData
Expand IFillSurfaceFeatureDataIFillSurfaceFeatureData
Expand IFlatPatternFeatureDataIFlatPatternFeatureData
Expand IFlatPatternFolderIFlatPatternFolder
Expand IFlyoutGroupIFlyoutGroup
Expand IFoldsFeatureDataIFoldsFeatureData
Expand IFrameIFrame
Expand IFreePointCurveFeatureDataIFreePointCurveFeatureData
Expand IGearMateFeatureDataIGearMateFeatureData
Expand IGeneralTableAnnotationIGeneralTableAnnotation
Expand IGeneralTableFeatureIGeneralTableFeature
Expand IGeneralToleranceTableAnnotationIGeneralToleranceTableAnnotation
Expand IGeneralToleranceTableFeatureIGeneralToleranceTableFeature
Expand IGraphicsBodyIGraphicsBody
Expand IGroundPlaneFeatureDataIGroundPlaneFeatureData
Expand IGtolIGtol
Expand IGtolFrameIGtolFrame
Expand IGussetFeatureDataIGussetFeatureData
Expand IHealEdgesFeatureDataIHealEdgesFeatureData
Expand IHelixFeatureDataIHelixFeatureData
Expand IHemFeatureDataIHemFeatureData
Expand IHingeMateFeatureDataIHingeMateFeatureData
Expand IHoleDataTableIHoleDataTable
Expand IHoleSeriesFeatureData2IHoleSeriesFeatureData2
Expand IHoleStandardsDataIHoleStandardsData
Expand IHoleTableIHoleTable
Expand IHoleTableAnnotationIHoleTableAnnotation
Expand IImport3DInterconnectDataIImport3DInterconnectData
Expand IImportDxfDwgDataIImportDxfDwgData
Expand IImportedCurveFeatureDataIImportedCurveFeatureData
Expand IImportIgesDataIImportIgesData
Expand IImportStepDataIImportStepData
Expand IIndentFeatureDataIIndentFeatureData
Expand IInstanceToVaryOptionsIInstanceToVaryOptions
Expand IInterferenceIInterference
Expand IInterferenceDetectionMgrIInterferenceDetectionMgr
Expand IIntersectFeatureDataIIntersectFeatureData
Expand IJogFeatureDataIJogFeatureData
Expand IJoinFeatureDataIJoinFeatureData
Expand ILayerILayer
Expand ILayerMgrILayerMgr
Expand ILibraryFeatureDataILibraryFeatureData
Expand ILightILight
Expand ILightDialogILightDialog
Expand ILinearCouplerMateFeatureDataILinearCouplerMateFeatureData
Expand ILinearPatternFeatureDataILinearPatternFeatureData
Expand ILocalCircularPatternFeatureDataILocalCircularPatternFeatureData
Expand ILocalCurvePatternFeatureDataILocalCurvePatternFeatureData
Expand ILocalLinearPatternFeatureDataILocalLinearPatternFeatureData
Expand ILocalSketchPatternFeatureDataILocalSketchPatternFeatureData
Expand ILockMateFeatureDataILockMateFeatureData
Expand ILoftedBendsFeatureDataILoftedBendsFeatureData
Expand ILoftFeatureDataILoftFeatureData
Expand ILoop2ILoop2
Expand IMacroFeatureDataIMacroFeatureData
Expand IMagneticLineIMagneticLine
Expand IManipulatorIManipulator
Expand IMassProperty2IMassProperty2
Expand IMassPropertyOverrideOptionsIMassPropertyOverrideOptions
Expand IMate2IMate2
Expand IMateControllerFeatureDataIMateControllerFeatureData
Expand IMateEntity2IMateEntity2
Expand IMateFeatureDataIMateFeatureData
Expand IMateInPlaceIMateInPlace
Expand IMateLoadReferenceIMateLoadReference
Expand IMateReferenceIMateReference
Expand IMaterialVisualPropertiesDataIMaterialVisualPropertiesData
Expand IMathPointIMathPoint
Expand IMathTransformIMathTransform
Expand IMathUtilityIMathUtility
Expand IMathVectorIMathVector
Expand IMBD3DPdfDataIMBD3DPdfData
Expand IMeasureIMeasure
Expand IMeshBodyIMeshBody
Expand IMessageBarDefinitionIMessageBarDefinition
Expand IMidSurface3IMidSurface3
Expand IMirrorComponentFeatureDataIMirrorComponentFeatureData
Expand IMirrorPartFeatureDataIMirrorPartFeatureData
Expand IMirrorPatternFeatureDataIMirrorPatternFeatureData
Expand IMirrorSolidFeatureDataIMirrorSolidFeatureData
Expand IMiterFlangeFeatureDataIMiterFlangeFeatureData
Expand IModelDoc2IModelDoc2
Expand IModelDocExtensionIModelDocExtension
Expand IModelerIModeler
Expand IModelViewIModelView
Expand IModelViewManagerIModelViewManager
Expand IModelWindowIModelWindow
Expand IMotionPlotAxisFeatureDataIMotionPlotAxisFeatureData
Expand IMotionPlotFeatureDataIMotionPlotFeatureData
Expand IMouseIMouse
Expand IMoveCopyBodyFeatureDataIMoveCopyBodyFeatureData
Expand IMoveFaceFeatureDataIMoveFaceFeatureData
Expand IMultiJogLeaderIMultiJogLeader
Expand INoteINote
Expand IOneBendFeatureDataIOneBendFeatureData
Expand IPackAndGoIPackAndGo
Expand IPageSetupIPageSetup
Expand IParagraphsIParagraphs
Expand IParallelMateFeatureDataIParallelMateFeatureData
Expand IParameterIParameter
Expand IPartDocIPartDoc
Expand IPartExplodeStepIPartExplodeStep
Expand IPartialEdgeFilletDataIPartialEdgeFilletData
Expand IPartingLineFeatureDataIPartingLineFeatureData
Expand IPartingSurfaceFeatureDataIPartingSurfaceFeatureData
Expand IPerpendicularMateFeatureDataIPerpendicularMateFeatureData
Expand IPlaneManipulatorIPlaneManipulator
Expand IPLMObjectSpecificationIPLMObjectSpecification
Expand IPMIDatumDataIPMIDatumData
Expand IPMIDatumFeatureIPMIDatumFeature
Expand IPMIDatumTargetIPMIDatumTarget
Expand IPMIDimensionDataIPMIDimensionData
Expand IPMIDimensionItemIPMIDimensionItem
Expand IPMIFrameDataIPMIFrameData
Expand IPMIGtolBoxDataIPMIGtolBoxData
Expand IPMIGtolDataIPMIGtolData
Expand IPMIGtolFrameDatumIPMIGtolFrameDatum
Expand IPrimaryMemberFacePlaneIntersectionFeatureDataIPrimaryMemberFacePlaneIntersectionFeatureData
Expand IPrimaryMemberPathSegmentFeatureDataIPrimaryMemberPathSegmentFeatureData
Expand IPrimaryMemberPointLengthFeatureDataIPrimaryMemberPointLengthFeatureData
Expand IPrimaryMemberRefPlaneFeatureDataIPrimaryMemberRefPlaneFeatureData
Expand IPrimaryStructuralMemberFeatureDataIPrimaryStructuralMemberFeatureData
Expand IPrint3DDialogIPrint3DDialog
Expand IPrintSpecificationIPrintSpecification
Expand IProfileCenterMateFeatureDataIProfileCenterMateFeatureData
Expand IProfileGroupFolderIProfileGroupFolder
Expand IProjectionArrowIProjectionArrow
Expand IProjectionCurveFeatureDataIProjectionCurveFeatureData
Expand IPropertyManagerPage2IPropertyManagerPage2
Expand IPropertyManagerPageActiveXIPropertyManagerPageActiveX
Expand IPropertyManagerPageBitmapIPropertyManagerPageBitmap
Expand IPropertyManagerPageBitmapButtonIPropertyManagerPageBitmapButton
Expand IPropertyManagerPageButtonIPropertyManagerPageButton
Expand IPropertyManagerPageCheckboxIPropertyManagerPageCheckbox
Expand IPropertyManagerPageComboboxIPropertyManagerPageCombobox
Expand IPropertyManagerPageControlIPropertyManagerPageControl
Expand IPropertyManagerPageGroupIPropertyManagerPageGroup
Expand IPropertyManagerPageLabelIPropertyManagerPageLabel
Expand IPropertyManagerPageListboxIPropertyManagerPageListbox
Expand IPropertyManagerPageNumberboxIPropertyManagerPageNumberbox
Expand IPropertyManagerPageOptionIPropertyManagerPageOption
Expand IPropertyManagerPageSelectionboxIPropertyManagerPageSelectionbox
Expand IPropertyManagerPageSliderIPropertyManagerPageSlider
Expand IPropertyManagerPageTabIPropertyManagerPageTab
Expand IPropertyManagerPageTextboxIPropertyManagerPageTextbox
Expand IPropertyManagerPageWindowFromHandleIPropertyManagerPageWindowFromHandle
Expand IPunchTableIPunchTable
Expand IPunchTableAnnotationIPunchTableAnnotation
Expand IRackPinionMateFeatureDataIRackPinionMateFeatureData
Expand IRayTraceRendererIRayTraceRenderer
Expand IRayTraceRendererOptionsIRayTraceRendererOptions
Expand IRefAxisIRefAxis
Expand IRefAxisFeatureDataIRefAxisFeatureData
Expand IReferenceCurveIReferenceCurve
Expand IReferencePointCurveFeatureDataIReferencePointCurveFeatureData
Expand IRefPlaneIRefPlane
Expand IRefPlaneFeatureDataIRefPlaneFeatureData
Expand IRefPointIRefPoint
Expand IRefPointFeatureDataIRefPointFeatureData
Expand IRenamedDocumentReferencesIRenamedDocumentReferences
Expand IRenderMaterialIRenderMaterial
Expand IReplaceFaceFeatureDataIReplaceFaceFeatureData
Expand IRevisionCloudIRevisionCloud
Expand IRevisionTableAnnotationIRevisionTableAnnotation
Expand IRevisionTableFeatureIRevisionTableFeature
Expand IRevolveFeatureData2IRevolveFeatureData2
Expand IRibFeatureData2IRibFeatureData2
Expand IRipFeatureDataIRipFeatureData
Expand IRoutingSettingsIRoutingSettings
Expand IRuledSurfaceFeatureDataIRuledSurfaceFeatureData
Expand ISafeArrayUtilityISafeArrayUtility
Expand ISaveBodyFeatureDataISaveBodyFeatureData
Expand ISaveTo3DExperienceOptionsISaveTo3DExperienceOptions
Expand IScaleFeatureDataIScaleFeatureData
Expand IScrewMateFeatureDataIScrewMateFeatureData
Expand ISecondaryMemberBetweenPointsFeatureDataISecondaryMemberBetweenPointsFeatureData
Expand ISecondaryMemberSupportPlaneFeatureDataISecondaryMemberSupportPlaneFeatureData
Expand ISecondaryMemberUpToMembersFeatureDataISecondaryMemberUpToMembersFeatureData
Expand ISecondaryStructuralMemberFeatureDataISecondaryStructuralMemberFeatureData
Expand ISectionViewDataISectionViewData
Expand ISelectDataISelectData
Expand ISelectionMgrISelectionMgr
Expand ISelectionSetISelectionSet
Expand ISelectionSetFolderISelectionSetFolder
Expand ISelectionSetItemISelectionSetItem
Expand ISensorISensor
Expand ISFSymbolISFSymbol
Expand ISheetISheet
Expand ISheetMetalFeatureDataISheetMetalFeatureData
Expand ISheetMetalFolderISheetMetalFolder
Expand ISheetMetalGaugeTableParametersISheetMetalGaugeTableParameters
Expand IShellFeatureDataIShellFeatureData
Expand IShutOffSurfaceFeatureDataIShutOffSurfaceFeatureData
Expand ISilhouetteEdgeISilhouetteEdge
Expand ISimpleCornerTreatmentFeatureDataISimpleCornerTreatmentFeatureData
Expand ISimpleFilletFeatureData2ISimpleFilletFeatureData2
Expand ISimpleHoleFeatureData2ISimpleHoleFeatureData2
Expand ISimulation3DContactFeatureDataISimulation3DContactFeatureData
Expand ISimulationDamperFeatureDataISimulationDamperFeatureData
Expand ISimulationForceFeatureDataISimulationForceFeatureData
Expand ISimulationGravityFeatureDataISimulationGravityFeatureData
Expand ISimulationMotorFeatureDataISimulationMotorFeatureData
Expand ISimulationSpringFeatureDataISimulationSpringFeatureData
Expand ISketchISketch
Expand ISketchArcISketchArc
Expand ISketchBlockDefinitionISketchBlockDefinition
Expand ISketchBlockInstanceISketchBlockInstance
Expand ISketchContourISketchContour
Expand ISketchedBendFeatureDataISketchedBendFeatureData
Expand ISketchEllipseISketchEllipse
Expand ISketchHatchISketchHatch
Expand ISketchLineISketchLine
Expand ISketchManagerISketchManager
Expand ISketchParabolaISketchParabola
Expand ISketchPathISketchPath
Expand ISketchPatternFeatureDataISketchPatternFeatureData
Expand ISketchPictureISketchPicture
Expand ISketchPointISketchPoint
Expand ISketchRegionISketchRegion
Expand ISketchRelationISketchRelation
Expand ISketchRelationManagerISketchRelationManager
Expand ISketchSegmentISketchSegment
Expand ISketchSlotISketchSlot
Expand ISketchSplineISketchSpline
Expand ISketchTextISketchText
Expand ISldWorksISldWorks
Expand ISlicingDataISlicingData
Expand ISlotMateFeatureDataISlotMateFeatureData
Expand ISmartComponentFeatureDataISmartComponentFeatureData
Expand ISMCornerReliefDataISMCornerReliefData
Expand ISMGussetFeatureDataISMGussetFeatureData
Expand ISMNormalCutFeatureData2ISMNormalCutFeatureData2
Expand ISMNormalCutGroupDataISMNormalCutGroupData
Expand ISnapShotISnapShot
Expand ISplineHandleISplineHandle
Expand ISplineParamDataISplineParamData
Expand ISplitBodyFeatureDataISplitBodyFeatureData
Expand ISplitLineFeatureDataISplitLineFeatureData
Expand ISpringISpring
Expand IStackedBalloonOptionsIStackedBalloonOptions
Expand IStatusBarPaneIStatusBarPane
Expand IStraightElementDataIStraightElementData
Expand IStraightTapElementDataIStraightTapElementData
Expand IStructuralMemberFeatureDataIStructuralMemberFeatureData
Expand IStructuralMemberGroupIStructuralMemberGroup
Expand IStructureSystemFolderIStructureSystemFolder
Expand IStructureSystemMemberFeatureDataIStructureSystemMemberFeatureData
Expand IStructureSystemMemberProfileIStructureSystemMemberProfile
Expand IStructureSystemSplitMemberIStructureSystemSplitMember
Expand ISurfaceISurface
Expand ISurfaceCutFeatureDataISurfaceCutFeatureData
Expand ISurfaceExtendFeatureDataISurfaceExtendFeatureData
Expand ISurfaceFlattenFeatureDataISurfaceFlattenFeatureData
Expand ISurfaceKnitFeatureDataISurfaceKnitFeatureData
Expand ISurfaceOffsetFeatureDataISurfaceOffsetFeatureData
Expand ISurfaceParameterizationDataISurfaceParameterizationData
Expand ISurfacePlanarFeatureDataISurfacePlanarFeatureData
Expand ISurfaceRadiateFeatureDataISurfaceRadiateFeatureData
Expand ISurfaceTrimFeatureDataISurfaceTrimFeatureData
Expand ISurfExtrudeFeatureDataISurfExtrudeFeatureData
Expand ISurfRevolveFeatureDataISurfRevolveFeatureData
Expand ISweepFeatureDataISweepFeatureData
Expand ISweptFlangeFeatureDataISweptFlangeFeatureData
Expand ISwOLEObjectISwOLEObject
Expand ISwPEClassFactoryISwPEClassFactory
Expand ISwPETokenISwPEToken
Expand ISWPropertySheetISWPropertySheet
Expand ISwSceneISwScene
Expand ISymmetricMateFeatureDataISymmetricMateFeatureData
Expand ITabAndSlotFeatureDataITabAndSlotFeatureData
Expand ITabAndSlotGroupDataITabAndSlotGroupData
Expand ITableAnchorITableAnchor
Expand ITableAnnotationITableAnnotation
Expand ITablePatternFeatureDataITablePatternFeatureData
Expand ITangentMateFeatureDataITangentMateFeatureData
Expand ITaperedTapElementDataITaperedTapElementData
Expand ITaskpaneViewITaskpaneView
Expand ITessellationITessellation
Expand ITextAndCustomPropertyITextAndCustomProperty
Expand ITextFormatITextFormat
Expand ITextureITexture
Expand IThickenFeatureDataIThickenFeatureData
Expand IThreadFeatureDataIThreadFeatureData
Expand ITitleBlockITitleBlock
Expand ITitleBlockTableAnnotationITitleBlockTableAnnotation
Expand ITitleBlockTableFeatureITitleBlockTableFeature
Expand IToolingSplitFeatureDataIToolingSplitFeatureData
Expand ITreeControlItemITreeControlItem
Expand ITriadManipulatorITriadManipulator
Expand ITwoMemberCornerTreatmentFeatureDataITwoMemberCornerTreatmentFeatureData
Expand IUniversalJointMateFeatureDataIUniversalJointMateFeatureData
Expand IUserNotificationDefinitionIUserNotificationDefinition
Expand IUserProgressBarIUserProgressBar
Expand IUserUnitIUserUnit
Expand IVariableFilletFeatureData2IVariableFilletFeatureData2
Expand IVertexIVertex
Expand IViewIView
Expand IView3DIView3D
Expand IWeldBeadIWeldBead
Expand IWeldmentBeadFeatureDataIWeldmentBeadFeatureData
Expand IWeldmentCutListAnnotationIWeldmentCutListAnnotation
Expand IWeldmentCutListFeatureIWeldmentCutListFeature
Expand IWeldmentTrimExtendFeatureDataIWeldmentTrimExtendFeatureData
Expand IWeldSymbolIWeldSymbol
Expand IWidthMateFeatureDataIWidthMateFeatureData
Expand IWizardHoleFeatureData2IWizardHoleFeatureData2
Expand IWrapSketchFeatureDataIWrapSketchFeatureData
Expand SolidWorks.Interop.swmotionstudy NamespaceSolidWorks.Interop.swmotionstudy Namespace
Expand SolidWorks.Interop.swdimxpert NamespaceSolidWorks.Interop.swdimxpert Namespace
Expand SolidWorks.Interop.swpublished NamespaceSolidWorks.Interop.swpublished Namespace
Expand SolidWorks.Interop.sw3dprinter NamespaceSolidWorks.Interop.sw3dprinter Namespace
Expand SolidWorks.Interop.dsgnchk NamespaceSolidWorks.Interop.dsgnchk Namespace
Expand SolidWorks.Interop.swhtmlcontrol NamespaceSolidWorks.Interop.swhtmlcontrol Namespace
Expand SolidWorks.Interop.swscanto3d NamespaceSolidWorks.Interop.swscanto3d Namespace
Expand SolidWorks.Interop.swconst NamespaceSolidWorks.Interop.swconst Namespace
Expand SolidWorks.Interop.swcommands NamespaceSolidWorks.Interop.swcommands Namespace
Expand SOLIDWORKS Electrical API HelpSOLIDWORKS Electrical API Help
Expand SOLIDWORKS PDM Professional API HelpSOLIDWORKS PDM Professional API Help
Expand PDM Pro API Web ServicePDM Pro API Web Service
Expand FeatureWorks API HelpFeatureWorks API Help
Expand SOLIDWORKS Costing API HelpSOLIDWORKS Costing API Help
Expand SOLIDWORKS Document Manager API HelpSOLIDWORKS Document Manager API Help
Expand SOLIDWORKS Inspection API HelpSOLIDWORKS Inspection API Help
Expand SOLIDWORKS Routing API HelpSOLIDWORKS Routing API Help
Expand SOLIDWORKS Simulation API HelpSOLIDWORKS Simulation API Help
Expand SOLIDWORKS Sustainability API HelpSOLIDWORKS Sustainability API Help
Expand SOLIDWORKS Toolbox API HelpSOLIDWORKS Toolbox API Help
Expand SOLIDWORKS Utilities API HelpSOLIDWORKS Utilities API Help
Expand eDrawings API HelpeDrawings API Help
Expand DraftSight API HelpDraftSight API Help
Expand Lisp Programming BasicsLisp Programming Basics
Expand Lisp Functions OverviewLisp Functions Overview
Expand Lisp Functions ReferenceLisp Functions Reference
Expand Visual Lisp Compatible FunctionsVisual Lisp Compatible Functions
Hide Table of Contents
IGtolFrame Interface

Allows access to indicators and XML strings for symbols in a Gtol feature control frame.

.NET Syntax

Visual Basic (Declaration) 
Public Interface IGtolFrame 
Visual Basic (Usage) 
Dim instance As IGtolFrame
C# 
public interface IGtolFrame 
C++/CLI 
public interface class IGtolFrame 

Example

'VBA
'====================================================
'Preconditions:
'1. Open a drawing that contains a GTol created with either SolidWorks 2021 or SolidWorks 2022/2022+.
'2. Open an Immediate window.
'
'Postconditions:
'1. Select a Gtol in the graphics area.
'   A Geometric Tolerance PropertyManager opens.
'2. Click on the macro window and press F5.
'3. Gtol format type and schema version print to the Immediate window.
'4. Press F5.
'5. The frame XML schema string prints to the Immediate window.
'6. Press F5.
'7. If the selected Gtol can be converted from 2021, it is attempted.
'8. Inspect the Immediate window.
'9. Press F5.
'10. Gets and sets From and To text and toggles SEPARATE REQUIREMENT.
'11. Inspect the Immediate window.
'12. Press F5.
'13. Gtol frames added and deleted.
'14. Inspect the Immediate window.
'15. Press F5.
'16. Add Indicator tests.
'17. Inspect the Immediate window.
'18. Press F5.
'19. Get Indicator tests.
'20. Inspect the Immediate window.
'21. Press F5.
'22. Delete Indicator tests.
'23. Inspect the Immediate window.
'24. Press F5.
'25. Miscellaneous Indicator tests.
'26. Inspect the Immediate window.
'27. Press F5.
'28. Tolerance type tests.
'29. Inspect the Immediate window.
'30. Press F5.
'31. Get and set symbol XML string.
'32. Inspect the Immediate window.
'====================================================
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Dim swSelMgr As SldWorks.SelectionMgr
Dim swGtol As SldWorks.Gtol
Dim swGtolFrame As SldWorks.GtolFrame
Dim swGtolFrame1 As SldWorks.GtolFrame
Dim FrameCount As Long
Dim sXMLString As String
Dim iIndicator As Long
Dim iFrame As Long
Dim lFormatType As Long
Dim lFormatType1 As Long
Dim lSchemaVersion As Long
Dim sSchemaString As String
Dim swConversionError As SwConst.swGtolFormatConversionError_e
Dim swFromText As String
Dim swToText As String
Dim swFromText1 As String
Dim swToText1 As String
Dim IndicatorCount As Long
Dim sDatum As String
Dim lBorderType As SwConst.swGtolIndicatorBorderType_e
Dim lTolType As SwConst.swGtolGeomCharSymbol_e
Dim swToleranceType As SwConst.swGtolGeomCharSymbol_e
Dim swTolType As Long
Dim pos As Long

Option Explicit

Sub main()

    Set swApp = Application.SldWorks
    Set swModel = swApp.ActiveDoc
    Set swSelMgr = swModel.SelectionManager
   
    Stop 'in the graphics area select Gtol created with either SolidWorks 2021 or SolidWorks 2022/2022+
   
    Debug.Print "Select object type as defined by swSelectType_e: " & swSelMgr.GetSelectedObjectType3(1, -1)
    Set swGtol = swSelMgr.GetSelectedObject6(1, -1)
   
    swApp.GetGtolFormatData lFormatType, lSchemaVersion
    Debug.Print "Gtol format type as defined by swGtolFormatType_e: " & lFormatType
    Debug.Print "Gtol schema version as defined by swGtolFormatSchemaVersion_e: " & lSchemaVersion
   
    Stop

    sSchemaString = swApp.GetGtolFrameXMLSchema
    Debug.Print "Gtol frame XML schema: " & sSchemaString
   
    Stop
   
    boolstatus = swGtol.CanConvertFormat
    If Not boolstatus = 0 Then
       
        lFormatType1 = swGtol.GetFormat
        If lFormatType1 = SwConst.swGtolFormatType_e.GTOL_SW2021 Then
           
            boolstatus = swModel.GetSaveFlag
            If boolstatus <> 0 Then
                swModel.Save
            End If
            Debug.Print "SaveFlag BEFORE ConvertFormat is called " & swModel.GetSaveFlag
            swConversionError = swGtol.ConvertFormat
            boolstatus = swModel.GetSaveFlag 'if successful, converted Gtol document should be dirty and return True
            Debug.Print "SaveFlag AFTER ConvertFormat is called " & boolstatus
            lFormatType1 = swGtol.GetFormat 'converted from 2021 to 2022
        End If
    End If
   
    Stop
   
    boolstatus = swGtol.GetFromTo
    boolstatus = swGtol.GetFromToText(swFromText, swToText)
   
    swFromText = "FromMe"
    swToText = "ToYou"
    boolstatus = swGtol.SetFromToText(True, swFromText, swToText)
    boolstatus = swGtol.GetFromTo
   
    swFromText1 = ""

    swToText1 = ""
    boolstatus = swGtol.GetFromToText(swFromText1, swToText1) 'should be "FromMe" and "ToMe"
   
    Debug.Print "From text: " & swFromText1
    Debug.Print "To text: " & swToText1
   
    boolstatus = swGtol.SeparateRequirement
    If Not boolstatus = 0 Then
        swGtol.SeparateRequirement = False
    Else
        swGtol.SeparateRequirement = True
    End If
   
    Debug.Print "SEPARATE REQUIREMENT ? " & swGtol.SeparateRequirement
   
    Stop
   
    FrameCount = swGtol.GetFrameCount
    Debug.Print "Frame count: " & FrameCount
    boolstatus = swGtol.AddFrame
    FrameCount = swGtol.GetFrameCount 'frame count should increase by one
    Debug.Print "Frame added. Frame count now: " & FrameCount
    boolstatus = swGtol.DeleteFrame(FrameCount)
    FrameCount = swGtol.GetFrameCount 'frame count should decrease by 1, as just added frame was deleted
    Debug.Print "Frame deleted. Frame count now: " & FrameCount
    boolstatus = swGtol.AddFrame
    FrameCount = swGtol.GetFrameCount 'frame count should increase by 1
    Debug.Print "Frame added. Frame count now: " & FrameCount
    
    Stop
   
    Set swGtolFrame = swGtol.GetFrame(FrameCount)
   
    IndicatorCount = swGtolFrame.GetIndicatorCount
   
    sDatum = "A"
   
    Debug.Print " "
    Debug.Print "Frame " & FrameCount & " IndicatorCount is " & IndicatorCount & ": AddIndicator test"
   
    'supported border types: swGtolIndicatorBorderType_CollectionPlane, swGtolIndicatorBorderType_OrientationPlane swGtolIndicatorBorderType_IntersectionPlane swGtolIndicatorBorderType_DirectionFeature
    'supported tolerance types: swGcsPARALLEL swGcsPERP swGcsANG swGcsCIRCRUNOUT swGcsSYMMETRY


    boolstatus = swGtolFrame.AddIndicator(SwConst.swGtolIndicatorBorderType_e.swGtolIndicatorBorderType_IntersectionPlane, SwConst.swGtolGeomCharSymbol_e.swGcsFLAT, sDatum) 'unsupported TolType
    Debug.Print "Unsupported TolType swGcsFLAT. AddIndicator return value is " & boolstatus
    boolstatus = swGtolFrame.AddIndicator(SwConst.swGtolGeomCharSymbol_e.swGcsFLAT, SwConst.swGtolGeomCharSymbol_e.swGcsSYMMETRY, sDatum) 'unsupported BorderType
    Debug.Print "Unsupported BorderType swGcsFLAT. AddIndicator return value is " & boolstatus
    boolstatus = swGtolFrame.AddIndicator(SwConst.swGtolIndicatorBorderType_e.swGtolIndicatorBorderType_IntersectionPlane, SwConst.swGtolGeomCharSymbol_e.swGcsSYMMETRY, sDatum) 'supported BorderType and TolType
    Debug.Print "Supported BorderType swGtolIndicatorBorderType_IntersectionPlane and TolType swGcsSYMMETRY. AddIndicator return value is " & boolstatus
   
    IndicatorCount = swGtolFrame.GetIndicatorCount
    Debug.Print ""
    Debug.Print "Frame " & FrameCount & " IndicatorCount after one successful AddIndicator is " & IndicatorCount 'should increase by 1 from AddIndicator success
    Debug.Print " "
   
    Stop
  
    IndicatorCount = swGtolFrame.GetIndicatorCount
    iIndicator = 0
    iFrame = 0
    FrameCount = swGtol.GetFrameCount
    Debug.Print "FrameCount is " & FrameCount & ": GetIndicator test"
    For iFrame = 1 To FrameCount
        lBorderType = -1
        lTolType = -1
        sDatum = ""
      
        Set swGtolFrame1 = swGtol.GetFrame(iFrame)
        For iIndicator = 1 To IndicatorCount
            boolstatus = swGtolFrame1.GetIndicator(iIndicator, lBorderType, lTolType, sDatum)
            Debug.Print "Frame: " & iFrame & " Indicator index: " & iIndicator & " (BorderType as defined by swGtolIndicatorBorderType_e  = " & lBorderType & " " & "TolType as defined by swGtolGeomCharSymbol_e = " & lTolType & " " & "Datum = " & sDatum & ")"
        Next
    Next
   
    Debug.Print " "
   
    Stop
   
    Debug.Print "Frame " & FrameCount & " DeleteIndicator test"
    boolstatus = swGtolFrame.DeleteIndicator(IndicatorCount)
    Debug.Print "DeleteIndicator return value is " & boolstatus
    IndicatorCount = swGtolFrame.GetIndicatorCount 'should decrease by 1, as indicator deleted
    Debug.Print "IndicatorCount is " & IndicatorCount & " after DeleteIndicator"
   
    Stop
   
    Debug.Print " "
    Debug.Print "Miscellaneous Indicator test:"
    boolstatus = swGtolFrame.AddIndicator(SwConst.swGtolIndicatorBorderType_e.swGtolIndicatorBorderType_OrientationPlane, SwConst.swGtolGeomCharSymbol_e.swGcsANG, sDatum) 'add indicator for different BorderType and TolType
    Debug.Print "Supported swGtolIndicatorBorderType_OrientationPlane BorderType AddIndicator return value is " & boolstatus
    IndicatorCount = swGtolFrame.GetIndicatorCount 'should increase by 1
    Debug.Print "Frame " & FrameCount & " IndicatorCount after one successful AddIndicator is " & IndicatorCount 'should increase by 1
    boolstatus = swGtolFrame.GetIndicator(IndicatorCount, lBorderType, lTolType, sDatum)
    Debug.Print "Frame " & FrameCount & " just added GetIndicator: " & " (BorderType = " & lBorderType & " " & "TolType = " & lTolType & " " & "Datum = " & sDatum & ")"
     
    If Not sDatum = "B" Then
        sDatum = "B"
    Else
        sDatum = "A"
    End If
   
    boolstatus = swGtolFrame.SetIndicator(IndicatorCount, SwConst.swGtolIndicatorBorderType_e.swGtolIndicatorBorderType_IntersectionPlane, SwConst.swGtolGeomCharSymbol_e.swGcsPERP, sDatum)
    Debug.Print "Indicator " & IndicatorCount & " SetIndicator return value is " & boolstatus
    boolstatus = swGtolFrame.GetIndicator(IndicatorCount, SwConst.swGtolIndicatorBorderType_e.swGtolIndicatorBorderType_IntersectionPlane, SwConst.swGtolGeomCharSymbol_e.swGcsFLAT, sDatum)
    Debug.Print "Indicator " & IndicatorCount & " SetIndicator values " & " (BorderType = " & lBorderType & " " & "TolType = " & lTolType & " " & "Datum = " & sDatum & ")"
    Debug.Print " "
   
    Stop
   
    Set swGtolFrame = swGtol.GetFrame(swGtol.GetFrameCount)
    Debug.Print "Frame " & 2 & " ToleranceType test"
   
    boolstatus = swGtolFrame.GetFrameToleranceType(swToleranceType)
    Debug.Print "GetFrameToleranceType " & "returned " & boolstatus
    Debug.Print "GetFrameToleranceType " & "before set returned tolerance type as defined by swGtolGeomCharSymbol_e: " & swToleranceType
    boolstatus = swGtolFrame.SetFrameToleranceType(SwConst.swGtolGeomCharSymbol_e.swGcsROUND)
    Debug.Print "SetFrameToleranceType " & "returned " & boolstatus
    boolstatus = swGtolFrame.GetFrameToleranceType(swTolType)
    Debug.Print "GetFrameToleranceType " & "returned " & boolstatus
    Debug.Print "GetFrameToleranceType " & "after set returned tolerance type as defined by swGtolGeomCharSymbol_e: " & swTolType
    Debug.Print ""
   
    Stop
   
    sXMLString = swGtolFrame.GetSymbolXml
    Debug.Print "Symbol XML string: " & sXMLString
   
    'Set a new symbol XML string of last added frame
    pos = -1
    pos = InStr(1, sXMLString, ".01") 'Note: converted Gtol has tolerance format of .01, not 0.01
    If Not pos = -1 Then
        sXMLString = Replace(sXMLString, ".01", ".02")
    Else
        pos = InStr(1, sXMLString, ".02")
        If Not pos = -1 Then
            sXMLString = Replace(sXMLString, ".02", ".01")
        End If
    End If
   
    boolstatus = swGtolFrame.SetSymbolXml(sXMLString)
    Debug.Print "New symbol XML string: " & sXMLString

End Sub

Example

Remarks

A geometric tolerance symbol adds geometric tolerances to parts and drawings using feature control frames.

This interface extends IGtol by supporting the new SOLIDWORKS 2022 Gtol architecture and providing the ability to specify Gtol frames using XML:

  • Left of Gtol you can add a single line of text and symbol (first frame only).
  • Above Gtol you can add multi-line text and symbol (top frame only).
  • Right of Gtol there can be indicator, datum, or text box. Multiple indicators are supported, but any text box must be at the end of the list of indicators. Text box can have only one line and symbol.
  • Below Gtol there can be additional frames, text, between instruction, from-to instruction, separate requirement label (bottom frame only).

For more information, see the SOLIDWORKS user-interface help > Detailing and Drawings > Annotations > Symbols > Geometric Tolerance Symbols topic.

Accessors

Access Diagram

See Also



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:   IGtolFrame Interface
*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) 2023 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.