Jump to content

Extracting scalar abbreviation from dimensions and deviation labels.


---
 Share

Recommended Posts

Hello,

I am trying to extract the scalar abbreviation from Inspection elements, mainly dimensions and deviation labels. 
See image below: 

image.png.e7c915ee5573bf247612b99e7ed42c73.png

So from top to bottom, I would expect: 

L, max(L), max(L), max(L), max(L), max, max, max, max. 

For most elements, when I use the reference 'scalar_type_abbreviation', it is not the same abbreviation as in the explorer. For example, the call I use, for a cylinder: 

print(gom.app.project.inspection['A07_OUTER DIAMETER Copy 1.Ø'].scalar_type_abbreviation) 

Returns D. 

Is there a way to return the abbreviation?
I would prefer not to extract the value from the name, since the name can be edited, and I am trying to align names across projects. 

 

Thank you,

Best regards 
Emil. 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...