Consulting

Results 1 to 6 of 6

Thread: Activate AutoCAD not saved drawing

  1. #1
    VBAX Regular
    Joined
    May 2008
    Posts
    17
    Location

    Activate AutoCAD not saved drawing

    Can any one tell me how to pass value to command prompt of AutoCAD drawing from vb6. The drawing which I want to pass value is not saved

  2. #2
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    There needs to be more information provided:
    Can any one tell me how to pass value to command prompt of AutoCAD drawing from vb6
    Yes I can but I need to know what value, and in what context. Otherwise I am wasting time and guessing.

    The drawing which I want to pass value is not saved
    I am not sure this matters but since i have no idea what you are trying to do ............................

  3. #3
    VBAX Regular
    Joined
    May 2008
    Posts
    17
    Location
    I have to send command to AutoCAD command prompt. I have code for sending command to already saved drawing. It is working fine. But how to pass command to a not saved drawing(i.e the drawing is not saved even once). I have opened a new drawing and kept it in a minimized stage. Now on click of a button from vb6 I want to pass command to that drawing which is not saved even once and kept as minimized.

    for example
    doc.sendcommand="command"


    I hope you understood what I need.

  4. #4
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    for example doc.SendCommand "line 1.0,1.0,0.0 10.0,10.0,0.0 "

  5. #5
    VBAX Regular
    Joined
    May 2008
    Posts
    17
    Location
    Can you give some code how to call not saved drawing from vb

  6. #6
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    saranya,

    I do not understand what you are asking for. The drawing will accept commands no matter if it is saved or not. If you would post some of your code that you are trying then, I may be able to guide you in the correct direction or even figure out what to do, to get it to do what you want. But in order to do this I have to understand what you want or desire.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •