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.

How does the Frame feature choose which way to orient segments?

Corvin_BollCorvin_Boll Member Posts: 12 PRO
I created three space allocation parts using a single extrude from a singe sketch. Just three simple rectangular boxes, all constructed in the same way. If I use the Frame feature and select one edge of each, all in a line, they don't all share the same orientation (see image). How does OS choose which way to orient each segment of a frame? I would have expected these three pieces to face the same direction, given the identical way they were created. Any ideas to force them to line up correctly? I would like to use as few Frame features as possible to create my final product.
  
Tagged:

Best Answer

  • Corvin_BollCorvin_Boll Member Posts: 12 PRO
    Answer ✓
    Finally figured it out: Lines have directionality. Depending on which end you started it with in your sketch. Eg, a vertical line will remember if it is "pointing" up or down. This then propagates to extruded parts. Edges remember the "direction" of the line they were created by. The frame feature takes this direction into account.

Answers

  • Corvin_BollCorvin_Boll Member Posts: 12 PRO
    Additional Info: There are other sketches, etc. present in the part studio, but I made sure the edges selected really were the edges of the intended space allocation parts. However, I created a test studio that included only the space allocation sketch and extrusion. In that test, all three beams were oriented the same way (ie, they were correct and properly aligned with one another).

    I'm still searching for an explanation as to why I'm getting different results in my original part studio. Any suggestions about things to try would be helpful.
  • Corvin_BollCorvin_Boll Member Posts: 12 PRO
    Answer ✓
    Finally figured it out: Lines have directionality. Depending on which end you started it with in your sketch. Eg, a vertical line will remember if it is "pointing" up or down. This then propagates to extruded parts. Edges remember the "direction" of the line they were created by. The frame feature takes this direction into account.
  • S1monS1mon Member Posts: 3,039 PRO
    I haven't used the Frame feature, but the hidden directionality doesn't surprise me. This unfortunately an issue all over. Surfaces have default normals, lines have a start and an end, sketch entities have a creation order, surfaces have a U and V direction to their paramaterization, etc. They are usually internal to the CAD system, and invisible to the user, but sometimes they get in the way. Two visually similar models with the "same" features will end up with different results because of these hidden issues.

    Onshape is deterministic, in the sense that if you go through the exact same set of steps you (should) get the same results. This is by design and critical to its ability to allow collaboration with relatively low bandwidth syncing between users. However, if two sketches which look the same are created in slightly different orders (sketching a line from left to right instead of right to left), then the downstream results can be different.
  • curtis_keiderlingcurtis_keiderling Member Posts: 4 PRO
    So is it possible to change the "direction" of a line? I run into this problem regularly while creating frames, where a proportion of the segments will render in one direction, and the rest in the opposite direction. Ideally i could just go to the sketch and toggle the line direction for each offending line to have the segments orient correctly.
  • eric_pestyeric_pesty Member Posts: 1,947 PRO
    So is it possible to change the "direction" of a line? I run into this problem regularly while creating frames, where a proportion of the segments will render in one direction, and the rest in the opposite direction. Ideally i could just go to the sketch and toggle the line direction for each offending line to have the segments orient correctly.
    Unfortunately, your best bet is manually pay attention and draw the lines with the same start/end based on what you need, which is pretty annoying...
    The frame tool really needs to provide an "override" for the alignment of each frame (similar to the corner one)...
Sign In or Register to comment.