Jump to content

Can i get the unit of a characteristic as a string


---
 Share

Recommended Posts

---
Hi guys,

is there any way to get the unit of a characteristic?
Im looking for something like this:

getActual("test").actual.getunit
Link to comment
Share on other sites

---
I use getRecordHead("lengthunit") but this return whole program settings not individual characteristic
Link to comment
Share on other sites

---
Too bad, I would have needed something to tell me whether the program is set to angular degrees or radians
Link to comment
Share on other sites

---
I think you can not change individual characteristic.
Changing angle units are for whole plan - stored in "inspset" file findable by "inAngleUnit"

You can make condition with help of therotecial element where you put 90° angle.
Report: 90,0000 -> degrees / 1,5708 -> rad / 90° 0' 0" -> deg. min. sec.

I could not find angle unit in pcm - maybe others can
Link to comment
Share on other sites

---
I also do not see that you can set for individual unit.. 3239_77350a4b2622f4230f49576c88c42420.jpg
but I did test by changing the entire plan to 1)degrees 2)DegMinSec 3) radians

and the following returns the chosen units :
getNominal("Some Characteristic Name Here").lengthunit
result returns one of the following : #degrees, #DegMinSec, or # radians


Cheers.
Link to comment
Share on other sites

 Share

×
×
  • Create New...