Jump to content

Recommended Posts

Posted

I have written a simple batch routine that will open the drawing, take out the border, replace the border with the new logo, save the drawing and close it. However, it has come to my attention that not all designers have used the same size border. I can change my code to work for each individual border but we are talking about over 500 drawings with different size borders. In addition, some other designers have drawn in Layout space. I will also need to replace the border in that space.

Can someone help me with a code that will replace the border with the same size that is in the drawing, and look to see if there is a border in layout space and replace that one with the same size border..

 

 

Thanks

Posted

I am looking at the crystal ball and can see your dwg example that you are going to post.

Posted

Quite a task.

Kudos to the designers Using Layouts! That's the only way I've ever plotted with a border in the quarter century I've been using AutoCAD. Are both the old and new borders blocks? Are all the attributes the same? You should consider xrefed title blocks that could be modified at one location for all your drawing files.

Posted

I have made all attributes as their own block so we do not have to change those out. I would xref them, however, there is another program that the drawings and PDFs will go into and it does NOT read xrefs.. (which I do not like, but not my choice).

I pretty much just want to be able to see what border is there (block) and replace it with new border of same size, and check to see if the border or a border is in layout space and replace that one with the same size. I am still new to lisp, scripts and batch. But my simple one does do the quick trick of opening drawing, deleting border, place new border save and close.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...