- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been having incredible difficulty creating a Field for a Lisp variable. Is this even actually possible?
Here's a simple example, in a fresh CAD session, create a piece of Mtext, and then fire this:
(setq v (vlax-ename->vla-object (entlast))
_var001 "SAMPLE"
c "%<\\AcVar.17.0 Lisp._var001>%"
) ; setq
(vlax-put-property v (quote TextString) c)
When I do that, I get just the #### in the Mtext.
If I double-click the field to bring up the dialog and click OK, then it displays.
But then the next issue - more often than not when I try to bring up the Field dialog for Lisp Variables, AutoCAD summarily crashes. Like poof crashes, just completely goes away. I do have about 7MB of custom Lisp code loaded, without with it doesn't crash. Only mention that as it makes it more challenging to test.
But the primary issue, is that I can't seem to programmatically create a Field object scoped to a Lisp variable, unless the Field dialog has been opened to the Lisp variable section. Which seems like a ridiculous requirement.
Any ideas out there?
--J
Solved! Go to Solution.