Layout viewport replaced after autosave

Layout viewport replaced after autosave

bastien.maignan
Explorer Explorer
462 Views
2 Replies
Message 1 of 3

Layout viewport replaced after autosave

bastien.maignan
Explorer
Explorer

Hello,

 

I have some issue with a layout viewport and I can't find a solution for that.

Some context :

Autocad version : R.154.0.0 AutoCAD 2021.1.1

In order to gain time while we are drawing a new building, I wrote some VBA macros in Excel to create different layout in the drawing.

On the model space, I have the title block with different informations and some of them are specific for each layout.

So I created a block on a "template" layout with :

- Some texts for the specific informations

- A layout viewport targeting the title block from the model space

When I create the layouts in VBA, I insert this block, explode it and change the display of the viewport.

At this point, everything's fine.

 

The problem :

After the file autosave, some of the title block viewports just disappear and a new one is created on the "0" layer, like the predefined viewport of a new layout.

 

This problem happens on professional files so I can't send them to you, but if you need more informations, I'll answer quickly.

 

Thank you in advance.

0 Likes
Accepted solutions (1)
463 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor

Share your code and a sample file. The file doesn't have to contain company information on the layouts, just some sample info.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 3

bastien.maignan
Explorer
Explorer
Accepted solution

Hello,

 

It seems that the problem is from the Viewport in the block because one of my colleague did a copy/paste of the initial block and even without the autosave, he had the same issue...

I'm going to change the block and remove the viewport in it.

0 Likes