Hide Table of Contents
IComponent2 Interface Methods

For a list of all members of this type, see IComponent2 members.

Public Methods

 NameDescription
 MethodAddPropertyExtensionAdds a property extension to this component.  
 MethodDeSelectDeselects this component.  
 MethodEnumBodiesObsolete. Superseded by IComponent2::EnumBodies2.  
 MethodEnumBodies2Obsolete. Superseded by IComponent2::EnumBodies3.  
 MethodEnumBodies3Gets 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 this 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 specific 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.  
 MethodGetExcludeFromBOM2Gets whether this component is excluded from the bills of materials (BOMs) in the specified configurations.  
 MethodGetHiddenUnloadedChildrenCountGets the number of hidden children components of this component that were not loaded when an assembly was opened selectively.  
 MethodGetIDGets the component ID for this component.  
 MethodGetImportedPathGets the full path name of the model imported for this component.  
 MethodGetMaterialIdNameGets the material name for this component.  
 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 the property extension on this component.  
 MethodGetReferencedDisplayStatesGets the display states of this component that are referenced by the specified assembly display state(s).  
 MethodGetRenderMaterialsObsolete. Superseded by IComponent2::GetRenderMaterials2.  
 MethodGetRenderMaterials2Gets the appearances applied to this component in the specified display states.  
 MethodGetRenderMaterialsCountObsolete. Superseded by IComponent2::GetRenderMaterialsCount2.  
 MethodGetRenderMaterialsCount2Gets the number of appearances applied to this component in the specified display states.  
 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.  
 MethodGetSpecificTransformGet the collapsed or exploded transform of a component when the assembly is exploded.  
 MethodGetSuppressionObsolete. Superseded by IComponent2::GetSuppression2.  
 MethodGetSuppression2Gets 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.  
 MethodGetVisibilityInAsmDisplayStatesGets the visibilities of this component in the specified assembly display state(s).  
 MethodGetXformObsolete. Superseded by IComponent2::Transform2.  
 MethodHasMaterialPropertyValuesGets whether this component has an appearance.  
 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.  
 MethodIGetRenderMaterialsObsolete. Superseded by IComponent2::GetRenderMaterials2.  
 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 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.  
 MethodIsNameOverriddenGets whether the name of this component is overridden.  
 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.  
 MethodMakeVirtualObsolete. by Superseded by IComponent2::MakeVirtual2.  
 MethodMakeVirtual2Makes this component and optionally its child components virtual by saving them in the current assembly.  
 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 this component.  
 MethodSelectByMarkObsolete. Superseded by IComponent2::Select3.  
 MethodSetCosmosWorksMaterialAssigns the material to use during analysis to this component.  
 MethodSetExcludeFromBOM2Sets whether to exclude this component from the bills of materials (BOMs) in the specified configurations.  
 MethodSetMaterialIdNameSets the material name for this component.  
 MethodSetMaterialPropertyValues2Sets the material properties for this component.  
 MethodSetMaterialUserNameSets the material user name for this component.  
 MethodSetReferencedDisplayStatesSets the specified display state of this component to be referenced by the specified assembly display state(s).  
 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.  
 MethodSetTransformAndSolve2Obsolete. Superseded by IComponent2::SetTransformAndSolve3.  
 MethodSetTransformAndSolve3Sets the transform and solves for the mates for this component.  
 MethodSetVisibilitySets the visibility state for this component.  
 MethodSetVisibilityInAsmDisplayStatesSets the visibility of this component in the specified assembly display state(s).  
 MethodSetXformObsolete. Superseded by IComponent2::Transform2.  
 MethodSetXformAndSolveObsolete. Superseded by IComponent2::SetTransformAndSolve2.  
 MethodUpdateExternalFileReferencesUpdates the external file references of this model.  
Top

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:   IComponent2 Interface Methods
*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) 2022 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.