acadentity doesn't work

Discussion in 'AutoCAD' started by john m, Sep 7, 2004.

  1. john m

    john m Guest

    Hello,

    I have many programs that use acadentity to get something from the
    drawing, then set blockentity=acadentity etc.

    Suddenly they are crashing. It says this is not allowed. if i change the
    entity to object instead of acadentity then the set command gives type
    mismatch.

    thanks for any help with this

    jm
     
    john m, Sep 7, 2004
    #1
  2. john m

    Ed Jobe Guest

    Let's see some code...
     
    Ed Jobe, Sep 7, 2004
    #2
  3. john m

    john m Guest

    okok here's the problem
    only recently has this started to not work

    Public Sub dcx()

    Dim oEnt As AcadEntity
    Dim v1 As Variant
    Dim oblock As AcadBlockReference
    Dim oAtt As AcadAttribute

    ThisDrawing.Utility.GetEntity oEnt, v1
    Set oblock = oEnt 'this is where it says "Object library feature not
    supported"

    End Sub
     
    john m, Sep 7, 2004
    #3
  4. I'm on 2005 and that works okay for me. Make sure a block reference is
    what's being selected.
     
    Frank Oquendo, Sep 7, 2004
    #4
  5. john m

    Ed Jobe Guest

    To do that, use TypeOf in an If statement. See help for an example.
     
    Ed Jobe, Sep 7, 2004
    #5
  6. john m

    john m Guest

    Hello,

    Its not that the program crashes. It never gets a chance because as soon
    as it loads the interpreter throws the error "Object library Feature not
    supported".

    I feel like that my playing around with Dot Net has messed up my other
    programs.

    I can define oEnt as an Object instead of an ACADentity but then i can't
    Set that as a block for example because type mismatch.

    thanks for lookin at it anyway

    jm
     
    john m, Sep 8, 2004
    #6
  7. john m

    Ed Jobe Guest

    You didn't say that before...Do you have any missing references?
    Tools>References, You're using vba I assume?
     
    Ed Jobe, Sep 8, 2004
    #7
  8. john m

    john m Guest

    no missing references but now i notice the programs work fine in 2005
    the error only occurs in 2004

    so i guess i will just uninstall the 2004

    thanks!
     
    john m, Sep 9, 2004
    #8
  9. john m

    Ed Jobe Guest

    You can't rund the *same* dvb in 2004 *and* 2005. The first time you run it
    in 2005, it will compile for 2005 and then no longer work in 2004. Use
    separate dvb's for each app.
     
    Ed Jobe, Sep 9, 2004
    #9
  10. john m

    john m Guest

    aha! this is important...
    i was beta-testing my office programs for 2005 and still using 2004 for
    production

    thanks ed
     
    john m, Sep 9, 2004
    #10
  11. john m

    Ed Jobe Guest

    BTW, you also didn't say that before. :) Give as much info as you can when
    trying to troubleshoot a problem.
     
    Ed Jobe, Sep 9, 2004
    #11
  12. Ed,

    can you elaborate on this ? I remember once I had to modify a DVB made for
    AutoCAD 2000 on AutoCAD 2004, and it worked like a charm when exceuted on
    2000. I must add I did not use features available on 2004 that were not on
    2000.

    Gilles
     
    Gilles Plante, Sep 13, 2004
    #12
  13. john m

    Ed Jobe Guest

    AFAIK this is peculiar only to 2004 and 2005.
     
    Ed Jobe, Sep 13, 2004
    #13
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.