vb.net problems modeldoc2 com+ object & modeldoc2class object

Discussion in 'SolidWorks' started by Niek Maarse, Jun 25, 2003.

  1. Niek Maarse

    Niek Maarse Guest

    hello,

    i have a problem referencing to an modeldoc2.
    i've been programming the sw api for a while now and my whole system
    worked perfectly but now i got a problem that the instance of an
    object is not set.

    normally i connect to solidworks via getobject and then i connect to
    the model loaded:
    dim mymodel as sldworks.modeldoc2=swreference.activedoc

    this normally results in a mymodel modeldoc2 com+ object, but now the
    strange thing happend that i only get a modeldoc2class object, this
    class object is not compatible with the com+ object.

    any one had the same problem? how did u solve it?

    regards,

    Niek Maarse
    Please email me .
     
    Niek Maarse, Jun 25, 2003
    #1
  2. Niek;

    It is not that no-one read your message with the intention of helping,
    just that no-one knew the answer. Thankyou for posting it for all to
    see/remember when they have the same problem.

    Cheers.
     
    Tracey Parker, Jun 30, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.