Allan Seidel
Usenet Archive
- Joined
- Feb 11, 2000
- Messages
- 298
- Reaction score
- 0
Hello,
I'm having a problem getting this proceedure that spins an element to function when the ucs is other than world. I am trying to avoid the visual effects caused by temporarily changing the current ucs to world within the proceedure. I'm thinking trans should to the job since I've used it before but for this case trans seems to do nothing. Clearly I'm missing some basic concept. Here is the proceedure. Any help would be appreciated Thanks, Allan Seidel
; rotates element en by rot
;
(defun rotx (en rot / spt)
(setq spt (cdr (assoc '10 (entget (car en)))))
;(command "UCS" "W") work around I want to avoid
; This is where I think I should be using a trans
statement. Neither (trans spt (car en) 0 0) or (trans spt 1 0 0) or any trans variation changes spt (command "_rotate" en "" spt rot) ;(command "UCS" "P") work around I want to avoid (princ)
)
I'm having a problem getting this proceedure that spins an element to function when the ucs is other than world. I am trying to avoid the visual effects caused by temporarily changing the current ucs to world within the proceedure. I'm thinking trans should to the job since I've used it before but for this case trans seems to do nothing. Clearly I'm missing some basic concept. Here is the proceedure. Any help would be appreciated Thanks, Allan Seidel
; rotates element en by rot
;
(defun rotx (en rot / spt)
(setq spt (cdr (assoc '10 (entget (car en)))))
;(command "UCS" "W") work around I want to avoid
; This is where I think I should be using a trans
statement. Neither (trans spt (car en) 0 0) or (trans spt 1 0 0) or any trans variation changes spt (command "_rotate" en "" spt rot) ;(command "UCS" "P") work around I want to avoid (princ)
)