User's Guide > Drawings > Drawing Operations
Drawing Operations
 
Methods Introduced:
The method IpfcModel2D.AddModel() adds a new solid model to the drawing.
The method IpfcModel2D.DeleteModel() removes a model from the drawing. The model to be deleted should not appear in any of the drawing views.
The method IpfcModel2D.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 IpfcModel2D.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 IpfcModel2D.AddModel(). To see the changes to parameters and fields reflecting the change of the current solid model, regenerate the drawing using the method IpfcSheetOwner.RegenerateSheet().
The method IpfcModel2D.AddSimplifiedRep() associates the drawing with the simplified representation of an assembly
The method IpfcModel2D.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 property IpfcModel2D.Regenerate() to regenerate the drawing draft entities and appearance.
The method IpfcModel2D.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 IpfcModel2D.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?