Getting custom object data

Discussion in 'AutoCAD' started by Janne, May 8, 2004.

  1. Janne

    Janne Guest

    I would like to retrieve some data from objects created by a 3rd party ARX
    application. There is no ActiveX interface provided for these objects.

    However, when the application is loaded, I can see the data I need using the
    autocad LIST command. So my questions are:

    1. how can I get the text from autocad command line using ActiveX? I know
    that the last line is in LASTPROMPT variable, but I need also few earlier
    lines (the whole output of LIST).

    2. is there a smarter way of accessing this custom data?

    below is an exaple of what list command shows:

    Select objects:

    Layer : Jp-TEKSTI
    Handle : 10ED8
    Connections : 10ED5
    position, X=73900.0000 Y=21025.0000 Z=2400.0000

    it is the "Connections" data that I want to retrieve.
     
    Janne, May 8, 2004
    #1
  2. Janne

    Janne Guest

    figured out a solution in question #1:

    I can sendcommand copyhist, then I have the command line history in
    clipboard.

    But the question #2 still remains, especially because I think the above
    method is slow when there's a lot of objects.
     
    Janne, May 8, 2004
    #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.