API Documentation > Drawings and detail > Object ProDrawing > Function ProDrawingSolidReplace
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:
Synopsis
#include <ProDrawing.h>
ProDrawingSolidReplace
(
ProDrawing drawing
/* (In)
The drawing
*/
/* (In)
The solid to be replaced
*/
/* (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
Model is in read-only state.
One of the first three arguments was NULL.
The 'from' model is not in the drawing.
unrepresent_ok was FALSE, but the "from" solid had a simplified view. OR 'from' and 'to' solids were not from the same family table.
Sample Code References
User Guide References
Was this helpful?