Skip to main content
avillanueva
23-Emerald I
23-Emerald I
April 29, 2024
Question

API to retrieve mass property data from published visualization data

  • April 29, 2024
  • 2 replies
  • 971 views

My assumption is that the information I am looking for is contain in the .ol file. I was looking for a way to pull the mass value as an indicated that mass properties were properly done from a workflow check. Is there an API that can interact with .ol files? 

 

avillanueva_0-1714408071322.png

 

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
May 3, 2024

Hi @avillanueva 

I know that visualization thumbnail can be generated directly by Windchill without Creo worker, 

But this is based on a generated visualization files in a local Creo client.

So the question is if this thumbnail generation works somehow with the ol files, then the API can exists.

Just find it 😄 I am not sure if it is true what I wrote 😄 

PetrH

6-Contributor
May 3, 2024

Hi @avillanueva,

 

If you have the Creo View adapters installed locally, you could use `olstat.exe` from the command line like so:

./olstat.exe <ol-path>

 It will return triangle count, mesh count, mass data (depending on your ol file) and more.
The executable can be found in the Creo View Adapters install directory i.e. C:/ptc/creo_view_adapters_<version>/bin/