@maratovich wrote:
1. Your objects consist of two elements (a circle and a hatch). Are they always like this or is it a block in the original?
2. The object to replace the rectangle is rotated (strange)
3. The left indent is different, but the indent on the right was checked? Maybe the right indent the same?
4. Is it a title block frame?
5. Is this all in Model?
6. Frame one in each file?
7. Is there only one replacement object in the drawing or many similar?
1. It's a sketch, so in the real case I need to take away a text and insert some text which gets updated each time the file is opened; but it could change in future iterations. The insert I can do with a simple paste. However, the nature of the object to be erased and pasted I believe is independent of the what I need to accomplish here, which would be to script some code which gives me back the size of the drawing. I've already managed the code to erase/paste.
2. The rectangle is just an example. Don't pay mind to it.
3. See number 2.
4. The original frame is indeed a block.
5. Yes, the original drafter had the whole drawing in model space. He used no layouts.
6. The frame is similar in all drawings, not exactly the same. There are three or four different blocks for frames in the pack, but the object I want to erase/paste are always proportionately placed in the same place relative to 0,0.
7. Right now there is only one replacement object in each drawing, but seeing how often such replacements are done in the office the might be any number of replacements in the future.
Please find below the code I'm using. It's fairly simple and would work flawlessly except for the fact that each dwg is scaled differently. This is why my problem right now is getting some code to tell me what scale/size each drawing is.
_.ERASE W 37'-0-3/8",2'-8-7/16" 121'-2-1/16",1'-7-1/16"
_.PASTECLIP 37'-1-13/16",1'-9-1/8"
ZOOM E
QSAVE
Thanks for replying man!