Retrieving a Representation
This example shows you how to retrieve a representation. Use the following GET request.
URI
GET /Windchill/servlet/odata/Visualization/Representations('OR:wt.viewmarkup.DerivedImage:786687')
The request returns the URLs to download the CAD data, thumbnails, and additional files associated with the specified representation.
Example: Retrieving the Content of the Additional Files Associated with a Specific Representation
You can retrieve the content of the additional files associated with the specified representation using the following GET request.
URI
GET /Windchill/servlet/odata/Visualization/Representations('OR:wt.viewmarkup.DerivedImage:786687')/AdditionalFilesData
The request returns information about the content of the additional files in addition to the URLs and attributes for AdditionalFiles associated with the specified representation.
You can also retrieve the content of the additional files associated with the specified representation using the following GET request with $expand:
URI with Expand on AdditionalFilesData
GET /Windchill/servlet/odata/Visualization/Representations('OR:wt.viewmarkup.DerivedImage:786687')?$expand=AdditionalFilesData
Example: Retrieving the Content of a Specific Additional File Associated with a Specific Representation
This example demonstrates how to retrieve the content of a specific additional file associated with the specified representation. Use the following GET request.
URI
GET /Windchill/servlet/odata/Visualization/Representations('OR:wt.viewmarkup.DerivedImage:786687')/AdditionalFilesData('<AdditionalData_OID>')
Example: Retrieving a Representation Using GetPVZ()
You can use the GetPVZ() function to retrieve a representation. For the representation specified in the request URI, pass the value as true for the IncludeAnnotations parameter. Pass the value as Low Fidelity for the Fidelity parameter.
Use the following GET request.
URI
GET /Windchill/servlet/odata/Visualization/Representations('OR:wt.viewmarkup.DerivedImage:786687')/PTC.Visualization.GetPVZ(IncludeAnnotations=true,Fidelity='Low Fidelity')
War dies hilfreich?