Jump to content

Recommended Posts

Posted

Hi All

 

What i'm looking to do is the following with a lisp routine.

 

pick 1st pick 2nd place answer

(10) 5'-0" = 50'

 

Thanks,

Brian

Posted

Lee,

 

I was thinking of something a little more simple like this lisp that Jeff Sanders wrote.

 

(defun C:MP()
 (setvar "cmdecho" 0)
 (while(setq pickF(entsel "\nFirst Item: "))
   (setq pickS(entsel "\nSecond Item: "))
   (if(and pickF pickS)
     (progn
       (setq valF(distof(cdr(assoc 1 (entget (car pickF))))))
       (setq valS(distof(cdr(assoc 1 (entget (car pickS))))))
       (setq valN(rtos(* valF valS)))
       (setq txHt(cdr(assoc 40 (entget (car pickF)))))
       (setq rtAn(cdr(assoc 50 (entget (car pickS)))))
       (command "text" (getpoint "\nInsertion Pt:") txHt (angtos rtAn) valN)
     )
   )
 )
 (princ)
)

 

Thanks Lee for your help.

Brian

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...