You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import creopyson
c = creopyson.Client()
c.connect()
c.file_open(file_="VW003041.asm", new_window=True, display=True)
c.feature_suppress(name="094666.prt")
c.file_close_window(file_="VW003041.asm")
c.file_regenetrate(file_="VW003041.asm")
c.file_open(file_="VW003041.asm", new_window=False, display=True)
llista_id = [component["name"] for component in c.feature_list()]
for comp in llista_id:
creopyson.feature_suppress(c,name=comp, with_children=False, clip=False)
I tried these two approaches. The error I got is the following:
Traceback (most recent call last):
File "w:\Pro_Utils\Macro\AppsElebia\prova_supriir.py", line 7, in <module>
c.feature_suppress(name="058405.prt")
File "W:\Pro_Utils\Macro\AppsElebia\.venv\Lib\site-packages\creopyson\feature.py",
line 665, in suppress
return client._creoson_post("feature", "suppress", data)
File "W:\Pro_Utils\Macro\AppsElebia\.venv\Lib\site-packages\creopyson\connection.py", line 75, in _creoson_post
raise RuntimeError(error_msg)
RuntimeError: A Pro/TOOLKIT error has occurred: Bad Context. Check your model/drawing for accuracy.
The text was updated successfully, but these errors were encountered:
Description
I try to supress a subassembly in an assembly.
What I Did
The text was updated successfully, but these errors were encountered: