User's Guide > Drawings > Drawing Models
Drawing Models
 
Functions Introduced:
The function ProDrawingSolidsCollect() outputs an array of the solids attached to the drawing, including those not currently displayed in a view. Function ProDrawingSolidsVisit() is a visit function of the usual form which visits the same solids.
The function ProDrawingSolidAdd() adds a new solid to a drawing, but does not display it. (To create a drawing view, refer to the Creating Views section.)
ProDrawingSolidDelete() deletes a solid from a drawing, provided that solid is not currently displayed in a view.
Functions ProDrawingSimprepsCollect(),ProDrawingAsmsimprepAdd(), and ProDrawingAsmsimprepDelete() are the equivalents to the above functions but take a handle to a simplified rep.
The function ProDrawingSolidReplace() replaces a drawing model solid with another solid. The old and new solids must be members of the same family table. The following example code describes this function.
The functions ProDrawingCurrentsolidGet() and ProDrawingCurrentsolidSet() provide access to the current solid model for a given drawing.
Example 8: Replace Drawing Model Solid with a Solid
The sample code in the file UgDrawingSolidReplace.c located at <creo_toolkit_loadpoint>/protk_appls/pt_userguide/ptu_drawing shows how to replace a drawing model solid with a solid.
Isto foi útil?