Category Drawings and detail, Object ProDrawing

Function ProDrawingSolidReplace


Description
Replaces a drawing model solid with another solid. The old and new solids must be members of the same family table.
Replacement in Object TOOLKIT: pfcModel2D::ReplaceModel
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingSolidReplace(
ProDrawing drawing
/* (In)
The drawing
*/
ProSolid from
/* (In)
The solid to be replaced
*/
ProSolid to
/* (In)
The solid to replace it
*/
ProBoolean unrepresent_ok
/* (In)
TRUE = unrepresent any simplified views of the 'from' solid in drawing. FALSE = fail if the 'from' solid has at least one simplified view in drawing.
*/
)
Returns
PRO_TK_NO_ERROR
PRO_TK_BAD_INPUTSOne of the first three arguments was NULL.
PRO_TK_E_NOT_FOUNDThe 'from' model is not in the drawing.
PRO_TK_BAD_CONTEXTunrepresent_ok was FALSE, but the "from" solid had a simplified view. OR 'from' and 'to' solids were not from the same family table.

Manual References:

  1. Drawings: Drawing Models
  2. Drawings: Drawing Models

Sample Code References:

  1. pt_userguide ( UgDrawingSolidReplace.c )