Batch Purge of ipts?

Batch Purge of ipts?

estringer
Advocate Advocate
1,170 Views
14 Replies
Message 1 of 15

Batch Purge of ipts?

estringer
Advocate
Advocate

We are having issues with large assemblies crashing when opening. Autodesk has told us that the large file size of our parts and sub-assemblies is contributing to this issue. Is there a way to batch purge parts and assemblies within Inventor or does anyone know of iLogic that might accomplish this? I am under the impression from my research that the Task Scheduler only purges styles.

0 Likes
1,171 Views
14 Replies
Replies (14)
Message 2 of 15

Frederick_Law
Mentor
Mentor

Task Scheduler

0 Likes
Message 3 of 15

estringer
Advocate
Advocate

From what I have read, I am lead to believe that this only purges styles. Is that not correct?

0 Likes
Message 4 of 15

Frederick_Law
Mentor
Mentor

I believe so.

What else you want to "purge"?

Purge unused?

0 Likes
Message 5 of 15

estringer
Advocate
Advocate

Yes.

0 Likes
Message 6 of 15

Frederick_Law
Mentor
Mentor

I don't think you can skip the dialog box.

It doesn't have API calls.

 

Also it didn't delete User Parameters.

Message 7 of 15

A.Acheson
Mentor
Mentor

Are any of the parts imported from step files? If they are then deriving the parts and reducing the detail is one good way to reduce file size. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 8 of 15

estringer
Advocate
Advocate

None of the parts are from STP files.

0 Likes
Message 9 of 15

tfrohe_LSI
Advocate
Advocate

@estringer I'm sure Autodesk has advised you of this but have you tried using Express Mode for these assemblies? 

 

0 Likes
Message 10 of 15

estringer
Advocate
Advocate

@tfrohe_LSI ,

I can typically get the larger assemblies to open in Express mode, it is opening in full when they crash.

 

0 Likes
Message 11 of 15

A.Acheson
Mentor
Mentor

Have you been able to narrow down what is ballooning the filesize? Without knowing the scale of what your working with is can be difficult to help in this situation. If the assemblies are just too big then you might have no option but to derive and simplify them to a part and have them as complety seperate files and drawings. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 12 of 15

estringer
Advocate
Advocate

@A.Acheson ,

Our templates have a lot of items built into them initially that could be cut out after they have been through checking. That is contributing heavily to the file size and what is driving my request for a method to purge unused items.

0 Likes
Message 13 of 15

A.Acheson
Mentor
Mentor
Can you define the objects items, Parameters/iProperties?


If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 14 of 15

estringer
Advocate
Advocate

Sketch blocks, parameters, pre-built sketches. We wait until after most of that has been defined before adding iProperties so that isn't contributing wastefully.

0 Likes
Message 15 of 15

A.Acheson
Mentor
Mentor

To delete sketch blocks you can probably try the nuclear method and just delete them. If is associated to a sketch it will error out. Do Try this in a trial part to ensure it doesn't mess up your parts. 

 

 

 

Dim partDoc As PartDocument = ThisApplication.ActiveDocument
For Each sktBlock As SketchBlockDefinition In partDoc.ComponentDefinition.SketchBlockDefinitions
          Try	
           sktBlock.Delete
          Catch
          End Try
Next

	

 

 

And here is a post to delete the parameters

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes