|
发表于 2022-7-5 23:20:35
|
显示全部楼层
Updated as OP request, put text outside polygon
added 2 arguments
cw : T / nil ; cw/ccw
box : T / nil ; if T, Label with box
[code];ppdim.lsp , assosiative distance label (customized dimAligned)http://www.cadtutor.net/forum/showthread.php?89363-Automatic-distance-between-polygon-vertices&p=612627#post612627(defun ppdim ( p1 p2 [color="red"]cw box / mp sz mx ); [color="red"]v1.1;hanhphuc 31/10/2014 (setq vs '(nil (/ (getvar 'viewsize) (cadr (getvar 'screensize))))sz (* 0.05 (distance p1 p2)) mp (mapcar '(lambda (a b) (* 0.5 (+ a b))) p1 p2)) (vl-cmdf "_dimaligned" p1 p2 mp) ('((obj) (mapcar '(lambda (a b) (vlax-put obj a b)) '("Arrowhead1Type" "Arrowhead2Type" "extensionlineextend" "extensionlineoffset""TextHeight" "TextInside" "VerticalTextPosition" "TextGap" [color="red"]"DimLine1Suppress" "DimLine2Suppress" ; |
|