Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen 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