VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error in SetPartData - AutoCAD Mechanical VBA

1 REPLY 1
Reply
Message 1 of 2
NirantarVidyarthee
405 Views, 1 Reply

Error in SetPartData - AutoCAD Mechanical VBA

I have the following code which is a part of code to insert a part reference, balloon and partlust.

 Dim oBOMMgr As McadBOMMgr
    
 Set oBOMMgr = oSymBB.BOMMgr
 Call oBOMMgr.SetPartData(oPartRef, partData)

It runs perfectly in AutoCAD Mechanical 2011.

But I get an error ('unspecified error') when I run the same code in AutoCAD Mechanical 2011.

Does anybody know how to overcome this error?

1 REPLY 1
Message 2 of 2

It should read:

But I get an error ('unspecified error') when I run the same code in AutoCAD Mechanical 2010.

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

Post to forums  

Autodesk Design & Make Report

”Boost