Inventor drawing file size increases when adding/removing views/sheets with ilogic

Inventor drawing file size increases when adding/removing views/sheets with ilogic

harvey_craig2RCUH
Advocate Advocate
234 Views
1 Reply
Message 1 of 2

Inventor drawing file size increases when adding/removing views/sheets with ilogic

harvey_craig2RCUH
Advocate
Advocate

I am creating a drawing template that places views with iLogic. It works by copying sheets from 'master' drawings, moving required views onto main sheet then deleting the (now blank) copied sheet. Every time this is done it increased the drawing file size by 3MB or so. This would be ok if that went down when the views were deleted, however if they are deleted the document retains the extra file size. I was working on a template for a few hours today and through these cycles I managed to casually get the drawing document up to 250MB. Which remained even with every view deleted. This was an essentially blank 250MB file. I had to copy my rules to a new template and start again because I could not find a way to get this down. Is there a way I could've purged this document? I imagine it is storing all the views and keeping a long record of the history when it really doesn't need to. I can't seem to find much information on the subject? Or is this just a flaw in Autodesk software? 

 

 

These are the typical kind of rules I was using to ad/remove view/ sheets, This is not in order or anything but just a rough guide on what I was doing. My code works great, just the resulting file sizes are massive.

ThisApplication.Documents.Open(HosetailFile, True) 'Open drawing.
Dim copySheet As Sheet = StandardisedDrawing.Sheets.Item(1)
copySheet.CopyTo(MainDrawing)
NewSheet.DrawingViews.Item(y).MoveTo(MainSheet)
StandardisedDrawing.Close(True)'Close Template drawing & skip save
NewSheet.Delete 

 

0 Likes
Accepted solutions (1)
235 Views
1 Reply
Reply (1)
Message 2 of 2

harvey_craig2RCUH
Advocate
Advocate
Accepted solution

The answer to this is very simple. Every time I deleted the 'new sheet' , the embeddings that were on it would remained in the embedding tree. This was a spreadsheet and a PNG getting saved on top of the file every time. I am writing a rule that collects the names of the embedded items on the 'new sheet and deleting them before I delete the sheet.

0 Likes