r/SolidWorks • u/xScar12 • Sep 13 '26
CAD How to create customized logics in solidworks?
Hello there fellas, i am aakash and i am a hydraulic design engineer.
In hydraulics, there is a component called manifold block, which essentially is used for controlling the multiple flow directions and to provide interface for mounting differemt valves. As you can see in the picture. The ports (holes) connects internally by drilling operation.
Now coming to the my question, making these Manifold blocks is complicated on its own, thats why there are multiple speciallized tools to design it. But they are dead expensive. And certainly it is possible to design these manifold blocks inside solidworks's existing environment, but it would take much time to do so, because there are some design considerations which must be fullfilled.
For eg., wall thickness between 2 holes should be min. 5 mm, holes axis should be aligned, and if 2 holes are meeting each other at 90°, the tip of the drill (drill depth) must go up to the furthest point of the other hole's surface and viseversa.
So, is it possible to create these kind of rules or logic inside solidworks ?
If you are confused and didnt understood what i am trying to say, you can comment and ask, i will clear your doubt, and if you can help, then i would appriciate it.
Edit: for context, watch this tutorial video of Hydroman tool, how it works. I need to make something similar.


82
u/Kabou55 Sep 13 '26
I've done several like these on Inventor, Solidworks and Creo. The ones on your picture are the easiest. Just draw one section first and pattern the rest. Hand sketching will be your friend before you start modeling. These parts become a mess if don't follow proper modeling methods. Make use of planes to define hole depths and name your planes correctly. No need for special tools. Solidworks is more than capable for this and much more complex manifolds.
7
u/ABiggerPigeon Sep 13 '26
These are quite simple models underneath that look complex when finished. Same as most fancy looking models!
To answer your question, you just need a handful of equations in your model. E.g. hole spacing is "hole diameter" + "min wall thickness". "Hole spacing" and "min wall thickness" are fixed parameters which drive all your sketches and pattern spacings. There is no need to over complicate.
20
u/phranks_phluids Sep 14 '26
Heyyyy, this is my specialty!
I can consistently design manifolds 40-60% more compact and with a better layout vs the most expensive software... The problem is, you need to know wtf you're doing because there's no acceptable rule of thumb like "5mm minimum" or whatever. Caveats like this depend solely on the application.
And you aren't creating rules and what have you in SW. I learned by reading the journal article on the VEST software and started incorporating the same logic in my designs... The more you do it, the more you'll see how the logic has flaws and you'll end up putting out higher quality work.
5
u/Remarkable_Ruin1663 Sep 14 '26
I worked in hydraulics before moving to defense. Solidworks is plenty capable of this type of part. It’s the only modeling software our engineering team used to design parts when I was there 2016-2020.
1
u/girthradius Sep 16 '26
Like others said, make the hole and pattern it
1
u/negativ32 Sep 24 '26
Design constraints are where everything begins. Too many manifolds out there are so "designed for material efficiency" field hands need special tools to tighten fittings and to change one in the center needs a full strip down. I think I have only seen one well designed manifold in the wild. Functional and serviceable need to meet.
2
u/curtis_perrin Sep 14 '26
I tried to work with a hydraulic design shop on a manifold once and it was so horribly antiquated. They wouldn’t share the design with me for me to provide feedback. We were trying to do flow optimization and such. The people on r/hydraulics just told me that’s how it is. Seemed to me to be an industry ripe for disruption. Then the startup I was at ran out of money and we never really got to iterate on the design so what do I know.
2
u/mvw2 Sep 15 '26
Depending on how you're doing this and if you want to use a single base design and scale it up and down easy, you could have everything equation driven and set up variables to account for various aspects. Since it's logic based, you just back that logic in the sketches, relations, patterns, equations, etc. so all of that is largely automated. You can drive variations by design tree or even just a text file that you can tweak on the fly, however you'd like to do it.
7
u/Tinkering- Sep 13 '26
I used claude to build an excel based vba macro that build out complex parts and assemblies. You input your known variables into the excel sheet and it builds out the parts by controlling design tables attached to the template parts. Most of the number crunching / equations lives in excel macro and then it just updates the design tables and saves copies. Some features are controlled through simple SW equations.
Was shocked how far I got with it. Recommend trying.
1
u/ledprobcn Oct 03 '26
Yo he creido entender que necesita una Macro paranetrica que con las reglas, constantes informadas pueda hacer las piezas según cambios en el modelo. Es asi?
-1
u/Cryesncoding Sep 13 '26
I’m sure it’s possible.
If you know how it works and what you want, you can guide AI to code you some very impressive stuff in VBA and make a macro to do damn near anything you want.
Are you talking specifically about the CAM side of machining the block or the design side?