You dont need 48 checks just compare Y value of point for A-F and X for 1-8 string them together.
something like If x = 101-200 etc then B (cond (and (> x 101.0) (< x 200.0 )) (setq vert "B")
2 cond checks
Registered forum members do not see this ad.
Is it possible to create zones based on, let's say, rectangular coordinates where when a field is inserted into a certain area or zone, the field gets updated to match it's location?
I've attached a sample drawing format where I show lines splitting up the drawing into 48 sections. On SH 02 of this drawing I show the text I'd like to include a field in that would update the last two characters (the vertical and horizontal markers) of the top line.
This is probably not the way to do it but I was thinking along the lines of having to set 48 separate variables in a lisp routine to each section's rectangular cross-section coordinates. Then when a piece of MTEXT is placed on the drawing, the lisp would detect within which section it has been placed in and update the field accordingly.
Would appreciate suggestions. Thanks.




You dont need 48 checks just compare Y value of point for A-F and X for 1-8 string them together.
something like If x = 101-200 etc then B (cond (and (> x 101.0) (< x 200.0 )) (setq vert "B")
2 cond checks
Thanks BigAl. I'll see what kind of code I can hammer out this morning based on your suggestion.
Program will export to Excel perfect, but will not put coords into table within dwg. Using A2008.
help !
s
Whose code are you referring to Steve?
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Registered forum members do not see this ad.
to find the command
find (defun C:
the next word is the command
So
(defun C:PNT
So PNT is command
PS: its general for lisp.
Sorry for my English.
Bookmarks