Jump to content

Creating Dimensions for multiple lines from Base line


Recommended Posts

Posted

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.

 

 

Thanks

Posted

Hi Tharwat, is it possible to flip the dimensions after created through Bigal's code

Posted
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

 

Posted

Will have a look again. Post image or dwg with say lines showing pick points.

Posted
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)

image.png.bdfd65fb59114b9c38060cd8c113abb0.png

 

sample.dwg

Thanks

Posted
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.

 

image.png.96856d15e67e2907c89e67f2cbd8b9ea.png

 

Thanks

Posted (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 by exceed
Posted

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.

Posted

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. 

Posted

Okay, thanks Bigal

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...