[Part Classification] How to create AML to add classification for Part
- 7 years ago
Hi Anhht-hue
To edit the part classification you can use the below AML
Run below AML query to get the Part information (to get the ID of the part, Go to File --> Properties)
Get Query (Get the exact tag for item class. In my case I assume it is class_id)
<AML>
<Item action='get' type='Part' id='ID of the Part'>
</Item>
</AML>Edit Query
<AML>
<Item action='edit' type='Part' id='ID of the Part'>
<class_id>ID of the classification</class_id>
</Item>
</AML>Note: This will remove all the existing Part Technical Characteristics
To Edit the Techical Characteristics use below AML
Get Query (Get the exact tag that shows the value in UI).
<AML>
<Item type='Techical Characteristics' action='get' id='ID of Technical Characteristics'>
</Item>
</AML>Edit Query (I assume it is value)
<AML>
<Item type='Part Item Characteristic Value' action='edit' id='ID of Technical Characteristics' serverEvents='0'>
<value>Hi</value>
</Item>
</AML>Thank You
Gobikrishnan R