Announcements
IMPORTANT. Forum to be archived in several phases. You can no longer submit new questions - but can only answer existing threads until Oct 17th 2016. Please read this message for details
Mechanical Desktop (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
Anonymous
142 Views, 1 Reply

MDT 4 and VBA

I am a first time urser of VBA for Mechanical Desktop. Could someone please
let me know what needs to be done to get the following VBA statements to
word.

Dim mapp As McadApplication
Set mapp =
ThisDrawing.Application.GetInterfaceObject("Mcad.Application")

When I try to run a macro containing these lines I get the following error:

"Run-time error
Problem in loading application"

My goal is to be able to use a macro to change and update assembly
constraints. Any help would be greatly appreciated.


Thanks,
Duane Hopkins
duane@tnm.nfld.net
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

I don't remember if MDT 4 had these or not, but see if you can find Mcadautoreg.exe, and
symbbautoreg.exe. If you find them, close MDT and run each one. Then open mdt, and open
your VBA project. If it still has problems, try going into tool, References and
unchecking McadAuto and any others related to MDT.... Ok out and then go back in and re-
reference them.

I don't see anything wrong with what you have posted.

--
Kent
Member of the Autodesk Discussion Forum Moderator Program


"Duane" wrote in message
news:7EFDBCCB18B705DEC45F529FDAD1B3B0@in.WebX.maYIadrTaRb...
> I am a first time urser of VBA for Mechanical Desktop. Could someone please
> let me know what needs to be done to get the following VBA statements to
> word.
>
> Dim mapp As McadApplication
> Set mapp =
> ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
>
> When I try to run a macro containing these lines I get the following error:
>
> "Run-time error
> Problem in loading application"
>
> My goal is to be able to use a macro to change and update assembly
> constraints. Any help would be greatly appreciated.
>
>
> Thanks,
> Duane Hopkins
> duane@tnm.nfld.net
>
>

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

Post to forums  

Autodesk Design & Make Report