sketch11 Posted February 5, 2022 Posted February 5, 2022 If I have a dynamic block, and convert to a regular block via "Edit Block In-place", the name is changed as follows: "Dynamic block name" + "the next sequential digit". For example, if I have 2 copies of the dynamic block: - Dynamic black names: 530UB82 for both blocks. - Regular block names: 530UB821 and 530UB822 (1 and 2 is added at the end). I wanted to add a separator before the digit, so something like 530UB82_1 and 530UB82_2. This is in LT so can't use LISP. Block_Autonumber.dwg Quote
steven-g Posted February 5, 2022 Posted February 5, 2022 Unfortunately in LT I don't think there is a way to 'read' the name of a block, in a diesel macro you could in theory find the last digit and add an underscore before it, but I don't know of a way to get at the block name to do that. No doubt that is an option with Lisp but this is one of the limitations of LT. You can in LT create new blocks and use a macro to give a name with an incremental number but reading the name of an existing block is to the best of my knowledge not possible. 1 Quote
sketch11 Posted February 5, 2022 Author Posted February 5, 2022 OK thanks for confirming. Worth a try. 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.