Does anyone know the script for it? Would like to have this script in my template for assemblies. So when user opens up the assembly it changes the visual style automatically.
Thanks in advance.
Go to Solution.
When Inventor opens the document in visible mode it makes the document active and displays it in active view. At this momemt you may change active view properties as desired.
Try the following rule:
Dim oView As View = ThisApplication.ActiveView
oView.DisplayMode = DisplayModeEnum.kShadedWithEdgesRendering
Then make this rule triggered by the event “After Open Document”.
Note that Inventor document object has the collection of views, so you may also change properties of View objects in the collection Document.Views.
DisplayModeEnum constants are discribed in the Inventor Programming Help:
kHiddenEdgeRendering, kIllustrationRendering, kMonochromeRendering, kRealisticRendering, kShadedRendering, kShadedWithEdgesRendering, kShadedWithHiddenEdgesRendering, kWatercolorRendering, kWireframeNoHiddenEdges, kWireframeRendering, kWireframeWithHiddenEdgesRendering
Thanks o lot!
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.