-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
Describe the bug
when trying to change the "name" it is not taken into account if the Part is in a Component
To Reproduce
Sample of code with snapshot
def bug_pycatia():
catia_com = catia()
documents = catia_com.documents
product_document = documents.add('Product')
root = Product(product_document.document.Product)
root.part_number = 'OK1'
sub_product = root.products.add_new_product('OK2')
sub_product.part_number = 'OK3'
sub_product.name = 'OK4'
sub_product.products.add_components_from_files(i_files_list=((r"E:\CAD_INT\working\exchange_old\Cube.CATPart"),), i_method="All")
cube = sub_product.products.items()[0]
cube.part_number = 'OK6'
cube.name = 'KO_KO_KO' # this is KO
Expected behavior
the cube instance name should be changed
Screenshots
screenshot of the bad result given
Cube.zip
Desktop (please complete the following information):
- OS: Windows 10
- CATIA V5 version V5-6R2017]
- pycatia version 0.6.4
Additional context
no
Metadata
Metadata
Assignees
Labels
No labels