TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: TimSpangler on November 15, 2007, 12:58:56 PM

Title: How to create field with lisp?
Post 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
Title: Re: How to create field with lisp?
Post by: CAB on November 15, 2007, 01:32:57 PM
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
Title: Re: How to create field with lisp?
Post by: LE on November 15, 2007, 02:16:28 PM
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

Quote
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:
Title: Re: How to create field with lisp?
Post by: TimSpangler on November 16, 2007, 12:47:08 PM
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