TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: TimSpangler on November 15, 2007, 12:58:56 PM
-
Anyone know hoe to create a field with lisp?.. The field is a costom name from a sheet set. I searched the web and came up short. It seems that here is now call to create a field with code???
Any help would be appreciated
-
Not much info out there.
None that create a field but here is what I found.
http://tinyurl.com/2wpmfp
http://cadtutor.net/forum/showthread.php?t=16409
PS one more
http://www.theswamp.org/index.php?topic=9441.msg172145#msg172145
-
I use fields only as part of all the predefined values for my blocks or titleblocks that I use in the sheet set manager - but none of them is via code.
You can copy the string values from each of the available ones in the FIELD dialog and from there recreate them - I did that in the past.
Here is some sample (in VBA) but can be easily ported to lisp
http://www.theswamp.org/index.php?topic=19766.msg241171#msg241171
text = "%<\AcObjProp Object(%<\_ObjId " + Str$(entObjectID) + ">%).Area>%"
(setq text (strcat "%<\AcObjProp Object(%<\_ObjId " itoa(entObjectID) ">%).Area>%"))
then pass that into a text or mtext.... hope that the lisp code is right - well that's the idea :roll:
-
Thanks Guys, I'll look into it a bit more today. These things are inuding me for some reason, maybe its the sheet set part, I dunno.
Thanks Again