Inventor View Control
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I need to add the InventorViewControl to my form in vb.net but it doesnt matter how many times i try to add the ocx to my toolbox, it doesnt appear. I gave up on that and referenced it then declared it in my code-
Imports InventorViewControlLib
Then, in my class i instanced a New instance
Public ViewCtl As New InventorViewControlLib.InventorViewControl
Then in my form load, i created the object and added it to a panel-
's = FilePath ViewCtl.FileName = s ViewCtl.ViewOrientationType = InventorApprentice.ViewOrientationTypeEnum.kIsoTopLeftViewOrientation ViewCtl.DisplayMode = InventorApprentice.DisplayModeEnum.kShadedWithEdgesRendering ViewCtl.ActiveViewingCommand = ViewingCommandEnum.kNoViewingCommand ViewCtl.HideToolbar = True ViewCtl.Interactive = False Panel1.Controls.Add(ViewCtl)
But, it doesnt work and i get an error saying that the object cannot be found.....
how can i successfully load the InventorViewControl into my vb.net form?
Thanks
Nacho
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.