DirtyDan Posted October 29 Posted October 29 Hey there, I am looking for some assistance with creating an LSP for several different block types for fire alarm systems. I am currently using the "Automatically Label Attributes" from Lee Mac as a template. https://www.lee-mac.com/programs.html Essentially what I am looking to do is modify this LSP to work with multiple dynamic blocks and their respective attributes, if possible. Specifically, I am looking to prompt the user for a Loop Number, then sequentially count the devices 1-159 as they are placed. For example: The user has 5 devices to place, each being a different dynamic block. For each device, the user is prompted with the Loop Number, then once that is entered, the LSP auto labels the device with its respective device number. The final result looking like: L#D### starting at L1D001 and going to L1D159. I am hoping to do this for our fire alarm notification devices as well where the user is prompted for power supply number and circuit number, then the LSP will sequentially lists its logical device number. Is any of this doable? Any help steering me in the right direction would be greatly appreciated. Quote
SLW210 Posted October 30 Posted October 30 I have moved your thread to the AutoLISP, Visual LISP & DCL Forum. Please post in the correct forum. 1 Quote
Emmanuel Delay Posted October 30 Posted October 30 Sure, that's possible. So it's different blocks. But are the attributes the same? For example each of these blocks has a, attribute with tag = "LOOP" And now you want to first prompt L: 2; then promt start number for D ? let's say we start with 42. Then click block 1 => LOOP = L2D42. click block 2 => LOOP = L2D43. ... Somethinh like that? Quote
DirtyDan Posted October 30 Author Posted October 30 5 hours ago, Emmanuel Delay said: Sure, that's possible. So it's different blocks. But are the attributes the same? For example each of these blocks has a, attribute with tag = "LOOP" And now you want to first prompt L: 2; then promt start number for D ? let's say we start with 42. Then click block 1 => LOOP = L2D42. click block 2 => LOOP = L2D43. ... Somethinh like that? Exactly like that, yep. The attribute will be the same for all the blocks in question and is labeled as "DEVICE_ADDRESS" with its default text showing as "LXXDXXX" Quote
BIGAL Posted October 30 Posted October 30 (edited) If you can post a sample dwg with the blocks would be best, a front end could be put together with a dcl so pick block name to add. It makes testing so much better if have a real dwg. Just a suggestion if you know the block names can check 1st for what is existing highest number. If nil then its 1. Yes text can show 001 010 etc. A check, is less than. As suggested by @Emmanuel Delay add the next number is the easy part. Edited October 30 by BIGAL 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.