Zepmanbc / creopyson

Python library for Creoson (http://www.creoson.com)
MIT License
60 stars 5 forks source link

creopyson.layer.delete #68

Closed stekicar closed 1 year ago

stekicar commented 1 year ago

I am trying to remove all layers from part/assembly using following code:

for component in component_list:
    creopyson.layer.delete(srv, name=None, file_=component)

But I do not get any layer removed. Documentation show "Layer name (wildcards allowed: True). Defaults: All layers will be deleted." I think that None means "all will be removed"?

Here is the error: RuntimeError: Invalid JSON input: {"sessionId": "4726948925695228620", "command": "layer", "function": "delete", "data": {"name": null, "file": "20-111_joining_plate.prt"}}

Under "name" it says null which is not None value. What should I put for "name" so all layers are deleted?

Zepmanbc commented 1 year ago

Hello Release V0.7.6 should correct this