- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking for a simple LISP to change the attribute entries in an existing dynamic block.
I have a block "DIAG_CROSS" that has up to 14 attributes. I need to change 2 of the attributes in specific ways.
1: The attribute "SIZE" needs to be changed from a real number to an integer and then rewritten to the block attribute as e.g. 50.000 becomes 50. I understand the rtoi operator, but I don't know how to write the result back to the block.
2: The attribute "CODE" needs to have any numerical characters removed from the end and then rewritten back to the block attribute as e.g. WUG13 becomes WUG. I understand the VL-STRING-RIGHT-TRIM "0123456789" operation but don't know how to write the result back to the block.
thanks in advance
Solved! Go to Solution.