Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventor 2014 64-bit breaks database connections.

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
771 Views, 3 Replies

Inventor 2014 64-bit breaks database connections.

1)  I get an error saying I need to add an attribute called PtrSafe to my Delcare statements.

Did that an things seem to move forward.

 

2) I access several different databases through my macros.

 

Connecting to Access via jet 4.0 throws an error.  Provider not found.

Weird thing is if I fire up 2011 I do not get this error.

 

Connecting to MAS 200 I get an error saying that the ODBC DSN contains an architecture mismatch between the   driver and the application.

 

Following up on the ODBC error it says something about the C:\Windows\SysWow64 folder.

I see no such folder on my 64 bit windows 7 machine.

 

What can I do to fix the issue?

3 REPLIES 3
Message 2 of 4
xiaodong_liang
in reply to: Anonymous

Hi,

 

this seems duplicated with the other thread:

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/MacroControlDefinition-does-not-work-i...

 

But I'd like to repeat:

 

MS provided new VBA which has 64bits version. Inventor 2014 uses it. So now VBA is also running within Inventor process (64bits). Have you tried in other VBA environment such as Excel, Word 2010? If it is reproducible, you would have to consult with MS how to connect Database in VBA. Appreciate if you could share the solution when you get any.

Message 3 of 4
Anonymous
in reply to: xiaodong_liang

Not duplicated.  Related yes,

 

This thread is mainly about connecting to databases in Inventor 64 bit VBA 7 that use a 32 bit driver.

The short answer is that you cannot with out a 64 bit driver.

 

We upgraded this week from MS Office 2000 to MS Office 2013.

Running Excel VBA 7 64 bit as a test I can now connect to my database(s)

Inventor is another story.  New problems there.

 

The other thread is about VBA macros not running from an addin.

In that case it is the 32 bit specific code... say Windows API declarations that may be causing the failure. 

Message 4 of 4
ekinsb
in reply to: Anonymous

You're correct that in order to use the MS data access components in Inventor 2014 you need to have the 64-bit version of those components.  When you say Office 2013, I assume you actually mean Office 365.  We've discovered an issue with Office 365 where it installs the components in a way that they can only be used from within an Office application.  We're waiting for some clarification from Microsoft.

 

In the meantime a simple workaround is to install the component seperately from here:

 

http://www.microsoft.com/en-us/download/details.aspx?id=13255

 


@Anonymous wrote:

 

This thread is mainly about connecting to databases in Inventor 64 bit VBA 7 that use a 32 bit driver.

The short answer is that you cannot with out a 64 bit driver.

 

We upgraded this week from MS Office 2000 to MS Office 2013.

Running Excel VBA 7 64 bit as a test I can now connect to my database(s)

Inventor is another story.  New problems there.

 

 

 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report