I can't figure out how to access the text contents of a PMarker using the dxf code. I've read the DXF code list to try and find out more but 1. (what they say should return the primary text value) only returns nil.
I can access it directly by calling the element of the list using nth, but that limits this script, i.e. the text position in the entity list changes when using different .dwg or method of generating PMarker.
here is how i can access the other elements, i.e. ename, coords, text size:
(setq ename (cdr (assoc -1 entObj))
coords (cdr (assoc 10 entObj))
textSize (cdr (assoc 40 entObj))
)
I want the text contents though.
i.e. textString (cdr (assoc ?? entObj))
I've attached a picture of my properties in autocad and entity object properties output.
Is this possible? You can see in the output that there are two values for (1 . ) and (1 . thetextstringiwant). I have a feeling that when I call 1. it returns the first (empty) string rather than the second one. Any help is much appreciated!