DirtyDan Posted Tuesday at 10:51 PM Share Posted Tuesday at 10:51 PM 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 Link to comment Share on other sites More sharing options...
SLW210 Posted Wednesday at 10:15 AM Share Posted Wednesday at 10:15 AM I have moved your thread to the AutoLISP, Visual LISP & DCL Forum. Please post in the correct forum. 1 Quote Link to comment Share on other sites More sharing options...
Emmanuel Delay Posted Wednesday at 11:30 AM Share Posted Wednesday at 11:30 AM 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 Link to comment Share on other sites More sharing options...
DirtyDan Posted Wednesday at 05:12 PM Author Share Posted Wednesday at 05:12 PM 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 Link to comment Share on other sites More sharing options...
BIGAL Posted Wednesday at 11:53 PM Share Posted Wednesday at 11:53 PM (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 Wednesday at 11:54 PM by BIGAL Quote Link to comment Share on other sites More sharing options...
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.