Hide Table of Contents
IPartDoc Interface Methods

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

Public Methods

 NameDescription
 MethodAddPropertyExtensionStores a float, string, or integer value with a part.  
 MethodBodyObsolete. Superseded by IPartDoc::GetBodies2 and IPartDoc::EnumBodies3.  
 MethodCreateFeatureFromBodyObsolete. Superseded by IPartDoc::CreateFeatureFromBody3.  
 MethodCreateFeatureFromBody2Obsolete. Superseded by IPartDoc::CreateFeatureFromBody3.  
 MethodCreateFeatureFromBody3Creates a new imported feature from the specified temporary body.  
 MethodCreateNewBodyCreates a new body to use for import sewing operations and returns it to the caller.  
 MethodCreateSurfaceFeatureFromBodyCreates a surface feature from a body.  
 MethodDeleteEntityNameDeletes the name associated with the specified entity.  
 MethodEditRebuildObsolete. Superseded by IModelDoc2::EditRebuild3.  
 MethodEditRollbackRolls back the part's history to the currently selected feature.  
 MethodEditSuppressObsolete. Superseded by IModelDoc2::EditSuppress2.  
 MethodEditUnsuppressObsolete. Superseded by IModelDoc2::EditUnsuppress2.  
 MethodEditUnsuppressDependentObsolete. Superseded by IModelDoc2::EditUnsuppressDependent2.  
 MethodEnumBodiesObsolete. Superseded by IPartDoc::EnumBodies3.  
 MethodEnumBodies2Obsolete. Superseded by IPartDoc::EnumBodies3.  
 MethodEnumBodies3Enumerates the bodies in this part.  
 MethodEnumRelatedBodiesObsolete. Superseded by IPartDoc::EnumRelatedBodies2.  
 MethodEnumRelatedBodies2Creates an enumerated list of bodies.  
 MethodEnumRelatedSectionedBodiesObsolete. Superseded by IPartDoc::EnumRelatedSectionedBodies.  
 MethodEnumRelatedSectionedBodies2Gets an enumeration of the related sectioned bodies in a part.  
 MethodExportFlatPatternViewEnables a sheet metal part to be saved to disk in its flattened state to a DXF/DWG file.   
 MethodExportToDWGEnables various aspects of a part (sheet metal, faces, loops, annotation views) to be saved to disk as a DXF/DWG file.  
 MethodFeatureByIdGets the feature with the specified ID in the part.  
 MethodFeatureByNameGets the named feature in the part.  
 MethodFeatureExtrusionObsolete. Superseded by IFeatureManager::FeatureExtrusion2.  
 MethodFeatureExtrusion2Obsolete. Superseded by IFeatureManager::FeatureExtrusion2.  
 MethodFeatureExtrusion3Obsolete. Superseded by IFeatureManager::FeatureExtrusion2.  
 MethodFeatureExtrusionThinObsolete. Superseded by IFeatureManager::FeatureExtrusionThin2.  
 MethodFeatureExtrusionThin2Obsolete. Superseded by IFeatureManager::FeatureExtrusionThin2.  
 MethodFeatureExtrusionThin3Obsolete. Superseded by IFeatureManager::FeatureExtrusionThin2.  
 MethodFeatureRevolveObsolete. Superseded by IFeatureManager::FeatureRevolve.  
 MethodFeatureRevolve2Obsolete. Superseded by IFeatureManager::FeatureRevolve.  
 MethodFeatureRevolveCutObsolete. Superseded by IFeatureManager::FeatureRevolveCut.  
 MethodFeatureRevolveThinObsolete. Superseded by IFeatureManager::FeatureRevolveThin.  
 MethodFeatureRevolveThin2Obsolete. Superseded by IFeatureManager::FeatureRevolveThin.  
 MethodFeatureRevolveThinCutObsolete. Superseded by IFeatureManager::FeatureRevolveThinCut.  
 MethodFeatureXpertExecutes FeatureXpert, powered by SolidWorks Intelligent Feature Technology ( SWIFT), in parts.  
 MethodFirstFeatureGets the first feature in the part.  
 MethodForceRebuildObsolete. Superseded by IModelDoc2::ForceRebuild3.  
 MethodGetBodiesObsolete. Superseded by IPartDoc::GetBodies2.  
 MethodGetBodies2Gets the bodies in this part.  
 MethodGetCorrespondingObsolete. Superseded by IModelDocExtension::GetCorresponding.  
 MethodGetCorrespondingEntityObsolete. Superseded by IModelDocExtension::GetCorrespondingEntity.  
 MethodGetEntityByNameGets an entity (face, edge, vertex) by name.  
 MethodGetEntityNameGets the name of the specified entity.  
 MethodGetMateReferenceEntityGets the mate reference entity.  
 MethodGetMaterialPropertyNameObsolete. Superseded by IPartDoc::GetMaterialPropertyName2.  
 MethodGetMaterialPropertyName2Gets the names of the material database and the material for the specified configuration.  
 MethodGetMaterialVisualPropertiesGets the material visual properties for this part.  
 MethodGetNamedEntitiesGets an array of names of named entities (face, edge, vertex, and so on) in this part.  
 MethodGetNamedEntitiesCountGets the number of named entities (face, edge, vertex, and so on) in this part.  
 MethodGetPartBoxGets the box enclosing the part.  
 MethodGetProcessedBodyObsolete. Superseded by IBody2::GetProcessedBody2 and IPartDoc::IGetProcessedBody2.  
 MethodGetPropertyExtensionRetrieves a float, string, or integer value from a part document.  
 MethodGetRelatedBodiesCreates a list of all the related bodies in a part.  
 MethodGetRelatedSectionedBodiesGets all of the related sectioned bodies in a part.  
 MethodGetSectionedBodyGets the sectioned body seen in the specified drawing view.  
 MethodGetTessNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation.  
 MethodGetTessTriangleCountGets the number of triangles that make up the shaded picture tessellation for this part.  
 MethodGetTessTrianglesGets the triangles that make up the shaded picture tessellation for this part.  
 MethodGetTessTriStripEdgesGets the edge ID for each of the edges in the triangles that make up the tessellation for this part.  
 MethodGetTessTriStripNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation for this part.  
 MethodGetTessTriStripsGets the vertices that make up the shaded picture tessellation for this part.  
 MethodGetTessTriStripSizeGets the size of the array floats required to contain the data returned when calling IPartDoc::GetTessTriStrips and IPartDoc::IGetTessTriStrips.  
 MethodIBodyObjectObsolete. Superseded by IPartDoc::GetBodies2 and IPartDoc::EnumBodies3.  
 MethodIBodyObject2Obsolete. Superseded by IPartDoc::GetBodies2 and IPartDoc::EnumBodies3.  
 MethodICreateFeatureFromBodyObsolete. Superseded by IPartDoc::ICreateFeatureFromBody4.  
 MethodICreateFeatureFromBody2Obsolete. Superseded by IPartDoc::ICreateFeatureFromBody4.  
 MethodICreateFeatureFromBody3Obsolete. Superseded by IPartDoc::ICreateFeatureFromBody4.  
 MethodICreateFeatureFromBody4Creates a new imported feature from the specified temporary body.  
 MethodICreateNewBodyObsolete. Superseded by IPartDoc::ICreateNewBody2.  
 MethodICreateNewBody2Creates a new body to use for import sewing operations and returns it to the caller.  
 MethodICreateSurfaceFeatureFromBodyCreates a surface feature from a body.  
 MethodICreateSurfaceFeatureFromBodyCountObsolete. Superseded by IPartDoc::ICreateSurfaceFeatureFromBodyCount2.  
 MethodICreateSurfaceFeatureFromBodyCount2Gets the number of surface features to create from the body.  
 MethodIDeleteEntityNameDeletes the name associated with the specified entity.  
 MethodIExportToDWGEnables various aspects of a part (sheet metal, faces, loops, annotation views) to be saved to disk as a DXF/DWG file.  
 MethodIFeatureByIdGets the feature with the specified ID in the part.  
 MethodIFeatureByNameGets the named feature in the part.  
 MethodIFirstFeatureGets the first feature in the part.  
 MethodIGetCorrespondingEntityObsolete. Superseded by IModelDocExtension::GetCorrespondingEntity.  
 MethodIGetEntityByNameGets an entity (face, edge, vertex) by name.  
 MethodIGetEntityNameGets the name of the specified entity.  
 MethodIGetNamedEntitiesGets an array of names of named entities (face, edge, vertex, and so on) in this part.  
 MethodIGetPartBoxGets the box enclosing the part.  
 MethodIGetProcessedBodyObsolete. Superseded by IPartDoc::IGetProcessedBody2.  
 MethodIGetProcessedBody2Pre-processes the geometry of a body so that:
  • Closed periodic faces (for example, the lateral face of a cylinder) are split into two faces.

  • Faces that straddle the seam, if any, of the underlying surface are split into two faces.

 
 MethodIGetProcessedBodyWithSelFaceObsolete. Superseded by IPartDoc::IGetProcessedBodyWithSelFace2.  
 MethodIGetProcessedBodyWithSelFace2Gets a processed body.  
 MethodIGetSectionedBodyObsolete. Superseded by IPartDoc::IGetSectionedBody2.  
 MethodIGetSectionedBody2Gets the sectioned body seen in the specified drawing view.  
 MethodIGetTessNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation.  
 MethodIGetTessTrianglesGets the triangles that make up the shaded picture tessellation for this part.  
 MethodIGetTessTriStripEdgesGets the edge ID for each of the edges in the triangles that make up the tessellation for this part.  
 MethodIGetTessTriStripEdgeSizeGets the size of the array returned by IPartDoc::GetTessTriStripEdges and IPartDoc::IGetTessTriStripEdges.  
 MethodIGetTessTriStripNormsGets the normal vector for each of the triangles, which make up the shaded picture tessellation for this part.  
 MethodIGetTessTriStripsGets the vertices that make up the shaded picture tessellation for this part.  
 MethodImportDiagnosisDiagnoses and repairs any gaps or bad faces on imported features.  
 MethodImportDiagnosisGapCloserAllows you to repair a gap by moving the vertices on the edges surrounding the gap to new positions to close the gap on the imported model.  
 MethodInsertBasePartObsolete. Superseded by IPartDoc::InsertPart.  
 MethodInsertBendsObsolete. Superseded by IPartDoc::InsertBends2.  
 MethodInsertBends2Creates bends in a thin-feature part.  
 MethodInsertMirrorAllMirrors the part about a selected planar face.  
 MethodInsertMirrorFeatureObsolete. Superseded by IFeatureManager::InsertMirrorFeature.  
 MethodInsertPartObsolete. Superseded by IPartDoc::InsertPart2.  
 MethodInsertPart2Inserts an existing part into this part document.  
 MethodISetEntityNameSets the name of the entity if the entity does not have a name.  
 MethodIsMirroredGets whether this part is mirrored.  
 MethodIsWeldmentGets whether this part contains a weldment feature.  
 MethodMakeSectionSaves sketch profiles for use in the wizard.  
 MethodMirrorFeatureDisplays a dialog that allows the end-user to mirror a feature about a selected plane or planar face.  
 MethodMirrorPartMirrors a part about a selected plane or planar face and creates a new part document.  
 MethodRemoveAllDisplayStatesRemoves all display states and appearances from this part document.  
 MethodReorderFeatureReorders features and their operations.  
 MethodResetPropertyExtensionClears all values stored in the property extension.  
 MethodSaveToFileObsolete. Superseded by IPartDoc::SaveToFile2.  
 MethodSaveToFile2Saves the selected surfaces or solid bodies in the Surface Bodies or Solid Bodies folders or sub-folders to part documents (.sldprt).  
 MethodSetCosmosWorksMaterialAssigns the material to use during analysis to this part.  
 MethodSetDroppedFileNameSets the filename for a recently dropped file.  
 MethodSetEntityNameSets the name of the entity if the entity does not have a name.  
 MethodSetLineColorSets the color for the lines in the part document.  
 MethodSetLineStyleSets the style or font for the lines in the part document.  
 MethodSetLineWidthSets the thickness or weight for the lines in the part document.  
 MethodSetMaterialPropertyNameObsolete. Superseded by IPartDoc::SetMaterialPropertyName2.  
 MethodSetMaterialPropertyName2Sets the name of the material property for the specified configuration.  
 MethodSetMaterialVisualPropertiesSets the material visual properties for the active configuration and any specified configurations of this part.  
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:   IPartDoc 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) 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.