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
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
Members
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
IPartDoc Interface Members

The following tables list the members exposed by IPartDoc.

Public Properties

 NameDescription
 PropertyIMaterialPropertyValuesGets or sets a material's properties in the active configuration.  
 PropertyMaterialIdNameGets and sets the material ID.  
 PropertyMaterialPropertyValuesGets or sets a material's properties in the active configuration.  
 PropertyMaterialUserNameGets or sets the material name. This name is visible to the user.  
Top

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



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:   IPartDoc 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.