Hi, like I said the weight applied to each of the 16 pens can't be retrieved by the API!
You know where to set the weights per pen/scale? else, see image below.
Depending you're addin either let the use chose a pen (1-16) like in UI or make you're own convertion table pen-width in mm, which could be/become different from project if someone changes the UI settings weights and won't match anymore.
Also depending the type of line/object and viewtype the weight can be different per scale (if setup in UI, see image)
Personally I would forget about the mm thing and let the user select one of the 16 pens
Or I must be something missing about you're story?
![UI_lineWeights.png UI_lineWeights.png]()
- Michel