add a specific attribute and a value to a block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.