Jump to content

how do draw two Parallel lines with enterd distance by user?


hamidciv

Recommended Posts

hi dear all

:(i want draw two line be parallel like mline command but with Specified distance, for draw two horizontial lines i write correspond code, but for this case i confused.

i know that should draw lines with angle=90 for case but I did not succeed.

please help me

2014-12-05_230743.png

Link to comment
Share on other sites

I wanted to write another command other than offset ,As you mentioned, the offset is easily done.

 

 

 

i have another question , how i can of one point that i define it with getpoint command ,I draw the line determined by the length and angle???

for example : (setq p (getpoint)), i want from p point , draw line with 10cm length and 45 degress, how do this?

 

thanks

Link to comment
Share on other sites

10

 

Their is heaps of stuff about draw two lines in one go just search here for "multi line" so many diferent combinations are available.

 

(defun dtr (a)
(* pi (/ a 180.0))
)

;example 
(setq dist (getdist "\enter distance"))
(setq ang (getreal "enter angle))
(setq ang (dtr ang))
(setq pt2 (polar pt1 ang dist))

Link to comment
Share on other sites

I want draw two line be parallel like mline command but with specified distance

 

As an alternative, you could configure your MLine style such that the MLine elements are 1 unit apart, and then use the 'Scale' option of the MLine command to control the distance between the lines - the MLine could be subsequently exploded (or use this) if lines/polylines are required. This way, you would still have the dynamic visual preview offered by the MLine command.

Link to comment
Share on other sites

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