6 ms·
Having used OpenSCAD, Solidworks and NX fairly extensively, I can say that "code-based" solid modelling systems are good for some specific things - anything tha
by IshKebab 11y ago
Having used OpenSCAD, Solidworks and NX fairly extensively, I can say that "code-based" solid modelling systems are good for some specific things - anything that is highly parametric, for example:
* Gears and sprockets
* Fasteners (nuts & bolts)
* Electrical components (ICs, etc)
For anything else they aren't at all suitable. It's just a million times easier to be able to click on dimensions on the actual sketch and change them. You're never going to see a power tool or a tractor or whatever designed in OpenSCAD.
Few 2D drawing programs are specified in code - the only ones I can think of are things like TikZ for Latex, and ... well there's a reason only Latex geeks use them. They aren't very easy to use.
The main reason they exist is that it is much (like 100 times) easier to write a code-drive CAD system than a GUI-driven one.
- tiles 11y agoThe ideal would be both worlds. 3D editor until you want to go in and change specific relations, which would be specified in code. Like editing an SVG or hand-editing its source, it's useful to have the option depending on your toolset.
- shasta 11y agoThe issue isn't whether you're editing text or visually interacting. It's that there's a tension between abstraction (parameterized models) and WYSIWYG editing.
- stefanix 11y agoFreeCAD is a bit like this. See: http://freecadweb.org/wiki/index.php?title=Scripted_objects http://freecadweb.org/wiki/index.php?title=Scripted_objects
- niklasni1 11y agoI really like the idea of OpenSCAD, but the language is just unacceptably crappy. It's still better for me with my habits than anything graphical, though. If it had better capabilities for abstraction I think it'd much more suitable for large, complicated objects than a graphical editor.
- ranit 11y ago> The main reason they exist is that it is much (like 100 times) easier to write a code-drive CAD system than a GUI-driven one. The reason they exist is because they are very well suited for making changes on the model ... on shallow and deep level. It might be easer to "click on dimensions on the actual sketch and change them" for a few elements, but try making a fundamental change without code. GUI vs. code/config file preference seems to be a personal disposition not only for CAD but for all kinds of software.
- andor 11y agoSolidworks is parametric, too. You don't need code for that.
- krschultz 11y agoA parametric modeler, i.e. every major CAD system in use since 1995, allows you to specify your dimensions based on formulas that use relationships between components. If you look at Solidworks or CATIA and think "man it must be slow to point and click to set dimensions" you are missing how it is actually used in professional practice. The difference between point and clicking dimensions in those tools and how they are supposed to be used is greater than the difference between pecking in Notepad and being a power user in Emacs/Vim.
- ranit 11y agoExactly my point. "Based on formulas that use relationships between components" means that they have internal language which if used well helps enormously.
- phkahler 11y agoNo, it means they have an algebraic constraint solver. If you don't have this feature, you don't really have a CAD program.
- saidajigumi 11y agoBeing a career software developer who has recently learned to use parametric CAD (specifically, Geomagic Design, formerly known as Alibre Design), this is just not true. On the software side, I'm one of those who generally prefers code vs. GUI config. But that's an utterly terrible analogy to parametric CAD, which is really a touch closer to a kind of end-user programming language. Parametric CAD is far better about keeping relevant dimension values, formulas, and model constraints right where they're relevant and trivial to visually comprehend in terms of their function in the model. A better analogy for the uninitiated would be the frustration of a spreadsheet where the cell values and formulas had to be edited on some entirely separate text code UI sheet, requiring flipping back and forth and holding stuff in short-term memory to do anything to the model. That said, I'm actually quite interested to play with Antimony. At first blush, it looks far more appealing than OpenSCAD for practical applications. Over time, it's UI might be able to converge functionally to the mature CAD packages, but allow for greater insight into how the engine is really building up the model, especially in complex projects. Constraint debugging in parametric CAD can occasionally be a frustrating kind of hell. Antimony and/or its descendents may be able to help out with that.
- bd_at_rivenhill 11y ago"You're never going to see a power tool or a tractor or whatever designed in OpenSCAD." I beg to differ on this, I've been using OpenSCAD for a couple of years now, and the two most complicated designs I have done were for a dual drive robot base and a simple 3-axis CNC machine. Many of the parts were COTS (which I built modules for) and the rest were designed for these projects, including some parts which were sent directly to my 3D printer. In doing this, I've been developing various functions and modules that simplify common operations such as attaching two separate parts and using difference to form a free fit hole for a specific type of screw. I find this to be much easier than clicking on dimensions in a sketch, but this is because I have all of the mental habits developed by learning to build complex software.
- gcb0 11y agoi also use open scad, but mostly because solid works is too expensive (and i like to have my data on a free format, human readable if possible, always) i bet if you look at your design code, most of the parametrization and solid are there just to work around the fact that you can't tie one side of a cube to another. to me at least, that's the killer feature that open scad lacks.
- jlarocco 11y agoMy last job, at a CAD company, we had a competition to see who could create the coolest models programmatically using the new Javascript based scripting language we were creating. My entry was a library that could generate Lego pieces, which I used to build a Lego truck. I can't find a pic of the full truck, but here are some samples: https://www.dropbox.com/s/fu7xc4cjda2kyx4/lego7.png?dl=0 https://www.dropbox.com/s/fu7xc4cjda2kyx4/lego7.png?dl=0 https://www.dropbox.com/s/33dws1ug5vzyfe6/lego6.png?dl=0 https://www.dropbox.com/s/33dws1ug5vzyfe6/lego6.png?dl=0 https://www.dropbox.com/s/7z85257nidmpkdz/lego5.png?dl=0 https://www.dropbox.com/s/7z85257nidmpkdz/lego5.png?dl=0 https://www.dropbox.com/s/ks8ctcfcbxan3dq/lego1.png?dl=0 https://www.dropbox.com/s/ks8ctcfcbxan3dq/lego1.png?dl=0 Anyway, as much as I enjoyed creating the truck, the reality is that a decent mechanical engineer, experienced in SolidWorks, CATIA, or other parametric CAD, could have built the truck in a fraction of the time that it took me. Furthermore, I'm pretty sure that even I would have been faster in a parametric modeler, and I'm a software engineer. EDIT: I should also mention that the Javascript binding was primarily for developers to test out the modelling kernel's API, rather than creating actual parts.
- stefantalpalaru 11y ago> "code-based" solid modelling systems See the presentation video where it's driven from a GUI.
- panic 11y agoHere's the link: https://vimeo.com/125111378 https://vimeo.com/125111378 I'm also confused about the grandparent comment, since the video clearly shows direct manipulation of the actual sketch.
- sklogic 11y agoThere are some GUI-enabled CADs, but their users still prefer to script their designs instead. This applies to the specialised large-block CADs, like those for plant building, ship building industries and such. Increasing the level of abstraction makes it more rewarding to express the designs in code instead of dragging things with a mouse.
- grp 11y agoThe main reason to use "code-based" solid modeling systems is it allows the use of version-control systems. We don't have things so powerful with traditional CAD.