Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Move to Origin or Move the Origin 'tis the question
MDesign
Member Posts: 1,312 PRO
Is it possible to move/re-orient the origin and default planes in a part studio with featurescript?
Or alternatively is it possible to transform sketches when I move other objects?
Or is there better way to get an imported scan data oriented so that geometry more closely represents default planes and origin so that one can take advantage of automatic horizontal and vertical constraints as well as other assumptions while recreating the data?
Context of what prompts the question:
So when I start a part studio for reverse engineering, Often times the scan data is off in random space and skewed. While I can move the data to the origin I can't precisely locate/orient it there without first creating some planes and sketches to capture the geometry orientation as intended. There is no referencing geometry yet to perform a proper transform. After that I can move the data via transform via mate connector back to the origin but I can't move my sketches with that data and have to recreate those it at the new location again to start modeling the feature. This feels redundant and clunky. although creating those sketches/geometry the second time is always faster than the first time. ha. You might ask why not just create the part where the data is in space? Because it is a royal PITA when your fighting the software's natural instinct to make things orthogonal to the original origin/planes.
Comments
You could potentially convert the sketches to flat surfaces. Those are easier to transform. Of course if they’re not closed shapes that could be tricky.
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
No, or not easily. You can delete the default planes and origin then make new ones. But the view cube will still be out of alignment.
For meshes, I like to use Aligned bounding box.
Then put a Mate connector on the box with its secondary axis aligned to it.
Transform everything from that mate connector to a mate at the origin of the studio.
I should probably put a "move to origin" option in the aligned bounding box feature.
.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
I've thought of and tried using a surface or feature but then my original locating sketch entities are not available for downstream use after the move.
Interesting Bounding box tool… I tried it out. But doesn't really let me zero in on the precise orientation relatative to the mesh. Here's a sample of the mesh I got right now.
Still working out the flow but it seems the best I can come up with is best fit plane for points. draw some locating sketch geometry. assign a secodary transform the mesh (can't select the sketch/planes) using a mate connector with a logical primary and secondary based on the sketch entities to the origin. Recreate the the sketch as needed to start modeling. Its the redundancy that irks me. Guess it could be worse. I guess the trick is to find that one feature that you will never need to adjust or use its sketch and create that first at the mesh default location before the move to origin and go from there to eliminate the duplicate effort.