cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Apply Presets programmatically

Apply Presets programmatically

Presets are a great functionality to apply various settings to features. Unfortunately, there is currently no public API available for creating, selecting, or applying any Presets programmatically.

In my specific case, I need to apply a set of propüerties to an assembly through BIM-Content - Include Properties, but I'm sure there would be diverse other applications throughout Inventor starting from applying a set of parameters to a hole to generating different simplifications with different levels of detail to whatever is possible with a preset.

So appling a preset, that could easily be deployed to a users machine through the API would provide a powerful tool for many use-cases.

Please take into consideration as a future API-Improvement.

Thank you,
Tobias

3 Comments
DominikHall_CADPDM
Participant

Full support for this idea.

A public API for selecting, and applying Inventor presets would significantly simplify automated workflows.


It would reduce implementation and maintenance effort, minimize potential error sources, and enable the consistent use of centrally managed presets.

Yijiang.Cai
Autodesk
Status changed to: Future Consideration

Many thanks for posting the idea, and tracked as [INVGEN-92172]

DominikHall_CADPDM
Participant

An additional point for RVT export presets: in my tests with Inventor 2027.1, the Export IFC selection of the RVT export was not written to the preset file, the registry or CommandSettings.xml. After a restart the dialog showed None again.

 

So even if presets could be applied via the API, the preset alone would not reproduce the IFC output of the RVT export. It would help if RVT export presets also stored the Export IFC selection.

 

I have posted the missing API property as a separate idea: Expose the "Export IFC" option of the RVT export through RevitExportDefinition - Autodesk Community

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea