cg: update pipeline to lcs property WIP

This commit is contained in:
brothermechanic 2024-03-14 11:29:06 +03:00
parent c27b99ff52
commit 6c7e8c46d6
No known key found for this signature in database
GPG key ID: 9C59EF9503ACD106
3 changed files with 11 additions and 2 deletions

View file

@ -54,6 +54,10 @@ def freecad_to_json(**kwargs):
if obj.isDerivedFrom('PartDesign::CoordinateSystem'):
js_obj['type'] = 'LCS'
for attr in dir(obj):
if 'Robossembler' not in attr:
continue
js_obj[attr] = getattr(obj, attr)
elif obj.isDerivedFrom('Part::Feature'):
js_obj['type'] = 'PART'