Jump to content

Recommended Posts

Posted

Hello such, I have two questions first can be used simultaneously getpoint and make it work as a getkword me explain:

 

(setq a (getpoint "\nSpecifies a point or choose an option [Create Layer / Move]))

Something like that is what I want to add my lisp and not to leave that option until you locate the point or choose one of the

I am attaching options and the other question is this message that I get every time I finish run some lisp .. Unknown command "E1". Press F1 for help.

If someone explicarria how to remove that message please

 

58-Creador de Revisiones ( rev ).lspFetching info...

Posted

Precede with

(initget "Create Move")

Posted

I get this message

 

** Error: bad argument type: stringp (32.065 420.607 0.0) **

:cry:

Posted
(defun tt (/ res)
 (initget 128 "Create Move _ C M")
 (setq res (getpoint "\nSpecifies a point or choose an option [Create Layer / Move] <Cancel> :"))
 ) ;_ end of defun

Posted

Someone please correct me this program :cry:

 

 

 

(defun c:ttx (/ res)
 (while (null (progn
        (initget "Crear Mover")
        (setq a (getpoint "\nUbica un punto o escoje una opción [ Crear capa / Mover ]")))))
   (setq x (getpoint a "\nIngresa pto: "))
   (command "line" a x)
   (cond ((= a "Crear") (m1))
     ((= a "Mover") (m2)))
      (princ)
      )

(defun m1 ()
 (setq ss (ssget "_:L"))
 (command "move" ss "")
 (princ))

(defun m2 ()
 (setq ss (ssget "_:L"))
 (command "move" ss "")
 (princ))

Posted

First of all: could you translate all questions to english? I don't know Spain and i can't guaratee correct translate

Secondary: what is the ultimate goal of your program?

Posted

To begin with what interests me is to make a lisp that allows me to chop the first point and then the second to draw a line if if would not choose one of the selections that I show for example:

(Initget "Move Copy")

(Setq option (getpoint "\ nPick point or [Move / Copy]:"))

It is the right thing I want to do or impossible

Posted

   (initget "Move Copy")
  (setq option (getpoint "\ nPick point or [Move / Copy] <exit>:"))
  (cond ((= 'list (type option))
         (command "_.line" option)
         (while (> (getvar 'cmdactive) 0)
            (command "\\")
         )
        )
        ((= "Move" option)
         (prompt "\nDo the Move stuff...")
        )
        ((= "Copy" option)
         (prompt "\nDo the Copy stuff...")
        )
        (T
         (prompt "\nYou did press Enter or SPacebar to exit...")
        )
  )

 

Hope this helps,

henrique

Posted

thanks for your help.

this is that I need :D

Posted
  amcdicsac said:
thanks for your help.

this is that I need :D

 

You're welcome, amcdicsac!

Glad I could help

 

Henrique

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...