PDA

View Full Version : Problem: dup block name, diff insertion pts


jawf
2004-12-18, 07:07 AM
I have quite a challenge. I am using Autocad Map and I have a fair number of drawings (6000) that I have to query together in sets. The issue is that they contain some duplicate blocks with the same names and different insertion points. This causes a shift to occur when the first definition overrides the second.

I am trying to find a way to identify which definition is in each drawing. I can find such things as insertion pt, scale, rotation, etc. What I need to determine is where is the insertion point relative to the body of the block. Some of the blocks have offset insertion pts as compared to it duplicate cousin that isn't offset.

An example is: a block that is a circle. One has an insertion point that is about 7.12 outside of the circle. The cousin is in the center of the circle. Same name. Programmatically I have read the insertion pt and then exploded the block and read the center of the circle and compared the two pts. That will work to differentiate between this simple example. Some of the blocks are a lot more complicated.

Any suggestions??

Thanks

Joe

mjfarrell
2004-12-18, 01:03 PM
Yes, use the MAP >>Alter Properties function
during the query to RENAME the duplicate named blocks
and or if required query them in and also alter their insertion
(redefine the blocks) and shift them all back so that they are in
the correct location with the identical insertion point then
save them back to their source files.
To know what files have these duplicate names, run a report query
to list only the blocks that are contained in your files, so that you
can plan accordingly.

jawf
2004-12-20, 07:06 PM
Interesting solution. If I do as you suggest and rename the blocks and then do a save-back having added to the save set, then the source file should be updated with the new block name? Thanks for you attention.

Joe