Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Autocad 2012] Template update

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
AvikoTD
650 Views, 7 Replies

[Autocad 2012] Template update

Hello,

 

In this company we have an old template we used.

Now I updated the template, with a layout for each format (a4 portrait/ a4 landscape/a3 portrait/ .../ a2/ a1.

The template has the same name, the old template I moved to a history map.

New drawings use automaticly the new template, but I want to update also the new drawings.

 

The slow way I use now is.

1.  I open the drawing I want to update.

2.  I delete all the old layouts

3.  I use purge (because the title block in de layout have the same name)

4. I use add layout from template, the I select the template, then I select all the layouts with control pressed.

5. Now I have the new layouts.

 

Is there a more easy way to update all the layouts.

A layout is based on a titleblock, that is a block, and a viewport.

 

Thanks in advance,

Tom Roelofs

7 REPLIES 7
Message 2 of 8
Alfred.NESWADBA
in reply to: AvikoTD

Hi,

 

you might automatically exchange the titleblock, but from your list at item 2 the problem starts: when you erase the layouts including the viewports how should the new inserted layout know:

  1. view and scale of the viewport before
  2. contents of the titleblock

So I guess if you really have strong structured old drawings you might find someone writing a tool for exchanging an old layout to a new one and keep as many informations as necessary, but OTB I would not know any automatic way that does not need manual work.

 

Sorry, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 8
AvikoTD
in reply to: Alfred.NESWADBA

Hi,

 

That is not exact what I meant.

The titleblock in de layout is not a reference,

but a plain block with attributes.

I want to update the layouts,

because the template of the company is changed.

Can I automaticly update old drawings to the new templates.

 

Tom

 

I have added the new template,

some informatian is deleted.

Message 4 of 8
jggerth1
in reply to: AvikoTD

Might be possible to get there, sorta.  using the -insert command.

 

at the command prompt, type in -insert.  the prompt will read:

 

Command: -INSERT
Enter block name or [?]:

 

type in oldtitleblock=drive:\path\newtitleblock.dwg

 

You'll be informed that the block exists, and asked if you want to redefine it.  Say yes

 

Athe prompt for insertion point, hit ESCape and exit the insert command.

 

That should redefine the existing titleblock, keeping whatever attribute information is the same between old and new versions. I'm not sure what the result wil bee if the new attributes don't match the old ones exactly.

Message 5 of 8
steve216586
in reply to: AvikoTD

You can use Design Center very easily.

 

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 6 of 8
RockyBrown4134
in reply to: AvikoTD

Not sure what you exactly are trying to accomplish, but think you want to update old drawings to the new template style. Here is what I did that worked for some simple tasks.

I created a lisp routine that I put on a toolbar button. one was for updating the layer colors. The code for each layer used was similar to below.

(defun C:LayerClean ()
(command "-Layer" "color" "163" "Text")
);end defun

A line of code was done for each layer name that I wanted to update.

I did the same thing for updating the title blocks, using the code below.

(Command "-insert" "titleblock=titleblock" "Y")(Command)(Command)

where "Y" is the response to redefine the block and (Command)(Command) cancels the routine without actually inserting the title block again. This works as long as the block location was in the support paths of the profile. I created a toolbar button for each type of title block I had.

This may not be the best or correct way, but it worked. Hope this helps.
If this response answers your question, Please mark this response as "Accept as Solution"

Rocky Brown
AutoCAD 2020 / Inventor 2020 / Plant 3D
Message 7 of 8
AvikoTD
in reply to: RockyBrown4134

Hello,

 

The thing i want to accomplish is to update the layouts with the titleblock and viewports.

The layers i dont care, there are the same.

 

I have Autocad 2012 LT, so Lisp is not working for me.

I think I have to erase, purge and add the layouts by hand.

 

Because when I add them without th erase and purge,

the new layout will use the old block, thats still in de block manager.

 

Thanks for the thinking.

Tom

 

Message 8 of 8
jggerth1
in reply to: AvikoTD


@AvikoTD wrote:

Hello,

 

The thing i want to accomplish is to update the layouts with the titleblock and viewports.

The layers i dont care, there are the same.

 

I have Autocad 2012 LT, so Lisp is not working for me.

I think I have to erase, purge and add the layouts by hand.

 

Because when I add them without th erase and purge,

the new layout will use the old block, thats still in de block manager.

 

Thanks for the thinking.

Tom

 


See messages above from myself and steve216586,

 

the -insert command will let you redefine the block with a new one, as will Design Center (ADC command).  The Design Center will also import a new layout and that will use the new title block _after_ you've redefined it with either ADC or the -insert command.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost