Scotth066 Posted February 4 Posted February 4 If this is not the right place for this please let me know and I will gladly move it. I have a lisp question. I work with architectural drawings, and I use AutoCAD 2024. I am using Lee Macs "autolabel" lisp routine for inserting my room name/number blocks. I insert all the room tags and it numbers them as i insert them. I then come back and the room names. I like how if later on I remove one, or add one, they all update. I have a routine for inserting the door numbers. To insert the door tags I select the room tag and it grabs the room number from that room tag I select and inserts it in the attribute for the door tag. If I insert more than one door tag it will suffix each additional door tag with a lower case letter starting with 'a', then 'b' and so on until i terminate the routine. I then select the next room tag and so on. I have two elements i want to add to my door tag routine and cannot get it to work. First, I would like for my door tag lisp to work as follows. I would like for it to work as it does for inserting one door tag. If i pick multiple insertion points for multiple door tags I would like for it to suffix each additional with a lower case letter starting with 'b', 'c' and so one. Then, go back and update the first door tag and suffix it with the letter 'a'. Does that make since? My second request . . . . Is it possible to link those door tags to those specific room tags, so if by chance I do remove a room tag or add one, not only will the room tags update, but so will the door tags. I tried making a snippet video but the file was to large to upload. Any help would be much appreciated. Thank you Quote
BIGAL Posted February 4 Posted February 4 The first answer is (chr 65) = "A" (chr 66) = "B" so use (chr x), "a" = 97 you just add to x each time. Not sure about how you would link a field value to other objects. You may need to post a sample dwg then some one may be able to help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.