vuxvix Posted December 18, 2020 Posted December 18, 2020 Hi! This is my first time posting. Although I found a lot of solutions to my other problem. However, this time I have not found a suitable solution to this my problem. I have 2 problems: Extend line and Dimension text. 1.Extend line: [IMG1] -I use the attached Lisp to "trim" ext Lines. (select the parallel and linear dimensions. And specify the position of the line pins) No2-IMG1. -The Cons of this lisp. when specifying the line foot at the dimension line. then re-command will cause the dimesion jump. No3-IMG1. >>> I want to select all dimensions (Rotated and Align dim ..) and change the length of the Ext lines to 0 or very small. So that it does not overlap with other lines. Then possible for change extline again . No4-IMG1. >>> It is possible to change the Ext line length after setting length = 0. And it is possible to change the extline for all or one by one. 2. Dimension Text: [IMG2] - For small distances. Dimension will overlap with other lines. I made a manual move to drag it to the sides (Left, Right). No2-IMG2. -When mirroring these dimensions. It will be below the dim line. I have to move it manually or use the command "Ai_Above_DimLine" one by one and cannot be used for multiple dimensions at the same time. No3-IMG2. >>> Is there any solution to choose the position (Left, Right, Mid, Top, Bot ...) like justify of text compared to the Ext lines. And can Adjustment offset position (with arrow button for example) >>> It is possible command "Ai_Above_DimLine" for all dim or selection. Thank in advance. Have a good day. (DEFUN C:K (/ CMD SS LTH DEM PT DS KDL N70 GOCX GOCY PT13 PT14 PTI PT13I PT14I PT13N PT14N O13 O14 N13 N14 OSM OLDERR PT10 PT11) (SETQ CMD (GETVAR "CMDECHO")) (SETQ OSM (GETVAR "OSMODE")) (SETQ OLDERR *error* *error* myerror) (PRINC "Please select dimension object!") (SETQ SS (SSGET)) (SETVAR "CMDECHO" 0) (SETQ PT (GETPOINT "Point to trim or extend:")) (SETQ PT (TRANS PT 1 0)) (COMMAND "UCS" "W") (SETQ LTH (SSLENGTH SS)) (SETQ DEM 0) (WHILE (< DEM LTH) (PROGN (SETQ DS (ENTGET (SSNAME SS DEM))) (SETQ KDL (CDR (ASSOC 0 DS))) (IF (= "DIMENSION" KDL) (PROGN (SETQ PT10 (CDR (ASSOC 10 DS))) (SETQ PT11 (CDR (ASSOC 11 DS))) (SETQ PT13 (CDR (ASSOC 13 DS))) (SETQ PT14 (CDR (ASSOC 14 DS))) (SETQ N70 (CDR (ASSOC 70 DS))) (IF (OR (= N70 32) (= N70 33) (= N70 160) (= N70 161)) (PROGN (SETQ GOCY (ANGLE PT10 PT14)) (SETQ GOCX (+ GOCY (/ PI 2))) ) ) (SETVAR "OSMODE" 0) (SETQ PTI (POLAR PT GOCX 2)) (SETQ PT13I (POLAR PT13 GOCY 2)) (SETQ PT14I (POLAR PT14 GOCY 2)) (SETQ PT13N (INTERS PT PTI PT13 PT13I NIL)) (SETQ PT14N (INTERS PT PTI PT14 PT14I NIL)) (SETQ O13 (ASSOC 13 DS)) (SETQ O14 (ASSOC 14 DS)) (SETQ N13 (CONS 13 PT13N)) (SETQ N14 (CONS 14 PT14N)) (SETQ DS (SUBST N13 O13 DS)) (SETQ DS (SUBST N14 O14 DS)) (ENTMOD DS) ) ) (SETQ DEM (+ DEM 1)) ) ) (COMMAND "UCS" "P") (SETVAR "CMDECHO" CMD) (SETVAR "OSMODE" OSM) (setq *error* OLDERR) ; Restore old *error* handler (PRINC) ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.