[Part Classification] How to create AML to add classification for Part

Hi everyone, 

As my picture above, I want to use AML to edit Part and set value Item Class, Class Path and some value like m_Capacitance Uni, etc.
I'm just a newbie in Aras. So please help me or let me know some keywords to resovle this issue.

Thanks a lot.

Parents
  • 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

Reply
  • 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

Children