• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    Valued Contributor
    cean_au
    Posts: 99
    Registered: ‎07-11-2011

    where is AxInventorViewControlLib defined?

    255 Views, 5 Replies
    09-22-2011 10:05 PM

    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

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 805
    Registered: ‎06-12-2011

    Re: where is AxInventorViewControlLib defined?

    09-23-2011 02:34 PM in reply to: cean_au

    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

    Please use plain text.
    Valued Mentor
    Posts: 363
    Registered: ‎11-24-2003

    Re: where is AxInventorViewControlLib defined?

    09-26-2011 02:41 PM in reply to: xiaodong.liang

     

    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?

    Please use plain text.
    Valued Contributor
    cean_au
    Posts: 99
    Registered: ‎07-11-2011

    Re: where is AxInventorViewControlLib defined?

    10-06-2011 04:41 AM in reply to: cean_au

    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

    Please use plain text.
    Member
    Posts: 5
    Registered: ‎08-28-2009

    Re: where is AxInventorViewControlLib defined?

    10-29-2012 07:39 AM in reply to: cean_au

    I added reference 

     

    $7597D60A4ACD866B.jpg

     

    but stilll geting error message:

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

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 805
    Registered: ‎06-12-2011

    Re: where is AxInventorViewControlLib defined?

    11-02-2012 07:28 AM in reply to: VitaliHoerbiger

    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

    Please use plain text.