Is there a way to simulate the grread fuction in VBA?

Discussion in 'AutoCAD' started by david fox, Jul 7, 2003.

  1. david fox

    david fox Guest

    Hi

    Acad 2002.

    I need to read the screen coordinates as I drag my mouse around in my VBA
    routine for drawing a revision cloud. In lisp this was easy using grread.
    Does anyone know of a bodge for it?

    Thanks in advance.

    Dave
     
    david fox, Jul 7, 2003
    #1
  2. david fox

    wivory Guest

    If you're referring to the Coordinates that AutoCAD displays on it's status bar on the bottom left then one way to get it (if nobody has a better solution) might be through Windows API calls and/or something like the WM_GETTEXT message. The following information from Microsoft Spy++ may be useful for this:
      
    Handle: 00000B2C
    Caption: ""
    Class: Afx:400000:8:14ae:10:0
    Style: 54008200
      
    Regards
      
    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    wivory, Jul 8, 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.