Hi Everyone.
I'm trying to retrieve the active visual style and store it in a variable for later use in my code.
Right now I can only change the visual style to chosen style.
Dim oView As Inventor.View = ThisApplication.ActiveView oView.DisplayMode = DisplayModeEnum.kRealisticRendering
The idea is to change the visual style, then render and then revert the visual style back to the original one.
All help is welcome!
Solved! Go to Solution.
Solved by Andrii_Humeniuk. Go to Solution.
Hi @J.VandeMerckt . The View.DisplayMode function has a Gets/Sets property, so your code can get the active view. Here is an example:
Dim oView As Inventor.View = ThisApplication.ActiveView
Dim oActView As DisplayModeEnum = oView.DisplayMode
MessageBox.Show(oActView.ToString(), "Active Visual Style:")
Andrii Humeniuk - Leading design engineer
LinkedIn | My free Inventor Addin | My Repositories
Did you find this reply helpful ? If so please use the Accept as Solution/Like.
Can't find what you're looking for? Ask the community or share your knowledge.