Overview
 
Creo TOOLKIT gives programmatic access to all the simplified representation functionality of Creo+. You can create simplified representations either permanently or at runtime, and you can save, retrieve, or modify them by adding or deleting items.
Using Creo TOOLKIT, you can create and manipulate assembly simplified representations just as you can using Creo+ interactively.
Note:
 
Creo TOOLKIT supports retrieval and activation of both part and assembly simplified representations. In addition, Creo TOOLKIT supports creation and modification of assembly simplified representations. Functions not appropriate for part mode are identified in the description.
Simplified representations are identified by the DHandle ProSimprep. As with other DHandles such as ProFeature and ProGeomitem, the ProSimprep handle contains just enough information to uniquely identify the object in the database—the model owner, type, and identifier.
The information required to create and modify a simplified representation is stored in a series of ProSimprepdata structures, which are visible data structures. The data structure contains the following fields:
ProName name—The name of the simplified representation
ProBoolean temp—Specifies whether it is a temporary, simplified representation
ProSimprepActionType action_type—The rule that controls the default treatment of items in the simplified representation
ProSimprepitem *items—An array of assembly components and features and the actions applied to them in the simplified representation
A ProSimprepitem is identified by the ProIdTable that defines the assembly component path to that item. (Even if the ID table path is only one level, use the ProIdTable and not the feature id for assemblies). Each ProSimprepitem has its own ProSimprepAction assigned to it. ProSimprepAction is a visible data structure that includes a variable of type ProSimprepActionType.
ProSimprepActionType is an enumerated type that specifies the possible treatment of items in a simplified representation. You can specify the following types of actions on the component:
PRO_SIMPREP_NONE—Specifies that no action is specified.
PRO_SIMPREP_REVERSE—Specifies that the reverse of the default rule must be applied to the component. For example consider that the default rule is to exclude a component. When you set the value PRO_SIMPREP_REVERSE, the component is included in the simplified representation.
PRO_SIMPREP_INCLUDE—Specifies to include the component in the simplified representation.
PRO_SIMPREP_EXCLUDE—Specifies to exclude the component in the simplified representation.
PRO_SIMPREP_SUBSTITUTE—Specifies to substitute the component in the simplified representation.
PRO_SIMPREP_GEOM—Specifies to use geometric representation.
PRO_SIMPREP_GRAPHICS—Specifies to use graphical representation.
PRO_SIMPREP_SYMB—Specifies to use symbolic representation.
PRO_SIMPREP_BOUNDBOX—Specifies to use boundary box representation.
PRO_SIMPREP_DEFENV—Specifies to use the default envelope representation.
PRO_SIMPREP_LIGHT_GRAPH—Specifies to use light weight graphics representation.
PRO_SIMPREP_AUTO—Specifies to use automatic representation.
¿Fue esto útil?