Overview
Using the VB API, you can create and manipulate assembly simplified representations just as you can using Creo Parametric interactively.
* 
the VB API supports simplified representation of assemblies only, not parts.
Simplified representations are identified by the IpfcSimRep class. This class is a child of IpfcModelItem, so you can use the methods dealing with IpfcModelItems to collect, inspect, and modify simplified representations.
The information required to create and modify a simplified representation is stored in a class called IpfcSimpRepInstructions which contains several data objects and fields, including:
String—The name of the simplified representation
IpfcSimpRepAction—The rule that controls the default treatment of items in the simplified representation.
IpfcSimpRepItem—An array of assembly components and the actions applied to them in the simplified representation.
A IpfcSimpRepItem is identified by the assembly component path to that item. Each IpfcSimpRepItem has it’s own IpfcSimpRepAction assigned to it. IpfcSimpRepAction is a visible data object that includes a field of type IpfcSimpRepActionType. You can use the method IpfcSimpRepAction.GetType() to set the actions. To delete an existing item, you must set the action as NULL.
EpfcSimpRepActionType is an enumerated type that specifies the possible treatment of items in a simplified representation. The possible values are as follows
Values
Action
EpfcSIMPREP_NONE
No action is specified.
EpfcSIMPREP_REVERSE
Reverse the default rule for this component (for example, include it if the default rule is exclude).
EpfcSIMPREP_INCLUDE
Include this component in the simplified representation.
EpfcSIMPREP_EXCLUDE
Exclude this component from the simplified representation.
EpfcSIMPREP_SUBSTITUTE
Substitute the component in the simplified representation.
EpfcSIMPREP_GEOM
Use only the geometrical representation of the component.
EpfcSIMPREP_GRAPHICS
Use only the graphics representation of the component.
EpfcSIMPREP_SYMB
Use the symbolic representation of the component.
EpfcSIMPREP_BOUNDBOX
Use the boundary box representation of the component.
EpfcSIMPREP_DEFENV
Use the default envelope representation of the component.
EpfcSIMPREP_LIGHT_GRAPH
Use the light weight graphics representation of the component.
EpfcSIMPREP_AUTO
Use the automatic representation of the component.
Was this helpful?