Is it possible to have the export object set by befault for new created boddy in Inventor 2022?

Is it possible to have the export object set by befault for new created boddy in Inventor 2022?

hans-eric.vendelson
Explorer Explorer
362 Views
3 Replies
Message 1 of 4

Is it possible to have the export object set by befault for new created boddy in Inventor 2022?

hans-eric.vendelson
Explorer
Explorer

I would like to have the option Export Object set by default in new created bodies (for example when a mirror is done)

hansericvendelson_0-1646141246990.png

 

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

johnsonshiue
Community Manager
Community Manager

Hi! I guess it will need an iLogic rule. I don't think there is an out-of-box solution.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 3 of 4

Gabriel_Watson
Mentor
Mentor

You can probably export all objects in one shot through Manage (tab) > Author (panel) > Export Objects. I have not yet been able to find any iLogic snippets for that automatically though.

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014...

0 Likes
Message 4 of 4

johnsonshiue
Community Manager
Community Manager
Accepted solution

Hi! Please bear with me. I am an novice iLogic user. Here is a simple iLogic rule to set all solid bodies exported.

Just create this rule and run it as you wish or trigger it on open.

 

Dim oDoc As PartDocument = ThisDoc.Document
Dim oCompDef As ComponentDefinition = oDoc.ComponentDefinition
Dim oBody As SurfaceBody
Dim i As Integer
i = 1
For Each SurfaceBody In oCompDef.SurfaceBodies
oBody = oCompDef.SurfaceBodies.Item(i)
If oBody.Exported = False
oBody.Exported = True
End If
i=i+1
Next

 

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer