TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Ron Heigh on August 10, 2004, 10:51:57 AM
-
I'm working with a Bill-Of-Material and need to correct a incorrect part in hundreds of drawings.
I need to do this:
Open a drawing and invoke the routine.
Select the Bill-Of-Material (attribute block) and make my correction.
The routine iterates through all the drawings in the folder and corrects the same Part number to match the change I just made.
The part number is the first attribute in the block.
-
Superfind can do that. I've used it to update part numbers in hundreds of drawings at a time.
see http://mysite.verizon.net/~vze2vjds//acadx/
... it will replace every instance of a prespecified value and you can define whether to search through text, blocks etc
-
Well I don't have one that does that but I wrote something close;
http://theswamp.org/phpBB2/viewtopic.php?t=1830
(see the next to last post)
Basically I created another session of acad and then ran through a list of file names, for each file name a new dwg. I'm willing to help if you can upload a couple dwg files.
-
Superfind can do that. I've used it to update part numbers in hundreds of drawings at a time.
see http://mysite.verizon.net/~vze2vjds//acadx/
... it will replace every instance of a prespecified value and you can define whether to search through text, blocks etc
I use SuperFind as well and love it.
Problem is, I don't want to change the part number. I want to find bill entries that match the part number, and correct their length, description, remarks....
-
Here is the pseudocode I worked out.
-open source drawing
-select attribute block to modify
-store block name "block_name"
-store first attribute value "part_number"
-make modification
-determine which attribute values changes based on previous values.
-store "new_values" (ie. 0,0,0,new_value,0,0,new_value,0)
-begin iteration of working directory
-get selection set of "block_name"
-find blocks with first attribute = "part_number"
-entmod matching blocks based on "new_values"
-values of 0 don't get modified
-end iteration
This would enable you to do alot of work in little time.