where is AxInventorViewControlLib defined?

where is AxInventorViewControlLib defined?

Anonymous
Not applicable
2,167 Views
9 Replies
Message 1 of 10

where is AxInventorViewControlLib defined?

Anonymous
Not applicable

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

0 Likes
2,168 Views
9 Replies
Replies (9)
Message 2 of 10

xiaodong_liang
Autodesk Support
Autodesk Support

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

 

 

0 Likes
Message 3 of 10

Anonymous
Not applicable

 

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?

0 Likes
Message 4 of 10

Anonymous
Not applicable

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

0 Likes
Message 5 of 10

Anonymous
Not applicable

I added reference 

 

$7597D60A4ACD866B.jpg

 

but stilll geting error message:

Error 2 Type 'AxInventorViewControlLib.AxInventorViewControl' is not defined. 

0 Likes
Message 6 of 10

xiaodong_liang
Autodesk Support
Autodesk Support

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.

0 Likes
Message 7 of 10

VoteCoffee
Explorer
Explorer
I am using VS 2012 Professional, windows 7 x64, Inventor 2012 x64. I have tried adding the control from bin and bin/bin32 without success using add reference->browse. I have attached a screenshot of the error. I have tried changing the .NET framework between 2, 3.5, 4.0, and 4.5 and none of these worked.
0 Likes
Message 8 of 10

VoteCoffee
Explorer
Explorer
I had to chnage the .NET framework to 3.5 and then reboot but it let me add the reference. A new error has occurred though, and a screenshot is attached.
0 Likes
Message 9 of 10

VoteCoffee
Explorer
Explorer
I now get the original error when trying to add CommonLib.DLL. I should clarify that a reference to InventorViewCtrl.ocx was never added, it just gave me the new error instead.
0 Likes
Message 10 of 10

VoteCoffee
Explorer
Explorer
I had success adding the files from the following location instead: Directory: C:\Users\Public\Documents\Autodesk\Inventor 2012\SDK\DeveloperTools\Samples\VB.NET\Standalone Applications\Inventor\PartFeatures\bin Files: Interop.InventorViewControlLib.dll AxInterop.InventorViewControlLib.dll
0 Likes