Closed KBGrammer closed 3 months ago
In load_step.py
, the function load_cad should loop over elements in the document. However, in the following section at line 63:
doc_objects = cad_simplificado_doc.Objects
for elem in doc_objects:
the length of doc_objects is 0, so the loop doesn't progress and the comment is not picked up at line 76.
I figured it out. I had added a function in my main script calling the conversion stuff that @shimwell suggested for finding solids that have splines. That contains this line:
cad_simplificado_doc = FreeCAD.newDocument("CAD_simplificado")
It shares the same name as line 40 of load_step.py
. Changing the name in my function that checks for splines fixes this issue.
Somehow my comments are coming up as empty regardless. I'm trying to convert with debug on and it seems that logger.info(m.Comments) is empty in decompose_solids.
Any ideas how that would happen and how to remedy it?
For instance, when I try to convert the BC.stp example file, geouned_general_log.log has these lines:
At the decompose stage, the second line of these two should have some type of name for the object, but it doesn't:
The MCNP output does not contain a comment for the cell 1, but does for the void and graveyard:
I'm generating it with the following json parameters and using the dev version:
Originally posted by @KBGrammer in https://github.com/GEOUNED-org/GEOUNED/issues/187#issuecomment-2150378118