Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

pycatia - Cycle though products to set parms in catpart

Status
Not open for further replies.

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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor