Welcome
Getting Started
SolidWorks API Help
Functional Categories
Release Notes
SolidWorks.Interop.sldworks Namespace
Overview
Interfaces
IAdvancedSelectionCriteria
IAnnotation
IAnnotationView
IAppearanceSetting
IAssemblyDoc
IAttribute
IAttributeDef
IAutoBalloonOptions
IBalloonOptions
IBalloonStack
IBaseFlangeFeatureData
IBendsFeatureData
IBendTable
IBendTableAnnotation
IBody2
IBodyFolder
IBomFeature
IBomTable
IBomTableAnnotation
IBomTableSortData
IBreakCornerFeatureData
IBreakLine
IBrokenOutSectionFeatureData
IBSurfParamData
ICallout
ICamera
ICavityFeatureData
ICenterLine
ICenterMark
IChamferFeatureData2
ICircularPatternFeatureData
IClosedCornerFeatureData
ICoEdge
IColorTable
ICombineBodiesFeatureData
ICommandGroup
ICommandManager
ICommandTab
ICommandTabBox
IComment
ICommentFolder
IComponent2
Members
ICompositeCurveFeatureData
IConfiguration
IConfigurationManager
IConnectionPointFeatureData
ICoordinateSystemFeatureData
ICoreFeatureData
ICosmeticThreadFeatureData
ICThread
ICurve
ICurveDrivenPatternFeatureData
ICurveParamData
ICustomBendAllowance
ICustomPropertyManager
IDatumOrigin
IDatumTag
IDatumTargetSym
IDecal
IDeleteBodyFeatureData
IDeleteFaceFeatureData
IDerivedPartFeatureData
IDerivedPatternFeatureData
IDesignTable
IDetailCircle
IDiagnoseResult
IDimension
IDimensionSensorData
IDimensionTolerance
IDimXpertManager
IDisplayData
IDisplayDimension
IDisplayStateSetting
IDocumentSpecification
IDomeFeatureData2
IDowelSymbol
IDraftFeatureData2
IDragArrowManipulator
IDragOperator
IDrawingComponent
IDrawingDoc
IDrSection
IEdge
IEdgeFlangeFeatureData
IEdgePoint
IEndCapFeatureData
IEntity
IEnumBodies2
IEnumCoEdges
IEnumComponents2
IEnumDisplayDimensions
IEnumDocuments2
IEnumDrSections
IEnumEdges
IEnumFaces2
IEnumLoops2
IEnumModelViews
IEnumSketchHatches
IEnumSketchPoints
IEnumSketchSegments
IEnvironment
IEquationMgr
IExplodeStep
IExportPdfData
IExtrudeFeatureData2
IFace2
IFaceDecalProperties
IFaceHatch
IFaultEntity
IFeatMgrView
IFeature
IFeatureFolder
IFeatureManager
IFeatureStatistics
IFillSurfaceFeatureData
IFlatPatternFeatureData
IFlyoutGroup
IFoldsFeatureData
IFrame
IFreePointCurveFeatureData
IGeneralTableAnnotation
IGeneralTableFeature
IGtol
IGussetFeatureData
IHealEdgesFeatureData
IHelixFeatureData
IHemFeatureData
IHoleSeriesFeatureData
IHoleTable
IHoleTableAnnotation
IImportDxfDwgData
IImportedCurveFeatureData
IImportIgesData
IImportStepData
IInterference
IInterferenceDetectionMgr
IJogFeatureData
IJoinFeatureData
ILayer
ILayerMgr
ILibraryFeatureData
ILight
ILightDialog
ILinearPatternFeatureData
ILocalCircularPatternFeatureData
ILocalLinearPatternFeatureData
ILoftedBendsFeatureData
ILoftFeatureData
ILoop2
IMacroFeatureData
IMagneticLine
IManipulator
IMassProperty
IMate2
IMateEntity2
IMateInPlace
IMateLoadReference
IMateReference
IMaterialVisualPropertiesData
IMathPoint
IMathTransform
IMathUtility
IMathVector
IMeasure
IMidSurface3
IMirrorPatternFeatureData
IMirrorSolidFeatureData
IMiterFlangeFeatureData
IModelDoc2
IModelDocExtension
IModeler
IModelView
IModelViewManager
IModelWindow
IMotionPlotAxisFeatureData
IMotionPlotFeatureData
IMouse
IMoveCopyBodyFeatureData
IMoveFaceFeatureData
IMultiJogLeader
INote
IOneBendFeatureData
IPackAndGo
IPageSetup
IParameter
IPartDoc
IPartingLineFeatureData
IPartingSurfaceFeatureData
IPlaneManipulator
IPrint3DDialog
IProjectionArrow
IProjectionCurveFeatureData
IPropertyManagerPage2
IPropertyManagerPageActiveX
IPropertyManagerPageBitmap
IPropertyManagerPageBitmapButton
IPropertyManagerPageButton
IPropertyManagerPageCheckbox
IPropertyManagerPageCombobox
IPropertyManagerPageControl
IPropertyManagerPageGroup
IPropertyManagerPageLabel
IPropertyManagerPageListbox
IPropertyManagerPageNumberbox
IPropertyManagerPageOption
IPropertyManagerPageSelectionbox
IPropertyManagerPageSlider
IPropertyManagerPageTab
IPropertyManagerPageTextbox
IPropertyManagerPageWindowFromHandle
IPunchTable
IPunchTableAnnotation
IRayTraceRenderer
IRayTraceRendererOptions
IRefAxis
IRefAxisFeatureData
IReferenceCurve
IReferencePointCurveFeatureData
IRefPlane
IRefPlaneFeatureData
IRefPoint
IRefPointFeatureData
IRenderMaterial
IReplaceFaceFeatureData
IRevisionTableAnnotation
IRevisionTableFeature
IRevolveFeatureData2
IRibFeatureData2
IRipFeatureData
IRoutingSettings
IRuledSurfaceFeatureData
ISaveBodyFeatureData
IScaleFeatureData
ISectionViewData
ISelectData
ISelectionMgr
ISensor
ISFSymbol
ISheet
ISheetMetalFeatureData
IShellFeatureData
IShutOffSurfaceFeatureData
ISilhouetteEdge
ISimpleFilletFeatureData2
ISimpleHoleFeatureData2
ISimulation3DContactFeatureData
ISimulationDamperFeatureData
ISimulationForceFeatureData
ISimulationGravityFeatureData
ISimulationMotorFeatureData
ISimulationSpringFeatureData
ISketch
ISketchArc
ISketchBlockDefinition
ISketchBlockInstance
ISketchContour
ISketchedBendFeatureData
ISketchEllipse
ISketchHatch
ISketchLine
ISketchManager
ISketchParabola
ISketchPath
ISketchPatternFeatureData
ISketchPicture
ISketchPoint
ISketchRegion
ISketchRelation
ISketchRelationManager
ISketchSegment
ISketchSlot
ISketchSpline
ISketchText
ISldWorks
ISmartComponentFeatureData
ISnapShot
ISplineHandle
ISplineParamData
ISplitBodyFeatureData
ISplitLineFeatureData
ISpring
IStackedBalloonOptions
IStatusBarPane
IStructuralMemberFeatureData
IStructuralMemberGroup
ISurface
ISurfaceCutFeatureData
ISurfaceExtendFeatureData
ISurfaceKnitFeatureData
ISurfaceOffsetFeatureData
ISurfaceParameterizationData
ISurfacePlanarFeatureData
ISurfaceRadiateFeatureData
ISurfaceTrimFeatureData
ISurfExtrudeFeatureData
ISurfRevolveFeatureData
ISweepFeatureData
ISwOLEObject
ISWPropertySheet
ITableAnchor
ITableAnnotation
ITablePatternFeatureData
ITaskpaneView
ITessellation
ITextFormat
ITexture
IThickenFeatureData
ITitleBlock
ITitleBlockTableAnnotation
ITitleBlockTableFeature
IToolingSplitFeatureData
ITreeControlItem
ITriadManipulator
IUserProgressBar
IUserUnit
IVariableFilletFeatureData2
IVertex
IView
IWeldBead
IWeldmentBeadFeatureData
IWeldmentCutListAnnotation
IWeldmentCutListFeature
IWeldmentTrimExtendFeatureData
IWeldSymbol
IWizardHoleFeatureData2
IWrapSketchFeatureData
SolidWorks.Interop.swmotionstudy Namespace
SolidWorks.Interop.swdimxpert Namespace
SolidWorks.Interop.swpublished Namespace
SolidWorks.Interop.sw3dprinter Namespace
SolidWorks.Interop.dsgnchk Namespace
SolidWorks.Interop.swhtmlcontrol Namespace
SolidWorks.Interop.swconst Namespace
SolidWorks.Interop.swcommands Namespace
FeatureWorks API Help
SolidWorks Document Manager API Help
eDrawings API Help
SolidWorks Routing API Help
SolidWorks Simulation API Help
SolidWorks Utilities API Help
SolidWorks Workgroup PDM API Help
Hide Table of Contents Show Table of Contents
IComponent2 Interface Members

The following tables list the members exposed by IComponent2.

Public Properties

 NameDescription
 PropertyComponentReferenceGets or sets a component reference for this component.  
 PropertyExcludeFromBOMGets or sets whether to exclude a component from the bill of materials.  
 PropertyIMaterialPropertyValuesGets or sets the material properties for the selected component in the active configuration.  
 PropertyIsVirtualGets whether this component is a virtual component.

NOTE: This property is a get-only property. Set is not implemented.  

 PropertyMaterialPropertyValuesGets or sets the material properties for the selected component in the active configuration.  
 PropertyNameObsolete. Superseded by IComponent2::Name2.  
 PropertyName2Gets or sets the name of the selected component.   
 PropertyPresentationTransformGets or sets the component transform.  
 PropertyReferencedConfigurationGets or sets the active configuration used by this component.  
 PropertyReferencedDisplayStateGets the active display state of this component.  
 PropertySolvingGets the Solve as option (rigid or flexible) of this component.  
 PropertyTransformObsolete. Superseded by IComponent2::Transform2.  
 PropertyTransform2Gets or sets the component transform.  
 PropertyUseNamedConfigurationGets whether a specified configuration or the in-use/last active configuration is used.  
 PropertyVisibleGets the visibility state of this component.  
Top

Public Methods

 NameDescription
 MethodAddPropertyExtensionStores a float, string, or integer value on this component.  
 MethodDeSelectDeselects this component.  
 MethodEnumBodiesObsolete. Superseded by IComponent2::EnumBodies2.  
 MethodEnumBodies2Gets the bodies in the component in a multibody part.  
 MethodEnumRelatedBodiesCreates an enumerated list of bodies.  
 MethodEnumSectionedBodiesGets the sectioned bodies seen in the specified view and returns them in an enumerated list.  
 MethodFeatureByNameGets the specified feature for this component.  
 MethodFindAttributeFinds an attribute on a component.  
 MethodFirstFeatureGets the first feature in this component.  
 MethodGetBodiesObsolete. Superseded by IComponent2::GetBodies2.  
 MethodGetBodies2Obsolete. Superseded by IComponent2::GetBodies3.  
 MethodGetBodies3Gets the bodies in the component.  
 MethodGetBodyGets the body that belongs to this instance of this component.  
 MethodGetBoxGets the bounding box for component.  
 MethodGetChildrenGets all of the children components of this component.  
 MethodGetConstrainedStatusGets the constrained status of this component.  
 MethodGetCorrespondingGets the corresponding object in the context of the assembly for a particular instance of the component.  
 MethodGetCorrespondingEntityGets the entity that corresponds with the Dispatch pointer in the context of the component.  
 MethodGetDecalsGets the decals applied to this component.  
 MethodGetDecalsCountGets the number of decals applied to this component.  
 MethodGetDrawingComponentGets the drawing component for this component.  
 MethodGetHiddenUnloadedChildrenCountGets the number of hidden children components of this component that were not loaded when an assembly was opened selectively.  
 MethodGetMaterialIdNameGets the identifying name of the material for this component object.  
 MethodGetMaterialPropertyValues2Gets the material properties for this component.  
 MethodGetMaterialUserNameGets the user-visible name of the material for this component.  
 MethodGetMatesGets the mates for this component.  
 MethodGetModelDocObsolete. Superseded by IComponent2::GetModelDoc2.  
 MethodGetModelDoc2Gets the model document for this component.  
 MethodGetModelMaterialPropertyValuesGets the material properties of this lightweight component in the specified configuration.  
 MethodGetModelTextureGets the texture applied to this lightweight component in the specified configuration.  
 MethodGetParentGets the parent component.  
 MethodGetPathNameGets the full path name for this component.  
 MethodGetPropertyExtensionGets a float, string, or integer value from a component.  
 MethodGetRenderMaterialsGets the appearances applied to this component.  
 MethodGetRenderMaterialsCountGets the number of appearances applied to this component.  
 MethodGetSectionedBodiesGets the sectioned bodies in the specified section view.  
 MethodGetSelectByIDStringGets the name of the component for possible use with IModelDocExtension::SelectByID2, for selectively opening a document using ISldWorks::OpenDoc7 and IDocumentSpecification, etc.  
 MethodGetSmartComponentDataGets the features, components, and feature references of a Smart Component.  
 MethodGetSuppressionGets the suppression state of this component.  
 MethodGetTessNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation for the component.  
 MethodGetTessTrianglesGets the triangles that make up the shaded picture tessellation for this component.  
 MethodGetTessTriStripEdgesGets the edge IDs for the triangle strips.  
 MethodGetTessTriStripNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation for this component.  
 MethodGetTessTriStripsGets the vertices that make up the shaded picture tessellation for this component.  
 MethodGetTextureGets the texture applied to this component in the specified configuration.  
 MethodGetTotalTransformCombines the original transform of this component with the presentation transform of this component.  
 MethodGetUnloadedComponentNamesGets the component's unloaded children components' path names, referenced configuration names, reasons why they are unloaded, document types, and names.  
 MethodGetVisibilityGets the visibility state for this component.  
 MethodGetXformObsolete. Superseded by IComponent2::Transform2.  
 MethodHasUnloadedComponentsGets whether this component has hidden or suppressed unloaded children components.  
 MethodIFindAttributeFinds an attribute on a component.  
 MethodIGetBodyGets the body that belongs to this instance of this component.  
 MethodIGetBoxGets the bounding box for component.  
 MethodIGetChildrenGets all of the children components of this component.  
 MethodIGetChildrenCountGets the number of children components for this component.  
 MethodIGetCorrespondingEntityGets the entity that corresponds with the Dispatch pointer in the context of the component.  
 MethodIGetDecalsGets the decals applied to this component.  
 MethodIGetMaterialPropertyValues2Gets the material properties for this component.  
 MethodIGetMaterialPropertyValuesForFaceGets the color of the specified face.  
 MethodIGetModelDocObsolete. Superseded by IComponent2::GetModelDoc2.  
 MethodIGetModelMaterialPropertyValuesGets the material properties of this lightweight component in the specified configuration.  
 MethodIGetRenderMaterialsGets the appearances applied to this component.  
 MethodIGetTemporaryBodyIDGets the current body tag ID, which is not a permanent ID.  
 MethodIGetTessNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation for the component.  
 MethodIGetTessTriangleCountGets the number of triangles that make up the shaded picture tessellation for this component.  
 MethodIGetTessTrianglesGets the triangles that make up the shaded picture tessellation for this component.  
 MethodIGetTessTriStripEdgesGets the edge IDs for the triangle strips.  
 MethodIGetTessTriStripEdgeSizeGets the number of tessellation triangle edges.  
 MethodIGetTessTriStripNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation for this component.  
 MethodIGetTessTriStripsGets the vertices that make up the shaded picture tessellation for this component.  
 MethodIGetTessTriStripSizeGets the array size of floats required to contain the data returned when calling IComponent2::IGetTessTriStrips.  
 MethodIGetVisibilityGets the visibility state for this component.  
 MethodIGetXformObsolete. Superseded by IComponent2::Transform2.  
 MethodIListExternalFileReferencesObsolete. Superseded by IComponent2::IListExternalFileReferences2.  
 MethodIListExternalFileReferences2Gets the names and statuses of the external references on the component.  
 MethodIRemoveMaterialProperty2Removes material property values from the component.  
 MethodIsDisplayDataOutOfDateGets the status of the display data for this component.  
 MethodIsEnvelopeGets information about whether this component is an envelope.  
 MethodISetMaterialPropertyValues2Sets the material properties for this component.  
 MethodISetVisibilitySets the visibility state for this component.  
 MethodISetXformObsolete. Superseded by IComponent2::Transform2.  
 MethodISetXformAndSolveObsolete. Superseded by IComponent2::SetTransformAndSolve2.  
 MethodIsFixedGets whether the component is fixed or floating.  
 MethodIsHiddenGets whether this component is hidden or suppressed.  
 MethodIsLoadedGets whether a component is loaded.  
 MethodIsMirroredGets whether this component is mirrored.  
 MethodIsPatternInstanceGets whether the component is a member of a pattern instance.  
 MethodIsRootGets whether this component is the root component.  
 MethodIsSmartComponentGets whether this component is a Smart Component.  
 MethodIsSuppressedGets whether this component is suppressed.  
 MethodListExternalFileReferencesObsolete. Superseded by IComponent2::ListExternalFileReferences2.  
 MethodListExternalFileReferences2Gets the names and statuses of the external file references on the component.  
 MethodListExternalFileReferencesCountGets the number of external references on the component.  
 MethodRemoveMaterialPropertyObsolete. Superseded by IComponent2::RemoveMaterialProperty2.  
 MethodRemoveMaterialProperty2Removes the appearance from the component.  
 MethodRemovePresentationTransformRemoves the presentation transform from this component.  
 MethodRemoveTextureRemoves the texture from this component in the specified configuration.  
 MethodRemoveTextureByDisplayStateRemoves the texture applied to this component in the specified display state.  
 MethodReplaceReferenceObsolete. Superseded by AssemblyDoc::ReplaceComponents.  
 MethodResetPropertyExtensionClears all of the values stored in the property extension.  
 MethodSaveVirtualComponentSaves a virtual component to an external file.  
 MethodSelectObsolete. Superseded by IComponent2::Select3.  
 MethodSelect2Obsolete. Superseded by IComponent2::Select3.  
 MethodSelect3Obsolete. Superseded by IComponent2::Select4.  
 MethodSelect4Selects the component.  
 MethodSelectByMarkObsolete. Superseded by IComponent2::Select3.  
 MethodSetCosmosWorksMaterialAssigns the material to use during analysis to this component.  
 MethodSetMaterialIdNameSets the material ID for this component. This value is not visible to the user.  
 MethodSetMaterialPropertyValues2Sets the material properties for this component.  
 MethodSetMaterialUserNameSets the material user name for this component.  
 MethodSetSmartComponentDataSets the features, components, and feature references of a Smart Component.  
 MethodSetSuppressionObsolete. Superseded by IComponent2::SetSuppression2.  
 MethodSetSuppression2Sets the suppression state of this component.  
 MethodSetTextureApplies texture to this component in the specified configuration.  
 MethodSetTextureByDisplayStateSets the texture applied to this component in the specified display state.  
 MethodSetTransformAndSolveObsolete. Superseded by IComponent2::SetTransformAndSolve2.  
 MethodSetTransformAndSolve2Sets the transform and solves for the mates for this component.  
 MethodSetVisibilitySets the visibility state for this component.  
 MethodSetXformObsolete. Superseded by IComponent2::Transform2.  
 MethodSetXformAndSolveObsolete. Superseded by IComponent2::SetTransformAndSolve2.  
 MethodUpdateExternalFileReferencesUpdates the external file references of this model.  
Top

See Also



Related SolidWorks Forum Content

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:   IComponent2 Interface Members
*Comment:  
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) 2012 SP05

The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document API Help (English only) 2012 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.