Unfortunately there is not a storage location for these types of values, but
I have written a sample that shows how you could implement such
functionality through AutoLISP. Below is the code that you could just cut
on paste into an AutoLISP file that you would make sure that is loaded at
start up. If you have any questions please let me know.
;; <----- Begin code example here
;;LAST_INS.LSP Copyright 2001 HyperPics all rights reserved
;;
;; Author: Lee Ambrosius
;; HyperPics, http://www.hyperpics.com
;; Convert Radians to Degrees
(defun RTD (rad)
(* (/ rad PI) 180)
)
;; Undefine the insert command
(command ".undefine" "insert")
(princ)
;; Redefine the insert command the way we need it to be
(defun c:insert ()
(command ".insert")
(while (not (zerop (getvar "CMDACTIVE")))
(command PAUSE)
)
(setq last_ins_ent (entlast))
(princ)
)
;; Define a function to return the angle on the last block inserted
(defun last_ins_ent_rot (/ ED)
(setq ED (entget last_ins_ent))
(rtd (cdr (assoc 50 ED)))
)
(princ)
;; ---------> End code example here
Thanks,
Lee Ambrosius
HyperPics, http://www.hyperpics.com
"Kevin Nehls" wrote in message
news:FDCA8C123759180AF0B39EB4E4B87BDC@in.WebX.maYIadrTaRb...
> I'm pretty sure there isn't. I'd just store the value in a
> global var if you need it.
>
> --
> Kevin Nehls
>
> "Gordon Price" wrote in message
> news:44634121CBDF34A5B223ED45AB6D0A68@in.WebX.maYIadrTaRb...
> > Is the last roatation angle stored anywhere accessibls to
> LISP? I want to
> > have the user pick a rotation point on a block insert,
> then do another block
> > insert using the same rotation. I would like the user to
> see the first block
> > as it is being inserted, so they understand how the
> rotation affects the
> > block. Then I just want another block to insert with the
> same rotation.
> >
> > Any help is greatly appreciated.
> >
> > Gordon
> >
> >
>
>