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.
Using variables to scale a sketch
kenn_sebesta167
Member Posts: 61 ✭✭
I'd like to scale an entire sketch based on a variable, so that I can then set that variable up as a configuration. This is proving to be somewhat difficult, as the sketch transformation feature seems to be a one-off, and does not allow any kind of programmatic input.
Is there a natural way to do this, or is this going to have to be done through some kind of Extrude--> Scale --> Use workaround?
Is there a natural way to do this, or is this going to have to be done through some kind of Extrude--> Scale --> Use workaround?
0
Answers
Depending what you are trying to do, you could either scale parts or you might be able to create a zero offset surface(s) of your sketch and use that directly further downstream as planar surfaces behave mostly the same as sketches for a lot of things.
The main exception would be if you have a lot of construction geometry, but even then you might be able to have a base surface that gets scaled and add a sketch later referencing this with your construction geometry (so that it would scale with it).
I would also recommend voting for this IR so that you could use the transform feature outside of Sketcher, instead of the transform tool in sketcher.
https://forum.onshape.com/discussion/12062/transform-sketch
Along with using a body for a logo: if you use the face of your logo part (select the face to extrude for an emboss / deboss for instance) you have the added benefit of the selection being robust to changes to the edges of the logo...and not failing when an edge disappears or appears later when you Version the logo.
Generally, selecting faces reduces work and makes Feature Lists more robust to changes.
Extrude 3 uses the face as a selection:
...then when a fillet is added to the logo - it's not necessary to edit Extrude 3 - it just works, because the selection isn't dependent on the definition of its edges:
One of those cases where selections can be such a big part of robust Feature Lists.
I think @S1mon's approach (with @romeograham's excellent observation) is how I will have to move forward for the moment.