Jump to content

drawing a line with a set %


Recommended Posts

Posted

I need to draw some pipe on a profile. The pipe is set at 0.3%. I know the starting point of the pipe, what command should I use in order to set the line to 0.3% (similar to polar tracking which you can set 15° for example).

 

Thanks.

Posted

Draw a line 333.3333 units long raise 1 end 1 unit

 

ie 1/(0.3/100)

 

If it has a vertical scale then you need to adjust the vertical 1 units to suit the horizontal ratio.

Posted

I would do similar to BIGAL except, 1000 long raise 3.

 

side note - 0.3% thats pretty flat, can they contruct/lay to that accuracy without flat spots.

Posted

try this

;;;draws a pline at a user designated %  LPS 2009-01
(defun c:pb% (/ % oldsnang oldortho oldecho)
(setq % (getreal "\nEnter percent slope: + /-: ")
     oldsnang (getvar "snapang")
     oldortho (getvar "orthomode")
     oldecho (getvar "cmdecho"))
 (setvar "cmdecho" 0)
(setvar "snapang" (atan (/ % 100)))
(setvar "orthomode" 1)
(command "pline" pause pause "")
(setvar "snapang" oldsnang)
(setvar "orthomode" oldortho)
(setvar "cmdecho" oldecho)      
(princ)
)

If you're drawing at an exaggerated scale, I've got one for that too.

Posted
I would do similar to BIGAL except, 1000 long raise 3.

 

side note - 0.3% thats pretty flat, can they contruct/lay to that accuracy without flat spots.

 

I guess they can. The existing section is 43m long @0.4%. Mine will be 70m @0.3%, then 62m @0.4%.

 

try this

;;;draws a pline at a user designated %  LPS 2009-01
(defun c:pb% (/ % oldsnang oldortho oldecho)
(setq % (getreal "\nEnter percent slope: + /-: ")
     oldsnang (getvar "snapang")
     oldortho (getvar "orthomode")
     oldecho (getvar "cmdecho"))
 (setvar "cmdecho" 0)
(setvar "snapang" (atan (/ % 100)))
(setvar "orthomode" 1)
(command "pline" pause pause "")
(setvar "snapang" oldsnang)
(setvar "orthomode" oldortho)
(setvar "cmdecho" oldecho)      
(princ)
)

If you're drawing at an exaggerated scale, I've got one for that too.

 

How do I use the above? I have never written any code before. Thanks.

Posted

Start the line where you're beginnig is then when prompted to (Specify next point or [undo]: enter the following. @100,0.003 - That is if it is actually a 0.3% slope which means it will rise or fall 0.003 feet in 100 feet.

 

Edit:

Oops had to edit my math.

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