- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need some help please with a small routine.
I have a block that has attributes in it called Titleblock_2020. I have a LISP program that we use to insert the title block with default settings. There is one setting I need to have changed based on its Attribute Tag. Manually, its easy to do with ATTEDIT. Sometimes it gets changed, sometimes it doesn't. I wanted to automate it. I have tried several ways but I cant find the easiest way. I may be overlooking something, or I may be over thinking it as well.
Block name: Titleblock_2020
Attribute Tag: ENG_GROUP
Variables:
TBNAME = Block Name
DIVNAME = Company Division Name
I set the DIVNAMEariables in my code.
(setq TBNAME "Titleblock_2020")
(setq DIVNAME "GENERAL ENGINEERING")
Then I tried to edit the attribute.
(command "._attedit" "y" TBNAME "ENG_GROUP" DIVNAME)
This is where I get stuck. Any and all suggestions are welcome.
Thanks.
Rocky Brown
AutoCAD 2020 / Inventor 2020 / Plant 3D
Solved! Go to Solution.