ZIZU
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.


Diễn đàn giao thông
 
Trang ChínhTrang Chính  Tìm kiếmTìm kiếm  Latest imagesLatest images  Đăng kýĐăng ký  Đăng NhậpĐăng Nhập  
Đăng Nhập
Tên truy cập:
Mật khẩu:
Đăng nhập tự động mỗi khi truy cập: 
:: Quên mật khẩu
Top posters
Admin
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
xhung0602
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
sonmk2008
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
philipdn
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
TRANHOC2008
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
vinhtg
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
CIC.com
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
vu hien
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
moclantim
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
cd2k44
Ghi kích thước dạng cung tròn!!! Vote_lcapGhi kích thước dạng cung tròn!!! Voting_barGhi kích thước dạng cung tròn!!! Vote_rcap 
Latest topics
» C rack phần mềm TDT9.1
Ghi kích thước dạng cung tròn!!! Icon_minitimeSun Nov 26, 2023 4:33 pm by rong chau a

» Phần mềm cubiconst
Ghi kích thước dạng cung tròn!!! Icon_minitimeMon Nov 13, 2023 6:00 pm by Hunghoi1

»  Chuyển đổi giữa các phiên bản autocad
Ghi kích thước dạng cung tròn!!! Icon_minitimeWed Nov 01, 2023 2:16 pm by hoangphihong

» Phần mềm tdt9.1
Ghi kích thước dạng cung tròn!!! Icon_minitimeTue Aug 08, 2023 10:45 am by hoangphihong

» Chia sẻ Bộ Lisp rất hay: ”Kho báu của Minh”
Ghi kích thước dạng cung tròn!!! Icon_minitimeTue Jan 10, 2023 2:28 pm by hoangphihong

» Hướng dẫn vẽ bình đồ bằng phần mềm Sufer
Ghi kích thước dạng cung tròn!!! Icon_minitimeFri Jan 06, 2023 11:29 am by hoangphihong

»  SAN NỀN: PHẦN MỀM MIỄN PHÍ NXSOFT
Ghi kích thước dạng cung tròn!!! Icon_minitimeFri Jan 06, 2023 11:26 am by hoangphihong

» Bản tính kết cấu cống hộp theo 22TCN - 272 - 05
Ghi kích thước dạng cung tròn!!! Icon_minitimeTue Jan 03, 2023 11:09 pm by huynhcd29gtcc

» Lỗi AutoCAD Error Aborting Ads Civil
Ghi kích thước dạng cung tròn!!! Icon_minitimeTue Jan 03, 2023 1:50 pm by hoangphihong

» TẶNG KEY DPSURVEY 2.9
Ghi kích thước dạng cung tròn!!! Icon_minitimeMon Sep 07, 2020 10:58 am by longboy

Statistics
Diễn Đàn hiện có 10096 thành viên
Chúng ta cùng chào mừng thành viên mới đăng ký: Phuongkq

Tổng số bài viết đã gửi vào diễn đàn là 18519 in 3437 subjects
Keywords
topo 2018 alpha 2010 2016 drad delta 2011 hitosoft toan crack ngang nova group HHMAPS thiết mapsite 2013 phan civil Sumac FAST RDCAD dcad 2017 bravo
Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of ZIZU on your social bookmarking website
LIÊN KẾT




TỔNG LƯỢT TRUY CẬP

 

 Ghi kích thước dạng cung tròn!!!

Go down 
5 posters
Tác giảThông điệp
Updatelisp
Thành viên chính thức
Thành viên chính thức



Nam Tổng số bài gửi : 21
Age : 38
Đến từ: : HCM
Nghề nghiệp: : Sinh Vien
Sở thích : Pinic
Ngày đăng ký : 29/04/2008

Ghi kích thước dạng cung tròn!!! Empty
Bài gửiTiêu đề: Ghi kích thước dạng cung tròn!!!   Ghi kích thước dạng cung tròn!!! Icon_minitimeMon May 05, 2008 8:50 pm

Lisp ghi kích thước dạng cung tròn.Đây là lisp dành cho Cad2004, còn nhứng phiên bản sau thì có hỗ trợ rồi
--------------------Lad.lsp-----------------------------
(setq cls_dwg(vlr-dwg-reactor nil '((:VLR-beginClose . destroyobj))))

(defun destroyobj(rctr param)
(if(type acadobj)(vlax-release-object acadobj))
(if(type doc)(vlax-release-object doc))
(if(type util)(vlax-release-object util))
(if(type s_sets)(vlax-release-object s_sets))
(setq arc_dim_lst(if(type arc_dim_lst)nil))
(setq initialized(if(type initialized)nil))
(mapcar
'(lambda(rctr_lst)
(foreach rctr-itm rctr_lst
(if(vlr-added-p rctr-itm)
(vlr-remove rctr-itm)
);if
);for
);lambda
(mapcar 'cdr (vlr-reactors))
);mapcar
(vlr-remove-all)
);defun

;*****************************************************************************

(defun *error*(s)
(if(= s "Function cancelled")
(prompt "\Function cancelled by user\n")
(princ)
)
)

;*****************************************************************************

(defun c:lad(/ sel_obj arc_pnt)
(vla-getentity util 'sel_obj 'arc_pnt "Pick the arc to Dimension: ")
(if(=(vla-get-objectname sel_obj)"AcDbArc")
(core sel_obj)
(progn
(alert"You must select an arc!")
(c:lad)
);progn
);if
(princ)
)

;*****************************************************************************

(defun dim_crtr(arc_core / strtpnt endpnt cenvert arclen
arclenstr owner radius
strtpntlst endpntlst cenvertlst
midpnt_x midpnt_y tan_midpnt
textpnt new_dim
)

(setq strtpnt(vla-get-startpoint arc_core))
(setq endpnt(vla-get-endpoint arc_core))
(setq cenvert(vla-get-center arc_core))
(setq arclen(vla-get-arclength arc_core))
(setq arclenstr(rtos arclen(getvar"DIMLUNIT")(getvar"DIMDEC")))
(setq radius(vla-get-radius arc_core))
(setq strtpntlst(vlax-safearray->list(vlax-variant-value strtpnt)))
(setq endpntlst(vlax-safearray->list(vlax-variant-value endpnt)))
(setq cenvertlst(vlax-safearray->list(vlax-variant-value cenvert)))
(setq midpnt_x(/(+(car strtpntlst)(car endpntlst))2))
(setq midpnt_y(/(+(cadr strtpntlst)(cadr endpntlst))2))
(setq midpnt_x_quart(- midpnt_x (car cenvertlst)))
(setq midpnt_y_quart(- midpnt_y (cadr cenvertlst)))
(setq strtangl(vla-get-startangle arc_core))
(setq totangl(vla-get-totalangle arc_core))
(setq textpnt
(vlax-3d-point
(polar cenvertlst (+ strtangl(/ totangl 2))(+(/ radius 10)radius))
)
)
(setq owner(vla-get-ownerid arc_core))
(if(= owner(vla-get-objectid(vla-get-modelspace doc)))
(progn
(setq new_dim(vla-addDim3PointAngular(vla-get-modelspace doc)
cenvert strtpnt endpnt textpnt
)
);setq
);progn
(progn
(setq new_dim(vla-addDim3PointAngular(vla-get-paperspace doc)
cenvert strtpnt endpnt textpnt
)
);setq
);progn
);if
(vla-put-textoverride new_dim arclenstr)
new_dim
);defun

;*****************************************************************************

(defun core(arc_lad / rctr_owns new_dim del_dim_assoc del_dim)
(setq rctr_owns(vlr-owners arc_rctr))
(setq new_dim(dim_crtr arc_lad))
(if(member arc_lad rctr_owns)
(progn
(setq del_dim_assoc(assoc arc_lad arc_dim_lst))
(setq del_dim(cdr del_dim_assoc))
(setq arc_dim_lst(subst(cons arc_lad new_dim) del_dim_assoc arc_dim_lst))
(vl-catch-all-apply 'vla-erase(list del_dim))
);progn
(progn
(vlr-owner-add arc_rctr arc_lad)
(setq arc_dim_lst(cons(cons arc_lad new_dim)arc_dim_lst))
);progn
);if
);defun

;*****************************************************************************

(defun arc_mod(arc_ntfr mod_rctr plist)
(if(not(vlax-erased-p arc_ntfr))
(core arc_ntfr)
)
);defun

;*****************************************************************************

(defun initialize (/ s_sets fltr_cod_arc fltr_val_arc arc_col
fltr_cod_dim fltr_val_dim dim_col dim_itm dim_strt_pnt dim_strt_lst
dim_end_pnt dim_end_lst dim_vrt dim_vrt_lst arc_itm arc_strt_pnt
arc_strt_lst arc_end_pnt arc_end_lst arc_cen arc_cen_lst
)
(if(not initialized)
(progn
(obj_set)
(setq s_sets(vla-get-selectionsets doc))
(setq arc_col(vla-add s_sets "arcs"))
(setq dim_col(vla-add s_sets "dims"))
(setq fltr_cod_arc(vlax-make-safearray vlax-vbinteger '(0 . 0)))
(setq fltr_val_arc(vlax-make-safearray vlax-vbvariant '(0 . 0)))
(vlax-safearray-fill fltr_cod_arc '(0))
(vlax-safearray-fill fltr_val_arc '("ARC"))
(vla-select arc_col acSelectionSetAll nil nil fltr_cod_arc fltr_val_arc)
(setq fltr_cod_dim(vlax-make-safearray vlax-vbinteger '(0 . 1)))
(setq fltr_val_dim(vlax-make-safearray vlax-vbvariant '(0 . 1)))
(vlax-safearray-fill fltr_cod_dim '(0 70))
(vlax-safearray-fill fltr_val_dim '("DIMENSION" 37))
(vla-select dim_col acSelectionSetAll nil nil fltr_cod_dim fltr_val_dim)
(vlax-map-collection dim_col
'(lambda(dim_itm)
(setq dim_strt_pnt(vla-get-ExtLine1EndPoint dim_itm))
(setq dim_strt_lst(vlax-safearray->list(vlax-variant-value dim_strt_pnt)))
(setq dim_end_pnt(vla-get-ExtLine2EndPoint dim_itm))
(setq dim_end_lst(vlax-safearray->list(vlax-variant-value dim_end_pnt)))
(setq dim_vrt(vla-get-anglevertex dim_itm))
(setq dim_vrt_lst(vlax-safearray->list(vlax-variant-value dim_vrt)))
(vlax-for arc_itm arc_col
(setq arc_strt_pnt(vla-get-startpoint arc_itm))
(setq arc_strt_lst(vlax-safearray->list(vlax-variant-value arc_strt_pnt)))
(setq arc_end_pnt(vla-get-endpoint arc_itm))
(setq arc_end_lst(vlax-safearray->list(vlax-variant-value arc_end_pnt)))
(setq arc_cen(vla-get-center arc_itm))
(setq arc_cen_lst(vlax-safearray->list(vlax-variant-value arc_cen)))
(if
(and
(=(car arc_strt_lst)(car dim_strt_lst))
(=(cadr arc_strt_lst)(cadr dim_strt_lst))
(=(car arc_end_lst)(car dim_end_lst))
(=(cadr arc_end_lst)(cadr dim_end_lst))
(=(car arc_cen_lst)(car dim_vrt_lst))
(=(cadr arc_cen_lst)(cadr dim_vrt_lst))
);and
(setq arc_dim_lst(cons(cons arc_itm dim_itm)arc_dim_lst))
);if
);for
);lambda
);map
(setq arc_rctr
(vlr-object-reactor(mapcar 'car arc_dim_lst)
"ArcRctMod" '((:vlr-modified . arc_mod))
);rctr
);setq
(setq initialized T)
(prompt"\nType LAD on prompt...\n")
(princ)
);progn
);if
);defun

;*****************************************************************************

(defun obj_set()
(setq acadobj(vlax-get-acad-object))
(setq doc(vla-get-activedocument acadobj))
(setq util(vla-get-utility doc))
)

;*****************************************************************************

(initialize)
-------------------------------------Kết thúc ---------------------------
Update by Updatelisp!


flower
Về Đầu Trang Go down
Admin
Admin
Admin
Admin


Nam Tổng số bài gửi : 475
Age : 46
Đến từ: : Việt Nam
Nghề nghiệp: : Kỹ sư
Ngày đăng ký : 02/03/2008

Ghi kích thước dạng cung tròn!!! Empty
Bài gửiTiêu đề: Re: Ghi kích thước dạng cung tròn!!!   Ghi kích thước dạng cung tròn!!! Icon_minitimeTue May 06, 2008 12:48 am

Bạn xem lại code lisp nhé!. Mình load báo lổi

Trích dẫn :
Command: ap
APPLOAD Lad.lsp successfully loaded.
Command: ; error: no function definition: VLR-DWG-REACTOR
Về Đầu Trang Go down
https://zizu.forumvi.com
Updatelisp
Thành viên chính thức
Thành viên chính thức



Nam Tổng số bài gửi : 21
Age : 38
Đến từ: : HCM
Nghề nghiệp: : Sinh Vien
Sở thích : Pinic
Ngày đăng ký : 29/04/2008

Ghi kích thước dạng cung tròn!!! Empty
Bài gửiTiêu đề: Re: Ghi kích thước dạng cung tròn!!!   Ghi kích thước dạng cung tròn!!! Icon_minitimeTue May 06, 2008 2:11 am

Bạn thử lại nhé , mình xài bình thường mà :
-----------------------------Lad.lsp------------------------------------------
;;;CADALYST 02/07 Tip 2182: LAD.LSP Linear Arc Dimension (c) 2007 Michael Kolomiyets


(vl-load-com)

;*****************************************************************************

(setq cls_dwg(vlr-dwg-reactor nil '((:VLR-beginClose . destroyobj))))

(defun destroyobj(rctr param)
(if(type acadobj)(vlax-release-object acadobj))
(if(type doc)(vlax-release-object doc))
(if(type util)(vlax-release-object util))
(if(type s_sets)(vlax-release-object s_sets))
(setq arc_dim_lst(if(type arc_dim_lst)nil))
(setq initialized(if(type initialized)nil))
(mapcar
'(lambda(rctr_lst)
(foreach rctr-itm rctr_lst
(if(vlr-added-p rctr-itm)
(vlr-remove rctr-itm)
);if
);for
);lambda
(mapcar 'cdr (vlr-reactors))
);mapcar
(vlr-remove-all)
);defun

;*****************************************************************************

(defun *error*(s)
(if(= s "Function cancelled")
(prompt "\Function cancelled by user\n")
(princ)
)
)

;*****************************************************************************

(defun c:lad(/ sel_obj arc_pnt)
(vla-getentity util 'sel_obj 'arc_pnt "Pick the arc to Dimension: ")
(if(=(vla-get-objectname sel_obj)"AcDbArc")
(core sel_obj)
(progn
(alert"You must select an arc!")
(c:lad)
);progn
);if
(princ)
)

;*****************************************************************************

(defun dim_crtr(arc_core / strtpnt endpnt cenvert arclen
arclenstr owner radius
strtpntlst endpntlst cenvertlst
midpnt_x midpnt_y tan_midpnt
textpnt new_dim
)

(setq strtpnt(vla-get-startpoint arc_core))
(setq endpnt(vla-get-endpoint arc_core))
(setq cenvert(vla-get-center arc_core))
(setq arclen(vla-get-arclength arc_core))
(setq arclenstr(rtos arclen(getvar"DIMLUNIT")(getvar"DIMDEC")))
(setq radius(vla-get-radius arc_core))
(setq strtpntlst(vlax-safearray->list(vlax-variant-value strtpnt)))
(setq endpntlst(vlax-safearray->list(vlax-variant-value endpnt)))
(setq cenvertlst(vlax-safearray->list(vlax-variant-value cenvert)))
(setq midpnt_x(/(+(car strtpntlst)(car endpntlst))2))
(setq midpnt_y(/(+(cadr strtpntlst)(cadr endpntlst))2))
(setq midpnt_x_quart(- midpnt_x (car cenvertlst)))
(setq midpnt_y_quart(- midpnt_y (cadr cenvertlst)))
(setq strtangl(vla-get-startangle arc_core))
(setq totangl(vla-get-totalangle arc_core))
(setq textpnt
(vlax-3d-point
(polar cenvertlst (+ strtangl(/ totangl 2))(+(/ radius 10)radius))
)
)
(setq owner(vla-get-ownerid arc_core))
(if(= owner(vla-get-objectid(vla-get-modelspace doc)))
(progn
(setq new_dim(vla-addDim3PointAngular(vla-get-modelspace doc)
cenvert strtpnt endpnt textpnt
)
);setq
);progn
(progn
(setq new_dim(vla-addDim3PointAngular(vla-get-paperspace doc)
cenvert strtpnt endpnt textpnt
)
);setq
);progn
);if
(vla-put-textoverride new_dim arclenstr)
new_dim
);defun

;*****************************************************************************

(defun core(arc_lad / rctr_owns new_dim del_dim_assoc del_dim)
(setq rctr_owns(vlr-owners arc_rctr))
(setq new_dim(dim_crtr arc_lad))
(if(member arc_lad rctr_owns)
(progn
(setq del_dim_assoc(assoc arc_lad arc_dim_lst))
(setq del_dim(cdr del_dim_assoc))
(setq arc_dim_lst(subst(cons arc_lad new_dim) del_dim_assoc arc_dim_lst))
(vl-catch-all-apply 'vla-erase(list del_dim))
);progn
(progn
(vlr-owner-add arc_rctr arc_lad)
(setq arc_dim_lst(cons(cons arc_lad new_dim)arc_dim_lst))
);progn
);if
);defun

;*****************************************************************************

(defun arc_mod(arc_ntfr mod_rctr plist)
(if(not(vlax-erased-p arc_ntfr))
(core arc_ntfr)
)
);defun

;*****************************************************************************

(defun initialize (/ s_sets fltr_cod_arc fltr_val_arc arc_col
fltr_cod_dim fltr_val_dim dim_col dim_itm dim_strt_pnt dim_strt_lst
dim_end_pnt dim_end_lst dim_vrt dim_vrt_lst arc_itm arc_strt_pnt
arc_strt_lst arc_end_pnt arc_end_lst arc_cen arc_cen_lst
)
(if(not initialized)
(progn
(obj_set)
(setq s_sets(vla-get-selectionsets doc))
(setq arc_col(vla-add s_sets "arcs"))
(setq dim_col(vla-add s_sets "dims"))
(setq fltr_cod_arc(vlax-make-safearray vlax-vbinteger '(0 . 0)))
(setq fltr_val_arc(vlax-make-safearray vlax-vbvariant '(0 . 0)))
(vlax-safearray-fill fltr_cod_arc '(0))
(vlax-safearray-fill fltr_val_arc '("ARC"))
(vla-select arc_col acSelectionSetAll nil nil fltr_cod_arc fltr_val_arc)
(setq fltr_cod_dim(vlax-make-safearray vlax-vbinteger '(0 . 1)))
(setq fltr_val_dim(vlax-make-safearray vlax-vbvariant '(0 . 1)))
(vlax-safearray-fill fltr_cod_dim '(0 70))
(vlax-safearray-fill fltr_val_dim '("DIMENSION" 37))
(vla-select dim_col acSelectionSetAll nil nil fltr_cod_dim fltr_val_dim)
(vlax-map-collection dim_col
'(lambda(dim_itm)
(setq dim_strt_pnt(vla-get-ExtLine1EndPoint dim_itm))
(setq dim_strt_lst(vlax-safearray->list(vlax-variant-value dim_strt_pnt)))
(setq dim_end_pnt(vla-get-ExtLine2EndPoint dim_itm))
(setq dim_end_lst(vlax-safearray->list(vlax-variant-value dim_end_pnt)))
(setq dim_vrt(vla-get-anglevertex dim_itm))
(setq dim_vrt_lst(vlax-safearray->list(vlax-variant-value dim_vrt)))
(vlax-for arc_itm arc_col
(setq arc_strt_pnt(vla-get-startpoint arc_itm))
(setq arc_strt_lst(vlax-safearray->list(vlax-variant-value arc_strt_pnt)))
(setq arc_end_pnt(vla-get-endpoint arc_itm))
(setq arc_end_lst(vlax-safearray->list(vlax-variant-value arc_end_pnt)))
(setq arc_cen(vla-get-center arc_itm))
(setq arc_cen_lst(vlax-safearray->list(vlax-variant-value arc_cen)))
(if
(and
(=(car arc_strt_lst)(car dim_strt_lst))
(=(cadr arc_strt_lst)(cadr dim_strt_lst))
(=(car arc_end_lst)(car dim_end_lst))
(=(cadr arc_end_lst)(cadr dim_end_lst))
(=(car arc_cen_lst)(car dim_vrt_lst))
(=(cadr arc_cen_lst)(cadr dim_vrt_lst))
);and
(setq arc_dim_lst(cons(cons arc_itm dim_itm)arc_dim_lst))
);if
);for
);lambda
);map
(setq arc_rctr
(vlr-object-reactor(mapcar 'car arc_dim_lst)
"ArcRctMod" '((:vlr-modified . arc_mod))
);rctr
);setq
(setq initialized T)
(prompt"\nType LAD on prompt...\n")
(princ)
);progn
);if
);defun

;*****************************************************************************

(defun obj_set()
(setq acadobj(vlax-get-acad-object))
(setq doc(vla-get-activedocument acadobj))
(setq util(vla-get-utility doc))
)

;*****************************************************************************

(initialize)

;*****************************************************************************


----------------------------Kết thúc-------------------------------------------
Về Đầu Trang Go down
zippo.113
Thành viên chính thức
Thành viên chính thức
zippo.113


Nam Tổng số bài gửi : 7
Đến từ: : Hà Nội
Nghề nghiệp: : Kỹ Sư
Sở thích : Thư Pháp
Ngày đăng ký : 20/04/2009

Ghi kích thước dạng cung tròn!!! Empty
Bài gửiTiêu đề: Re: Ghi kích thước dạng cung tròn!!!   Ghi kích thước dạng cung tròn!!! Icon_minitimeMon Jun 15, 2009 9:28 am

Lisp OK, ko sao cả vẫn dùng tốt mà, Thank you so much !
Về Đầu Trang Go down
tr hoan
Thành viên chính thức
Thành viên chính thức



Tổng số bài gửi : 3
Ngày đăng ký : 14/02/2010

Ghi kích thước dạng cung tròn!!! Empty
Bài gửiTiêu đề: Re: Ghi kích thước dạng cung tròn!!!   Ghi kích thước dạng cung tròn!!! Icon_minitimeSun Apr 25, 2010 5:51 pm

tổng hợp lisp thật là tuyệt
cám ơn trước đã
Về Đầu Trang Go down
badien
Thành viên chính thức
Thành viên chính thức



Tổng số bài gửi : 2
Ngày đăng ký : 05/04/2011

Ghi kích thước dạng cung tròn!!! Empty
Bài gửiTiêu đề: Re: Ghi kích thước dạng cung tròn!!!   Ghi kích thước dạng cung tròn!!! Icon_minitimeTue Apr 05, 2011 12:34 pm

Sao lại phải ghi kích thước cong với lisp dài quá vậy nhỉ, tôi có viết đoạn lisp có vài dòng cũng ghi được mà!

Cả nhà tham khảo nhé! Smile

[code]
;------------------------------------------------------------------
(prompt "\n ktc : Ghi kich thuoc doan cong")
(defun c:ktc ()
(setq ss (entsel "\nchon cung tron: "))
(defun getArc(en)
(command "lengthen" en "")
(getvar "perimeter")
)
(setq len (getArc ss))
(setq len1 (rtos len 2 2))
(command "_.dim")
(command "ang" ss pause len1 "")
(command "e")
)
(princ "\n\n By LucaDien - trancuongbadien@yahoo.com")
(princ)
;-----------------------------------------------------------------

[code]
Về Đầu Trang Go down
Sponsored content





Ghi kích thước dạng cung tròn!!! Empty
Bài gửiTiêu đề: Re: Ghi kích thước dạng cung tròn!!!   Ghi kích thước dạng cung tròn!!! Icon_minitime

Về Đầu Trang Go down
 
Ghi kích thước dạng cung tròn!!!
Về Đầu Trang 
Trang 1 trong tổng số 1 trang
 Similar topics
-
» Cung cấp các sản phẩm phụ gia-hóa chất xây dựng
» Công ty chuyên cung cấp các sản phẩm phụ gia-hóa chất xây dựng
» Công ty chuyên cung cấp các loại sản phẩm phu gia-hóa chất xây dựng
» Nhà cung cấp vải địa, kỹ thuật, rọ đá, giấy dầu, bấc thấm, màng chông thấm, thi công cắm bấc thấm giá rẻ...
» Nhà cung cấp vải địa, kỹ thuật, rọ đá, giấy dầu, bấc thấm, màng chông thấm, thi công cắm bấc thấm giá rẻ...

Permissions in this forum:Bạn không có quyền trả lời bài viết
ZIZU :: CLB AUTO CAD :: Auto lisp & Visua Lisp-
Chuyển đến