acad1985 Posted March 30, 2022 Author Posted March 30, 2022 All the dimensions will be aligned properly, and values need to come with "m". in this video shown the @BIGAL code, like this all the dimensions need to place. Bigal's code was works very well as i requested, only the thing is its creates the dimension only one side. dimoffs.avi Thanks Quote
acad1985 Posted March 30, 2022 Author Posted March 30, 2022 Hi Tharwat, is it possible to flip the dimensions after created through Bigal's code Quote
acad1985 Posted March 31, 2022 Author Posted March 31, 2022 On 3/30/2022 at 5:50 AM, BIGAL said: I have updated the code in previous post, 2 items, removed extension lines and added a spacing value. Your original dwg had offsets like 3 4 5 this has offsets like 0.1 0.2 so code did not work I had a small offset in code but way to big hence skipped lines. Hi Bigal, Version 2 Code was working fine, but i ca't able to select all the lines.[Select the Control Line (pt1)--> then click on Left/Right (pt2) --> then then click on Left/Right (pt3)], in this way i need to select, and one more issue on this just found, If i crossover any Text/Mtext while clicking for pt2, then it will create a polyline instead of Dimension. could you please help on this. Thanks Quote
BIGAL Posted April 1, 2022 Posted April 1, 2022 Will have a look again. Post image or dwg with say lines showing pick points. Quote
acad1985 Posted April 1, 2022 Author Posted April 1, 2022 10 hours ago, BIGAL said: Will have a look again. Post image or dwg with say lines showing pick points. Hi Bigal, Here i have attached the Sample Drawing file and video for your reference. While using Version 2 lisp, if i select middle line as a control line and click on left side then dimension not coming for right side lines. (see video) dim2.avi sample.dwg Thanks Quote
acad1985 Posted April 4, 2022 Author Posted April 4, 2022 On 4/1/2022 at 8:50 AM, BIGAL said: Will have a look again. Post image or dwg with say lines showing pick points. I tried to fix this from your Earlier version, but i can't able to do that. if i select middle line as a control line and click on right side then dimension not coming for left side lines. Thanks Quote
exceed Posted April 5, 2022 Posted April 5, 2022 (edited) ; FROM https://www.cadtutor.net/forum/topic/30966-lisp-for-hidingshowing-objects/?do=findComment&comment=374578 (defun C:ii (/ tab all ss i e) ;; temporarily isolate selected objects (regen will bring them back) ;; Alan J. Thompson (setq tab (if (eq (getvar 'CVPORT) 1) '(410 . "Model") (cons 410 (getvar 'CTAB)) ) all (ssget "_A" (list tab)) ) (if (setq ss (ssget (list tab))) (repeat (setq i (sslength all)) (redraw (setq e (ssname all (setq i (1- i)))) (if (ssmemb e ss) 1 2 ) ) ) ) (princ) ) 1. simple way for avoid problem over the text mtext blocks this ii command will isolate your target lines instantly after working, you can recover views with RE - regen command. ,or separate layers then use LAYISO Hide 2. for making dimension other directions need to think about how CAD will know lines in the unselected direction. It can be configured in the following way. - Select the target lines first, then select the baseline and specify the direction - A rough method that is not general, is to specify the distance from the reference line Edited April 5, 2022 by exceed Quote
acad1985 Posted April 6, 2022 Author Posted April 6, 2022 Thanks exceed for your code, as you said i can isolate my control lines then i can create dimensions. but still can`t able to make the dimension for all. @BIGAL, @Tharwat, @exceed can we select control line first, then we select the other lines one by one manually (instead of cover all the lines). is it possible, if we can do that way would able to make dimension for all the lines. Thanks. Quote
BIGAL Posted April 6, 2022 Posted April 6, 2022 Way back in these posts did a pick control then drag over all lines, I just have not had a chance to get back to that version, I am working on a big project with all sorts of complications but will try to find time to go back to it. 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.