Vittorio Posted 5 minutes ago Posted 5 minutes ago Hi everyone, I'm currently trying to write a routine that handles multiple selected objects. In my drawing imported survey points are automatically stored as COGO-points with a specific point label style (a block reference defined by description sets). The problem is upon exploding the COGO-point (twice) it's layer is reverted to 0. Therefore I need a routine to change the layer back to the one defined by the corresponding description key. This routine should: prompt for selecting object(s) - COGO-points only for each COGO-point do the following store its layer to a variable (eg. "XX_TOPO_TREE") explode the COGO-point - which will result in a block reference with name *Uxxx (eg. *U123) explode the block - will result in a named block on layer 0 (eg. "sym_topo_tree") change the block layer to the one stored before After trying to teach myself AutoLISP over a year ago I almost forgot anything I've read due to a longer break. Now I am starting from the beginning again. Since it would take some time until I get this on my own, I hereby ask for a solution / a lisp routine. Best regards 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.