Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Nov 7, 2010
Messages
29
Location
US
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

Back
Top