Jump to content

LSP Command to Modify Attributes of Multiple Dynamic Blocks


DirtyDan

Recommended Posts

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. 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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 by BIGAL
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...