kuleszajmk
Automotive
- Nov 7, 2010
- 29
Using Python/pycatia to automate parameters..
product_item is each part I wish to edit in the loop.
Need to redefine this -- caa.active_document.com_object
If I open a catpart only no problem
I wish to do the same but loop through each Product files..
for product_item in products:
part_numbers.append(product_item.part_number)
prd_dict[product_item.part_number] = product_item.nomenclature
document = PartDocument(caa.active_document.com_object)
product = Product(document.product.com_object)
part = Part(document.part.com_object)
product_item is each part I wish to edit in the loop.
Need to redefine this -- caa.active_document.com_object
If I open a catpart only no problem
I wish to do the same but loop through each Product files..
for product_item in products:
part_numbers.append(product_item.part_number)
prd_dict[product_item.part_number] = product_item.nomenclature
document = PartDocument(caa.active_document.com_object)
product = Product(document.product.com_object)
part = Part(document.part.com_object)