add a specific attribute and a value to a block

add a specific attribute and a value to a block

Hans_Knol
Advocate Advocate
208 Views
1 Reply
Message 1 of 2

add a specific attribute and a value to a block

Hans_Knol
Advocate
Advocate

Hello

 

I need a LISP routine that add a new attribute to specific blocks in the drawing that runs automatically.

 

Hope someone is able to help with this specific challenge 

 

The attribute that must be added must have the name “PINLIST” The attribute may not visible and stay on the insertion point of the block.

 

When the attribute CAT in the block has for example the Value “9050029” the attribute “PINLIST” must be added automatically and the value of this attribute must be the textstring “3,11,14,12”

If the attribute CAT has a different Value, than the attribute “PINLIST” can be contain a different value, for ex. 9232034, then the PINLIST must have the value “1,1,2;1,3,4;1,5,6;1,13,14;2,21,22;1,53,54;2,61,62”

or

9327516   “3,11,14,12;3,21,24,22;3,31,34,32;3,41,44,42”

Etc.

The list with different “CAT” numbers and their “PINLIST” can be added into the LISP or also look for an external text or csv file.

See also the attached drawing as a example.

Hans Knol
0 Likes
209 Views
1 Reply
Reply (1)
Message 2 of 2

stev98312
Enthusiast
Enthusiast

You may see a way to do what you want in this thread.

 

Steve

0 Likes