LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 3005 occurred at Automation Open: Object specified is not creatable in XXX.vi

 

I'm trying to connect to Autodesk Inventor using ActiveX to get number of active documents. Example VBExpress2010 code provided by Autodesk works perfectly. When I switch to the LabView 2009 SP1 I'm getting Error 3005. 

For some reason Select ActiveX object-> Browse->Application in Autodesk Object Library is not visible when "show creatable objects only" is checked.

There is also creatable object "_Application(Application.Inventor.1))" but when I use it there are no properties of methods accessible 

I have tried everything I could find here but it still does not work.

Can somebody help me?

 

VB Express example code (reference to the Autodesk Object Library is added in project options):

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim oApp As Inventor.Application

        oApp = GetObject(, "Inventor.Application")

        MsgBox("Number of documents = " & oApp.Documents.Count)

    End Sub

End Class

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        Dim oApp As Inventor.Application        oApp = GetObject(, "Inventor.Application")        MsgBox("Number of documents = " & oApp.Documents.Count)    End SubEnd Class

 

0 Kudos
Message 1 of 5
(5,035 Views)

Did you register the ActiveX control or server on the target machine?  See the link below...

How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?

Error 3005 can happen if you have choosen a non-creatable object. 

See if that fixes all your problems, it has worked for me in the past to resolve error 3005.

-Dave

0 Kudos
Message 2 of 5
(5,024 Views)

I tried registering and it still does not work. As I mentioned: VB code works and it uses same objects from the library. It seems that Labview has problem with it

0 Kudos
Message 3 of 5
(5,021 Views)

Onyone? Any ideas?

0 Kudos
Message 4 of 5
(5,005 Views)

 

Hello, 
 
There is a way to work around this problem. You can write your application using  VStudio Express (which works fine from what I understand) and save it in .dll. Then you can call the functions from that .dll using LabVIEW. It would be like building a wrapper for the functions you need. This is also the way that most of the functions from driver libraries (like DAQmx) are used in LabVIEW. I'm not able to provide any additional information regarding Autodesk software and its compatibility with LabVIEW.  
 
Hope that helps, RB

 

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect
0 Kudos
Message 5 of 5
(4,990 Views)