Autodesk Inventor Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
where is AxInventor ViewContro lLib defined?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
I am reading the partfeature sample code in 2012 sdk.
Just wondering the AxInventorViewControlLib in this line is not defined when I view it with vb.net 2012 express. Which type library I need to add into reference?
Me.AxInventorViewControl1 = New AxInventorViewControlLib.AxInventorViewControl
Thanks in advance
Cean
Re: where is AxInventor ViewContro lLib defined?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
The view control is provided by the InventorViewCtrl.ocx with the product. Once you add the control to your application, you will see AxInventorViewControlLib.
Regards,

Xiaodong Liang
Developer Technical Services
Xiaodong Liang
Developer Technical Services
Autodesk Developer Network
Re: where is AxInventor ViewContro lLib defined?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
xiaodong liang,
Can you verity that the 2012 ActiveX Control works in XP with VB.NET 2010.
We have not upgraded to 2012 precisely because the control did not work for us.
Our manufacturing floor depends heavily on a Barcode driven application that uses this control.
We froze Inventor to 2011 because of this problem. Has it been fixed?
Re: where is AxInventor ViewContro lLib defined?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
can't find this InventorViewCtrl.ocx in the vb.net sample folder.
It seems located in the c# sample folder.
How do I insert it in vb.net? Just like "Add reference"?
Thx
Re: where is AxInventor ViewContro lLib defined?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I added reference
but stilll geting error message:
Error 2 Type 'AxInventorViewControlLib.AxInventorViewControl' is not defined.
Re: where is AxInventor ViewContro lLib defined?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
1) on 64bits, you have to register InventorViewCtrl.ocx from C:\Program Files\Autodesk\Inventor 20xx\Bin\Bin32\
2) you will need to use .Net Framework3.5 or lower version to get the InventorViewCtrl.ocx working. The .Net Framework4.0 has the Interop.InventorApprentice reference needed but it does not generate it.
The snapshot is what my demo on my Win7 64bits with Inventor 2013. It works well.
Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

