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.

Optimization Solver - New Feature on fs.place

Caden_ArmstrongCaden_Armstrong Member Posts: 208 PRO

I've gotten a number of request over the years for features that have a measurement based constraint such as perimeter or area. The topic has also come up on the forums a few times (https://forum.onshape.com/discussion/18610/how-can-i-use-perimeter-as-a-constraint). My answer to the question has always been - to optimize a surface/body you have to decide how to vary it, which requires design intent. Coding design intent into a feature is fine, but it isn't easily generalized.

But then the obvious solution hit me - just derive configured instances. Allow the parametric model to solve all the difficult design intent modifications to the model.

Introducing my new feature: Optimization Solver

This feature derives a given model for a specified range of a configuration variable - measuring the geometry at each step - and keeping the step that is closest to a provided target.
The user can then improve on the result by reducing the range of inputs, until a satisfactory result is reached.

This effectively allows for perimeter constraints in sketches (albeit with some design process caveats), and inferred dimension constraints.
In the public demo document I have a cube constrained to a volume, a sketch constrained by the face area and another sketch constrained by total edge length.

This is a paid feature - available on fs.place along with many other high quality features.
https://fs.place/Listings/WM0GYNU1CCS73N2IUGYRCATNCO7JRUDZ

But you can check out the public demo document here:
https://cad.onshape.com/documents/82977c81d8aa2257b510e34a/w/a390c39e796c3c583a22dc9b/e/ea2a19509efb13f407c22f6d



www.smartbenchsoftware.com --- fs.place --- Renaissance
Custom FeatureScript and Onshape Integrated Applications

Comments

Sign In or Register to comment.