
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. I lost an old lisp database that a friend once gave me and I'm trying to reconstruct it.
The routine was something like this (I don't know how to write it properly, though):
(defun c:CII ()
(Prompt "Copy from intersection to intersection point");inform user
(princ "\nSelect objects to copy")
(setq copy_objects (ssget));;; (first question, if I press enter after not selecting anything, I want to select the previos selected set)
(command "copy" copy_objects "" "m" "int" pause (getvar "osmode") (setvar "osmode" 32);(here I don't want the command to execute if I don't hit the exact intersection point and prompt the error if it happens); (setvar "osmode"); this will set the osmode to its status before the command (after the routine it's actually ended).
I'm very confused to make this work, I have only made it by pieces and, when I do something right, it is only to mess up another part.
I hope somebody can help me.
Thank you so much
Solved! Go to Solution.