keithsloan52 wrote: ↑Sat Aug 17, 2019 6:37 pm
GDML is a set of solid geometries. A far richer set than FreeCAD parts but does not cover all possible shapes.
yes, I was able to catch that from a quick read over few pages
keithsloan52 wrote: ↑Sat Aug 17, 2019 6:37 pm
You cannot have the flexibility of creating arbitrary shapes with sketches and extrude/pocket etc and then have what
you create as GDML solids. McCAD makes an attempt to break down an arbitrary shape to a set of boolean GDML
solids it uses some software called Salome and is complex.
keithsloan52 wrote: ↑Sat Aug 17, 2019 6:37 pm
Without access to CATIA I cannot say. Maybe it is like my workbench in that it allows you to edit a GDML file and instantly see the results. Maybe by restricting some CAD functions so it is able to create GDML files, but it cannot offer full flexibility and output GDML those are mutually exclusive.
you simply do a prebuild library of parts (or bodies) with the shapes that GDML supports, you attach some custom properties to them so that you can export that together with the geometry and get a normal GDML or what ever other output you would prefer to have from it... so ok, I would have to review this a bit deeper to be able to say for sure but I don't see why it would not work and from what i understand from those presentations this is how they are doing it with catia.
keithsloan52 wrote: ↑Sat Aug 17, 2019 6:37 pm
Also I think CERN are hoping that the GSOC projects will allow people to use CAD systems to design, Create Tessellated objects from these and then run the analysis in reasonable time using processors with lots of cores.
keithsloan52 wrote: ↑Sat Aug 17, 2019 6:15 pm
It seems to have all the objects but has lost the structure i.e. hierarchy
yes, you would have to use the standard structure (parts or bodies) for a standard step exported to support that (of course we would have to have a proper implementation of those in the first place ), or if you absolutely want to use your own objects and structure, then you would also have to write (modify) your own step exporter (and exporters for other formats if you would want to export to something else) to read and export the proper structure from yours. and this is why i am arguing, not just about your implementation, but also our general implementation of parts, assemblies and bodies, that it is best to stick to some standards because then things like this just miraculously work with no additional effort.
keithsloan52 wrote: ↑Sat Aug 17, 2019 11:00 am
Cannot union or compound as mostly separate objects i.e. distinct objects.
Will have to check out container as not used them before. Could not find any obvious way to create one, which workbench
does one use? Think it is the same problem. FreeCAD is not oriented to multiple objects in a doc.
GDML has logical and physical volumes, where a Logical volume may have a number of physical volumes.
So I was thinking about having a App::Part for each logical volume, but logical volumes can exist in a hierarchy.
(I currently implement Logical and Physical volumes as Python Groups.)
Playing with Create Part in FreeCAD I have yet to find a way to create a hierarchy, each time I create a Part
it seems to go to the root of a document. Is there a way of having a Part contain a sub Part?
keithsloan52 wrote: ↑Sun Aug 18, 2019 5:53 pm
Playing with Create Part in FreeCAD I have yet to find a way to create a hierarchy, each time I create a Part
keithsloan52 wrote: ↑Sun Aug 18, 2019 5:53 pm
Playing with Create Part in FreeCAD I have yet to find a way to create a hierarchy, each time I create a Part
You can drag one inside an other or with python:
Part.addObject(Part1)
Thanks.
I am experimenting with this. How do I get it so that when I say insert a Cube via the Parts workbench it goes in a particular Part.
I have tried right click on a Part and toggle active part but it just goes to the highest level in the document. Am I supposed to
have a ViewProvider for the Part?
keithsloan52 wrote: ↑Mon Aug 19, 2019 5:24 am
I am experimenting with this. How do I get it so that when I say insert a Cube via the Parts workbench it goes in a particular Part.
I have tried right click on a Part and toggle active part but it just goes to the highest level in the document. Am I supposed to
have a ViewProvider for the Part?
But when I try and export as STEP I get the following error
C++ exception thrown (vector::_M_range_check: __n (which is 18446744073709551614) >= this->size() (which is 26))
OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.3.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)