Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Divide line

Hi.

I have a line, say 13 meters long, and I want to draw a perpendicular construction line every meter.

The catch is, if I now change the original line length to 15 mts I want it to auto add the missing construction lines. Likewise if I make the original line shorter I want it to remove the extras.

Basically, auto calculate the number of construction line at X distance apart for a line length of Y..

Does anybody have any ideas how to do this ?

Thanks. Steve

Answers

  • S1monS1mon Member Posts: 2,989 PRO
    There are ways to do this (now that sketch patterns can be parametric), but the first question would be why do you want to do it? What are you going to use the construction lines for? There may be better ways to solve this problem.
  • steven_mcardlesteven_mcardle Member Posts: 13
    Hi @S1mon

    I am going to use the construction like to attach new planes perpendicular to the centre line.
    The construction lines represent stations in a boat hull and the attached planes will be used to represent each of frames at that stations

  • robert_scott_jr_robert_scott_jr_ Member Posts: 485 ✭✭✭
    Hello Steven. In part studio 2 of the document linked below there is a sketch that results in what you described. I first created a variable #inch_count with Number selected as the variable type. I created a horizontal construction line and for the dimension I used the variable. I created a vertical construction line at the left end vertex of the horizontal line and used the Linear Pattern tool to make copies of the initial vertical line and for the number of copies I again used the variable but added 1 to it to ensure the right horizontal line vertex was included. The sketch is in inches but perhaps you can use the method for your needs


    Perhaps an easier way would be to use the feature script Multi Plane.

    - Scotty
  • EvanReeseEvanReese Member, Mentor Posts: 2,144 ✭✭✭✭✭
    edited September 2023
    You can also just pattern the planes. I made a modified version of the native Linear Pattern feature called Linear Pattern Plus, which is a little more handy for specifying a total length, with a fixed instance spacing and calculating the count for you, but you can also do this with some variables and a little math. Here's my example document

    Evan Reese
Sign In or Register to comment.