Addin/Form question.

Addin/Form question.

Anonymous
Not applicable
219 Views
2 Replies
Message 1 of 3

Addin/Form question.

Anonymous
Not applicable
Hi,

I'm trying to create small addin application using VB6.
I have problems when I tries to "access" the Custom Properties from a added
Form in my application.
I got all kind or errors but mostly "Object variable or With block variable
not set" (Error code 91.)

I think I'm doing something wrong when I declare the objects.
I have used: "Private oApp As Inventor.Application"

Someone that has an idea or have a piece of code from a "Form" within a
addin. (ActivX dll)


Lars Andersson
0 Likes
220 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi Lars

That message shows up when I forget to use the SET statement
i.e.

oApp = AddInSiteObject.Application
vs
Set oApp = AddInSiteObject.Application

Have you looked at the Sample Addin in the SDK folder and compared with what
you have?


--
Kent Keller
http://www.MyMcad.com/KWiK/Mcad.htm

Assistant Moderator
Autodesk Discussion Forum Moderator Program

"Lars Andersson" wrote in message
news:840EA3B33A74E4F24DEBB008445FD679@in.WebX.maYIadrTaRb...
> Hi,
>
> I'm trying to create small addin application using VB6.
> I have problems when I tries to "access" the Custom Properties from a
added
> Form in my application.
> I got all kind or errors but mostly "Object variable or With block
variable
> not set" (Error code 91.)
ars Andersson
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Kent, that did it.

Lars

"Kent Keller" skrev i meddelandet
news:61C3B9A5838379256DEFDB33BC24198B@in.WebX.maYIadrTaRb...
> Hi Lars
>
> That message shows up when I forget to use the SET statement
> i.e.
>
> oApp = AddInSiteObject.Application
> vs
> Set oApp = AddInSiteObject.Application
>
> Have you looked at the Sample Addin in the SDK folder and compared with
what
> you have?
>
>
> --
> Kent Keller
> http://www.MyMcad.com/KWiK/Mcad.htm
>
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
> "Lars Andersson" wrote in message
> news:840EA3B33A74E4F24DEBB008445FD679@in.WebX.maYIadrTaRb...
> > Hi,
> >
> > I'm trying to create small addin application using VB6.
> > I have problems when I tries to "access" the Custom Properties from a
> added
> > Form in my application.
> > I got all kind or errors but mostly "Object variable or With block
> variable
> > not set" (Error code 91.)
> ars Andersson
> >
> >
>
>
0 Likes