User's Guide > Drawings > Drawing Operations
Drawing Operations
 
Methods Introduced:
The method pfcModel2D::AddModel adds a new solid model to the drawing.
The method pfcModel2D::DeleteModel removes a model from the drawing. The model to be deleted should not appear in any of the drawing views.
The method pfcModel2D::ReplaceModel replaces a model in the drawing with a related model (the relationship should be by family table or interchange assembly). It allows you to replace models that are shown in drawing views and regenerates the view.
The method pfcModel2D::SetCurrentSolid assigns the current solid model for the drawing. Before calling this method, the solid model must be assigned to the drawing using the method pfcModel2D::AddModel. To see the changes to parameters and fields reflecting the change of the current solid model, regenerate the drawing using the method pfcSheetOwner::RegenerateSheet.
The method pfcModel2D::AddSimplifiedRep associates the drawing with the simplified representation of an assembly.
The method pfcModel2D::DeleteSimplifiedRep removes the association of the drawing with an assembly simplified representation. The simplified representation to be deleted should not appear in any of the drawing views.
Use the method pfcModel2D::Regenerate to regenerate the drawing draft entities and appearance.
The method pfcModel2D::SetTextHeight ets the value of the text height of the drawing.
The method pfcModel2D::CreateDrawingDimension creates a new drawing dimension based on the data object that contains information about the location of the dimension. This method returns the created dimension. Refer to the section Drawing Dimensions.
The method pfcModel2D::CreateView creates a new drawing view based on the data object that contains information about how to create the view. The method returns the created drawing view. Refer to the section Creating Drawing Views.
Was this helpful?