Author Topic: Does this routine exist???  (Read 2959 times)

0 Members and 1 Guest are viewing this topic.

Ron Heigh

  • Guest
Does this routine exist???
« 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.

hendie

  • Guest
Does this routine exist???
« Reply #1 on: August 10, 2004, 11:03:04 AM »
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

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Does this routine exist???
« Reply #2 on: August 10, 2004, 11:04:03 AM »
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.
TheSwamp.org  (serving the CAD community since 2003)

Ron Heigh

  • Guest
Does this routine exist???
« Reply #3 on: August 10, 2004, 12:35:38 PM »
Quote from: hendie
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....

Ron Heigh

  • Guest
Does this routine exist???
« Reply #4 on: August 10, 2004, 12:50:13 PM »
Here is the pseudocode I worked out.
Code: [Select]
-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.