Weird IAM file size

Weird IAM file size

Neil_Cross
Mentor Mentor
714 Views
25 Replies
Message 1 of 26

Weird IAM file size

Neil_Cross
Mentor
Mentor

I'm investigating an issue with an assembly file that is unusually large in file size.  I opened the IAM, deleted literally everything from it, removed all links, model states, reps, appearances, materials, purged everything, but the file size is still 650mb for what is essentially an empty IAM file.

 

One thing I noticed is that when I create an empty new model state, the file size balloons to 1.3GB! Then when I create a second empty state, it jumps to nearly 2GB.

 

Neil_Cross_0-1761814950177.png

 

New model state...

 

Neil_Cross_1-1761815014522.png

 

The only thing I can see in this IAM that shouldn't be here is some leftover parameter groups that I can't remove.

 

Neil_Cross_2-1761815065695.png

 

Anyone have any idea how to remove these or properly flush this assembly to get rid of the bloat? I've tried saving as a new file too but no joy there.

0 Likes
Accepted solutions (1)
715 Views
25 Replies
Replies (25)
Message 21 of 26

Alfred_H_
Explorer
Explorer
Accepted solution

Hi everybody, I'm Alfred and I'm new to this forum

 

Hi @Neil_Cross , 

I tried the iLogic from here.

 

 

Sub Main()
	Dim oDoc As Document
	oDoc = ThisApplication.ActiveDocument
	If oDoc.ReferencedOLEFileDescriptors.Count > 0
		For Each oOLEFileRef In oDoc.ReferencedOLEFileDescriptors
			oOLEFileRef.BrowserVisible = True
		Next
	End If
End Sub

 

 

This makes the OLE links visible in the browser, allowing them to be deleted.

The file size was then 735 KB , give it a try.

 

Alfred

Message 22 of 26

BDCollett
Advisor
Advisor

Hi Neil.

 

Correct, my customer did not notice this issue but when I was looking at another issue noticed these large file sizes.

It's especially bad for users with Vault combine with Gateway and now having to get gigabytes of extra data for absolutely no reason.
There needs to be a method to fix this because as you said, recreating some of these assemblies is a lot of work.

0 Likes
Message 23 of 26

BDCollett
Advisor
Advisor

Hi Alfred,

 

Amazing. What a simple fix.

Now that you added this it does remind me that I think I have seen this before!

The file is now 3.6MB instead of 1.9GB. Quite a difference!

0 Likes
Message 24 of 26

johnsonshiue
Community Manager
Community Manager

Hi! The project team informs me that these RefdFile objects are related to Stress Analysis. We have seen similar behaviors before but we don't know how to reproduce it from scratch. Normally, these RefdFile objects should be external. Somehow they are embedded in the iam/ipt files causing the bloat.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 25 of 26

Neil_Cross
Mentor
Mentor

OK Thanks Johnson, in the mean time I'll use the iLogic fix provided above by @Alfred_H_  thanks for that also Alfred

Message 26 of 26

Alfred_H_
Explorer
Explorer

Glad it worked for you and Neil.