Hy guys,
I am adding programmatically fields for bearing 'n distance to a line. I need help here coz it does not behave!
(setq oDroite (vlax-ename->vla-object...
(setq sFieldLabl
(strcat
"%<\\AcObjProp Object (%<\\_ObjId " (itoa (vla-get-objectid oDroite))
">%).Angle \\f \"%au1\">%"
"\\X"
"%<\\AcObjProp Object (%<\\_ObjId " (itoa (vla-get-objectid oDroite))
">%).Length \\f \"%lu2%ct8[0.001]\">%"
)
)
(command "_.DIMALIGNED" pSt pNxt "_M" sFieldLabl pNxt "")
The fields are not added because I am grabbing the line length in mm and thru conversion factor I want to display in m! If i leave it in metres they both print.
Now, this is where it gets weird:
If I print the field in metres without the bearing [angle for those not familiar] it does work!!
Anyone encountered that behaviour - or lack of - and found a way to remedy?
As well, if someone would be kind enough to show me how to display a proper degree symbol [like %%d] for fields, instead of stupid simplistic letter d!