You are on page 1of 2

;capa

(defun c:tres()

(setq clay (GetVar "clayer")) ;Variable almacena Layer Actual

(setvar "cmdecho" 0) ;Variable sistema desbloquea con 0

;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

(setq base (GetReal "punto1:"))

(setq Altura (GetReal "Altura:"))

(setq P1 (Getpoint "punto2:"))

(setq P2 (polar p1 (AHQ:DIR 0) base))

(setq P3 (polar p2 (AHQ:DIR 90) Altura))

;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

(command "_layer" "_new" "base" "")

(command "_layer" "_new" "Altura" "")

(command "_layer" "_new" "Hipotenusa" "")

(command "_layer" "_set" "base" "_Color" 1 "" "_lweight" 1.0 "" "")

(command "_layer" "_set" "Altura" "_Color" 90 "" "_lweight" 0.53 "" "")

(command "_layer" "_set" "Hipotenusa" "_Color" 6 "" "_lweight" 1.20 "" "")

(command "_layer" "_set" "base" "")

(command "_line" p1 p2 "")

(command "_layer" "_set" "Altura" "")


(command "_line" p2 p3 "")

(command "_layer" "_set" "Hipotenusa" "")

(command "_line" p3 p1 "")

;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

(setvar "cmdecho" 1)

(command "layer" "_set" Clay "") ;Carga Variable Layer Actual Almacenada

(print)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defun AHQ:DIR(D)

(* pi (/ D 180.0))

You might also like