Cancel
Showing results for 
Search instead for 
Did you mean: 

How to read JT_PROP_MEASUREMENT_UNITS etc?

When I read a JT file using JT Open Toolkit and use the JtkHierarchy::numProps and JtkHierarchy::getProp functions, I get the list of an object’s properties. But I have other CAD tools which show more properties, including properties not available using the Toolkit, for example, JT_PROP_MEASUREMENT_UNITS and JT_PROP_NAME. Are these actual properties or something else? How can I access this data using the Toolkit?

3 REPLIES 3

Re: How to read JT_PROP_MEASUREMENT_UNITS etc?

Siemens Legend Siemens Legend
Siemens Legend

check here in the docs

3.2.50 JtkCAD_PROPERTIES_ENABLED

These are properties generated from the source data

Mike Z

Re: How to read JT_PROP_MEASUREMENT_UNITS etc?

The default value of JtkCAD_PROPERTIES_ENABLED is 1. I tried setting it to 0 but nothing changed, the JT_PROP_MEASUREMENT_UNITS property is still not available via JtkHierarchy::getProp.
Highlighted

Re: How to read JT_PROP_MEASUREMENT_UNITS etc?

Siemens Legend Siemens Legend
Siemens Legend

Reminder, these properties are not there by default. The authoring tool has to have calls to populate them. You might want to check the source for your JT data.

Mike Z