Zepmanbc / creopyson

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

Suppressing parts in a subassembly with using feature_suppress #74

Closed yuyaU0507 closed 1 year ago

yuyaU0507 commented 1 year ago

Hi there, I would like to suppress a part included in a subassembly and tried feature_suppress command as below:

c.feature_suppress(name='PARTNAME.prt')

This command did not work, even it works when I change the name to subassembly name or part name that is not included in the subasesmbly. Could you tell me if I would have a way to do that? (Ex. add options. or activate the subassembly first..etc.)

Thanks!

Zepmanbc commented 1 year ago

Hi yuyaU0507

Never tried this but it seems that you cannot suppress something in a subassembly because it is not a part of the main tree, the «feature» functions deal with the tree.

I think the right proccess should be:

  1. Open the subassembly (display is not needed)
  2. Suppress the file (it is now in the current main tree)
  3. Close the subassembly (and reactivate your main window if needed)

Hope it helps

yuyaU0507 commented 1 year ago

The process works.

Thanks a lot!