VBA Attribute edit in AutoCAD
Posted on 2011-02-15
I have a script to run global Attribute edit
Edit attributes one at a time? [Yes/No] <Y>: N
Edit only attributes visible on screen? [Yes/No] <Y>: Y
Enter block name specification <*>: Tree
Enter attribute tag specification <*>: PlantID
Enter attribute value specification <*>:
1 attributes selected.
Enter string to change: .
Enter new string:
this runs off a icon ^c^c^c_-attedit;n;y;tree;plantid;;\;;\;
I am trying to run it from a VBA form, activated by the icon.
Firstly i need to be able to pause the routine for the user to manually select the desired blocks.
Secondly I would like it to replace the whole string to change regardless of what is entered there, if that is possible.
The form would also have a text box to enter the new string if you know it (as a code), and a browse button if you don't.
Clicking the browse button would open a second form that is connected to a database (Plant.mdb) which has plant names and codes that you can select. on selection it fills out the text box for you.
I created a single form and routine, but only got to the point of select attribute. I am new to this and it was a struggle to even get the routine to run at all, i am at a loss.
Any help is much appreciated