AutoCAD Mechanical General Discussion

AutoCAD Mechanical General Discussion

Reply
Member
5 Posts
1 Kudo
Registered: ‎09-30-2009
Post 1 of 6

Autodesk SymBBAuto 3.0 Type Library

912 Views, 5 Replies
08-12-2010 08:48 AM

Have a big problem with Autocad Mechanical 2011 VBA.

I get a Runtime error (Problem in  loading application.)

Here is the code:

 

Dim symbb As McadSymbolBBMgr

Set symbb = Thisdrawing.Application.GetInterfaceObject("SymBBAuto.McadSymbolBBMgr")

 

The SymBBAuto fails to load. Has anyone have the same problem?

Looking for any comments and/or fixes on this problem in Autodesk SymBBAuto 3.0 Type Library.

 

Distinguished Contributor
109 Posts
7 Kudos
Registered: ‎04-05-2012
Post 2 of 6

Re: Autodesk SymBBAuto 3.0 Type Library

05-03-2012 06:02 AM in reply to: mastertool

I've got the same problem with AM 2013.

Contributor
23 Posts
1 Kudo
Registered: ‎07-12-2012
Post 3 of 6

Re: Autodesk SymBBAuto 3.0 Type Library

07-12-2012 09:33 AM in reply to: FRFR1426

did you solve this problem? 

Please see

http://forums.autodesk.com/t5/AutoCAD-Mechanical/SymBBAuto-x-ACADM-2013-VBA/td-p/3536186

I have the same issue...

 

 

Distinguished Contributor
109 Posts
7 Kudos
Registered: ‎04-05-2012
Post 4 of 6

Re: Autodesk SymBBAuto 3.0 Type Library

07-12-2012 11:59 PM in reply to: mastertool

Yes, I've solved my problem, but unfortunately I don't remember how and I'm not able to find something about that in my notes.

 

But in my final code, I'm using :

 

Dim symMgr As New McadSymbolBBMgr



instead of :

 

Dim symbb As McadSymbolBBMgr

Set symbb = Thisdrawing.Application.GetInterfaceObject("SymBBAuto.McadSymbolBBMgr")

 

I'm using Interop.SymBBAuto 3.0 with Embed Interop Types at true and Isolate at false.

 

Also if you want to run your app on x86 and x64, you have to change the guid of the reference in your .vbproj file :

 

{71477CDD-CA02-4842-98C7-7141520E7D70} for x64

 

and

 

{4A193255-4AC6-4E04-9DE7-B041C5B216D4} for x86

 

It is a misery, as always with COM...

Employee
5 Posts
0 Kudos
Registered: ‎12-17-2004
Post 5 of 6

Re: Autodesk SymBBAuto 3.0 Type Library

07-13-2012 01:53 AM in reply to: FRFR1426

FRFR1426:

please read my reply in

http://forums.autodesk.com/t5/AutoCAD-Mechanical/S​ymBBAuto-x-ACADM-2013-VBA/td-p/3536186

it might help you.

 

Li Fei

SQA Engineer

Autodesk

Contributor
23 Posts
1 Kudo
Registered: ‎07-12-2012
Post 6 of 6

Re: Autodesk SymBBAuto 3.0 Type Library

07-13-2012 12:22 PM in reply to: FRFR1426

hi FRFR1426

 

Many thanks for your tip.

 

I tried also the tip from Li Fei and it worked very well on ACADM 2013 ! But some other conversions were needed, now we are able to migrate.

 

Regards

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!