Creating Attribute Database in text file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings!
I am trying to create a database for structural header sizes. I have created a block with (2) attributes. One for the Header to be numbered, and the other for the header size. Once I insert all the header blocks needed I have been using "ATTOUT" to extract the attribute information into a .txt file. In that .txt. file I have a column for "Handle" (the random name that Autocad gives each block and what it uses to identify each block), "Block Name", "First Attribute", and "Second Attribute". In that text file I can adjust the header numbers and header sizes under thier respective columns. I then use "ATTIN" to adjust all the header block attributes according to the updated .txt. file.
Here is the issue:
Once I use "ATTIN" and all the blocks are updated, Autocad modifies each block and assigns it a new handle (what once was "22c71" is now "22b65"). If for any reason I need to update the database and change either the header number or header size attributes a second time, I have to repeat the process all over again with the new handles for each block. If I try to just update the .txt database and re-run "ATTIN", it says that the block that has been updated cannot be found. Obviously because the Handle name has changed. I then have the option to either choose the block I want the change to apply to or quit the command. This obviously doesn't help for multiple block attribute updates.
The solution I am pondering is if there is a way to create a .txt database that I can store my block attributes per drawing, update the attributes within the text file, and have that file always update the block attributes within the drawing without having to run attribute extraction every time. The end result I am trying to accomplish is a text file that will be linked to an excel file in which my engineers can manipulate the header sizes as needed, and I can use that file to update my header blocks automatically.
If I have not made myself clear or if there are any questions feel free to contact me!
AutoCAD 2016
Block Name: "HDR ATTT"
Attribute: Tag - HDR
Prompt - Size?
Default - (2)-2x
Attribute: Tag - CALC
Prompt - #?
Default - X
Thanks in advance CAD Warriors!! You guys rock!!!
Tony
"Cadmnky"