Closing Drawing leaves files used in views open

Closing Drawing leaves files used in views open

johnster100
Collaborator Collaborator
283 Views
1 Reply
Message 1 of 2

Closing Drawing leaves files used in views open

johnster100
Collaborator
Collaborator

Hi,

i have a small program which creates some drawings automatically.

 

It creates the drawing from scratch adding:

Views (of assembly files)

Features (workplanes for centerlines, includeds model sketches, etc)

Dimensions

Notes

 

Dimensions are added by finding features in the part models with named faces.

 

The issue I have is when I close the drawing document the models used in the views remain open, they are invisible at this stage. Is there a way to prevent this? I.e. shut down the model and close all associated models?

 

The second issue is that the assembly file used in the views is also dirty, does creating geometry proxies dirty a document?

 

thanks,

John

0 Likes
284 Views
1 Reply
Reply (1)
Message 2 of 2

JhoelForshav
Mentor
Mentor

Hi @johnster100 

Have you tried:

ThisApplication.Documents.CloseAll(True)

The Boolean argument True means unreferenced only 🙂

0 Likes