"Mcad" type not defined

"Mcad" type not defined

Anonymous
Not applicable
249 Views
2 Replies
Message 1 of 3

"Mcad" type not defined

Anonymous
Not applicable
I'm trying to get started working in VB. with MDT.
I cut and pasted some code from an example, but it
doesn't run. I get an error on the line:

Dim mapp As McadApplication

The error is given as

"Compile Error: User Defined type not defined"

What am I missing? And where can I find
some good documentation to learn about this?

-Alan Dixon
0 Likes
250 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Alan,
You need to reference the AutoDesk MCADAuto library under references.

--
Andy Cottrell
Applications Engineer
ExcelTech Computer Services
E-Mail: acottrell@exceltech.net

Alan B. C. Dixon wrote in message
news:381F30A0.D0548E13@psnet.com...
> I'm trying to get started working in VB. with MDT.
> I cut and pasted some code from an example, but it
> doesn't run. I get an error on the line:
>
> Dim mapp As McadApplication
>
> The error is given as
>
> "Compile Error: User Defined type not defined"
>
> What am I missing? And where can I find
> some good documentation to learn about this?
>
>
> -Alan Dixon
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Andy,

Thank you very much... That solved my problem!

I have another question for you: I'm really trying to
run a script file that will delete a feature by its name.
For instance, I want to delete Hole7. I'm assuming I
can do this with VBA, but I don't know how. Any
ideas about this?

Andy Cottrell wrote:

> Alan,
> You need to reference the AutoDesk MCADAuto library under references.
>
> --
> Andy Cottrell
> Applications Engineer
> ExcelTech Computer Services
> E-Mail: acottrell@exceltech.net
>
> Alan B. C. Dixon wrote in message
> news:381F30A0.D0548E13@psnet.com...
> > I'm trying to get started working in VB. with MDT.
> > I cut and pasted some code from an example, but it
> > doesn't run. I get an error on the line:
> >
> > Dim mapp As McadApplication
> >
> > The error is given as
> >
> > "Compile Error: User Defined type not defined"
> >
> > What am I missing? And where can I find
> > some good documentation to learn about this?
> >
> >
> > -Alan Dixon
> >
0 Likes