- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Once again, I'm stuck.
I am trying to set the justification on MTEXT.
So I created the mtext with "vla-AddMtext" and assigned it to the variable "VLA:OBJECT".
Then I assign (setq INT:JUSTIFY 5)
But using this code "(vla-put-AttachmentPoint VLA:OBJECT INT:JUSTIFY)" I get "; error: ActiveX Server returned the error: unknown name: AttachmentPoint".
According to the help file at: https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-FD7EDA56-7FA0-4616-A746-9B97AE0C6456
"AttachmentPoint" is the correct name for the property.
So I did a "(dumpallproperties (car (entsel)))" and this returns "Attachment (type: AcDbMText::AttachmentPoint) (LocalName: Justify) = 1".
So, if I assume that "Attachment" is really the correct property and use "(vla-put-Attachment VLA:OBJECT INT:JUSTIFY)" then I get "; error: no function definition: VLA-PUT-ATTACHMENT".
So, how do I "put" the justification on MTEXT?
Windows 10 Pro, x64, Nvidia Quadro P1000
Intel Core i9-11900k; 3.50GHz, 32 GB RAM, 500GB WD BLACK M.2
Solved! Go to Solution.