Category Feature element trees, Object ProElemtree

Function ProElemtreeVerify


Description
Verifies the contents of the element tree. This will parse the element tree and determine, where possible, if any elements have potentially incorrect values. The results of this verification can be obtained from two different paths:
  1. Use ProElementDiagnosticsCollect() to see if any diagnostic items were added to certain elements in the tree.
  2. Use ProReferenceStatusGet() to see if certain references in the tree now show a missing or error status.
This function is primarily intended for new element trees created in order to create a new feature in the model. Trees which are extracted using ProFeatureElemtreeCreate() will already have diagnostics information embedded based on the owner model state at the time of extraction.
Synopsis
#include <ProElement.h>
ProErrorProElemtreeVerify(
ProSolid solid
/* (In)
The solid model where the element tree will be used.
*/
ProAsmcomppath* assembly_reference
/* (In)
Path from the top level assembly to the solid model, if the feature will be created with external assembly references.
*/
ProElement elemtree
/* (In)
The element tree.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.