Functions Available in the PTC Visualization Domain
The following functions are available in the PTC Visualization domain:
GetDynamicStructureRepresentation()
The function GetDynamicStructureRepresentation() returns a URL which you can use to download the dynamic structure of a Creo View representation. This function is bound to the Representation entity of an object. The function accepts navigation criteria NavigationCriteriaId as the input parameter. It is an optional parameter. The navigation criteria define which parts and objects are displayed in the dynamic structure. If the navigation criteria is not specified, the function uses the default navigation criteria to generate the URL for the dynamic structure.
You can use the product structure URL to load the CAD data in the WebGL viewer. The viewer uses Creo View WebGL Toolkit APIs.
GetFidelities()
You can get a list of fidelity values associated with a representation. The function GetFidelities() returns a list of fidelity values, which are represented as PTC.EnumType. The function retrieves the fidelity information in a value-display format.
GetPVZ()
You can get a compressed file from a Creo View representation. The function GetPVZ() returns a .zip file, which contains the OL, PVS, PVT, and other Creo View files. The .zip file is created from the associated representation. The function is bound to the Representation entity of an object.
The function contains the following parameters:
• IncludeAnnotations—Includes or excludes annotations in the .zip file. Pass the parameter as true to include annotations, when the .zip file is created.
• Fidelity—This is an optional parameter. Specifies the value of fidelity.
|
The function GetPVZ() does not retrieve multi-fidelity representations for releases prior to Windchill 11.1 M020.
From Windchill Rest Services 1.8 onwards, the same version of this function will return a .pvz file instead of a .zip file.
|