;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
- Mình có cái lisp offset này nhưng mỗi lần chạy lisp lại phải nhập khoảng cách để offset. Mình nhờ các bạn chỉnh giúp mình lisp này có thể lưu lại thông số đã nhập cho lần thực hiện sau (nếu mình không nhập khoảng cách mới thì nó sẽ lấy số được nhập lần trước)
Cảm ơn các bạn nhiều!
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;****************************************************************************
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)
;****************************************************************************
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
;/Day la lenh OFFSET dac biet, sau khi OFFSET xong tu dong doi sang lop hien hanh.
;***********
(defun C:OO (/ lay lt os kc msg1 p1 msg2)
(setq os (getvar "Osmode")
lt (getvar "celtype")
lay (getvar "Clayer")
msg1 "\nVao khoang cach offset: "
kc (getreal msg1)
msg2 (strcat "Chon vat the muon offset:*" (rtos kc) "*")
);het setq
(setvar "OSMODE" 512)
(setq p1 (getpoint msg2))
(while p1
(command "offset" kc p1 pause "" "chprop" "l" "" "la" lay "lt" lt "")
(setq p1 (getpoint msg2))
);het while
(setvar "OSMODE" os)
)