Results 1 to 2 of 2

Thread: Evaluating points versus Enter

  1. #1
    I could stop if I wanted to
    Join Date
    2001-01
    Posts
    265
    Login to Give a bone
    0

    Default Evaluating points versus Enter

    Hi All
    I have created a routine to create the mleaderstyle that I want. Now I am trying to write a portion that will start the mleader command and allow the user to pick two points to specify the angle of the first segment after which I immediately turns on orthodemode. What I am trying to do now is to evaluate whether a point has been selected or if an Enter or a space has been pressed which would terminate the point selection process and pop up the text window. Any help is greatly appreciated. Thank you.
    Manuel

    Code:
    (setq pt1 (getpoint "\nSelect start point: "))
    (setver "osmode" 512)
    (if (and pt1 (/= pt1 "Exit"))
      (progn       
        (command ".mleader" pt1)
        (while (= 1 (getvar "cmdactive"))
          (command pause)
          (setvar "orthomode" 1)
        )
      )
    )

  2. #2
    I could stop if I wanted to
    Join Date
    2006-04
    Posts
    470
    Login to Give a bone
    0

    Default Re: Evaluating points versus Enter

    cmdactive is the frashezzel

Similar Threads

  1. 2014: Roof Planes--New versus Existing versus "modified" (cut)?
    By mleinback in forum Revit Architecture - General
    Replies: 1
    Last Post: 2014-03-24, 05:00 AM
  2. Enter survey points on a curve
    By gjburkett in forum AutoCAD General
    Replies: 11
    Last Post: 2011-02-23, 05:49 PM
  3. Replies: 6
    Last Post: 2007-03-21, 05:15 AM
  4. Exceeded iteration limit when evaluating curve
    By earld in forum AutoCAD 3D (2006 or below)
    Replies: 2
    Last Post: 2004-06-03, 02:30 PM

Posting Permissions

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