Skip to main content
15-Moonstone
February 16, 2022
Question

PVZ for positioning assembly

  • February 16, 2022
  • 2 replies
  • 1734 views

Hello,
we are experimenting with the retrieval of pvz resources from windchill for AR purposes using thingworx Flow. In particular, the "get viewable" routine is capable of getting pvz files except for positioning assemblies. In this case, the pvz file has a 0 KB size. How to build a proper pvz also for this type of structure?

2 replies

17-Peridot
February 17, 2022

Which Rest API was used to get the PVZ file from Windchill to Thingworx?

Take a practical example, we can use ptc-windchill-OData-connector to connect thingworx and windchill. Then we can see below usable APIs which allows to get representations from Windchill to thingworx.

  • PTC.Visualization.GetDynamicStructureRepresentation()
  • PTC.Visualization.GetPVZ(IncludeAnnotations={IncludeAnnotations})
  • getRepresentationInRepresentationsByID
  • getRepresentations

To my understanding "PTC.Visualization.GetDynamicStructureRepresentation()" is used to retrieve positioning assembly representation.

GianVal15-MoonstoneAuthor
15-Moonstone
February 17, 2022

Thank you for your answer. Anyway, I tried to use the "PTC.Visualization.GetDynamicStructureRepresentation()" into the Execute function of thingworx flow, but it returns this error

Failed to execute service 400 "{\"error\":{\"code\":null,\"message\":\"Found unsupported object for entity type.\"}}"

17-Peridot
March 15, 2022