We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f5a4a commit bd4fb2cCopy full SHA for bd4fb2c
examples/example__bom_custom_001.py
@@ -25,13 +25,17 @@
25
from datetime import datetime
26
27
from pycatia import catia
28
+from pycatia.enumeration.enumeration_types import cat_work_mode_type
29
from pycatia.product_structure_interfaces.product_document import ProductDocument
30
31
application = catia()
32
product_document: ProductDocument = application.active_document
33
product = product_document.product
34
products = product.products
35
36
+# if the product isn't already in design mode you'll need to activate it, otherwise script will fail.
37
+product.apply_work_mode(cat_work_mode_type.index("DESIGN_MODE"))
38
+
39
part_numbers = []
40
prd_dict = {}
41
0 commit comments