Can't add commands with C#

Discussion in 'AutoCAD' started by Frank Oquendo, Sep 8, 2004.

  1. (Originally posted in the ObjectARX group)

    I've downloaded and compiled Jim Awe's MgdDbg sample project. AutoCAD
    2005 (the one from MDT) does not recognize any of the commands in that
    project.

    I tried creating a simple project from scratch following the guidelines
    laid out in the ObjectARX documentation. That didn't work either.

    Any ideas?
     
    Frank Oquendo, Sep 8, 2004
    #1
  2. Well, maybe not any of the non-obvious ones. I had to re-reference the MGDs
    as well as the custom dbx wrapper then recompile. Then it works in vanilla
    2005. HTH

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 8, 2004
    #2
  3. I created a fresh project from scratch.

    I then referenced the managed wrappers.

    I used TLBIMP to create wrappers for the AutoCAD and ObjectDBX COM
    libraries then referenced both of those.

    Finally, I declared assembly attributes as shown in the ObjectARX
    documentation.

    Still no commands.

    It would appear the managed API is not yet ready for prime time.
     
    Frank Oquendo, Sep 8, 2004
    #3
  4. Hmmm....this ISN'T good! I'm getting ready to tackle my first 100% managed
    project. I read your other post as well. Are you saying that none of the
    managed ADN samples work that are run thru the command line?

    Let's compare systems then Frank...I'm running XP SP1 and 1.1 for my
    framework with VS2003. How about you? I have heard rumors of many oddities
    with XP SP2. Can you send me one of your projects? Let me see if I can run
    it in the plain 2005 -- ala non-MDT version?

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 9, 2004
    #4
  5. That's it in a nutshell.
    I've responded via email with a sample project.

    I'm running Windows XP Pro, SP2 and Mechanical Desktop 2005.
     
    Frank Oquendo, Sep 9, 2004
    #5
  6. Just to wrap up this thread for anyone else viewing, I put the jist of it
    under the new post.

    Frank, your app ran fine after redoing the MGD refs. I'd tend to lead
    towards Jim's suggestion [other post] or XP Pro SP2 as the culprit.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 9, 2004
    #6
  7. Just out of curiosity, are you using VS 2002 or 2003?
     
    Tony Tanzillo, Sep 9, 2004
    #7
  8. Me, Tony? VS2003 Pro v7.1.3088, Framework 1.1 v1.1.4322, and XP Pro SP1

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 9, 2004
    #8
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.