prax3des Posted April 14, 2020 Posted April 14, 2020 Hello everyoneI am looking for a Lisp that when selecting a line, polyline or circle can give me the name of its layer. and changing the name of the layer updates the text. it's possible?I use the LAYTEXT lisp but I would like to change the name of the layer automatically update the text Thank laytext(Texto en capas).LSP example.dwg Quote
SLW210 Posted April 14, 2020 Posted April 14, 2020 I have moved your thread to the AutoLISP, Visual LISP & DCL Forum. Why didn't you post this in the correct Forum? Quote
tombu Posted April 14, 2020 Posted April 14, 2020 Simply replace (vla-get-Layer (vlax-ename->vla-object ent)))) with (strcat "%<\\AcObjProp Object(%<\\_ObjId " (itoa (vla-get-ObjectID (vlax-ename->vla-object ent))) ">%).Layer>%"))) in Lee Mac's code to label it with a field instead of text. It will update according to settings of FIELDEVAL (System Variable). 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.