rvdijk - Wednesday, February 29, 2012 3:06 PM:
Hi,
I created a PART with AML through NASH, however some properties are still to be filled out manually afterwards. I want to create a PART with all necessary info in one go. How can I found out what more properties there are? Is an overview available of all properties in ARAS, not only for PART?
This is what I got so far:
<AML>
<Item type="PART" action="add">
<item_number>--XXXXX--</item_number>
<name>--Description/Name--</name>
<unit>--MM--</unit>
<unit_price>--0.33--</unit_price>
<owned_by_id>
<Item type="Identity" action="get">
<name>--Component Engineering--</name>
</Item>
</owned_by_id>
<managed_by_id>
<Item type="Identity" action="get">
<name>--Component Engineering--</name>
</Item>
</managed_by_id>
<classification>--Component--</classification>
</Item>
</AML>
<unit_price> did not work. What is the correct property?
<classification> is this right?
What property does Long Description have?
Thanx in advance!
Yoann Maingon - Thursday, March 1, 2012 11:40 AM:
Just to help you work faster and benefit from the autocompletion feature (to avoid wondering what is the property names) use AMLstudio
http://amlstudio.codeplex.com/
It's just the Nash but with more features !
Best,
Yoann
rvdijk - Wednesday, March 7, 2012 10:32 AM:
Thanks for the tip!
I found out about AMLStudio too, when I was searching the internet for more info on properties. Great help in script writing!
I also managed to create PART through AML language, with full info and even the necesarry relationships. I will post the scripts when I find the time.
BR,
Rob
rvdijk - Monday, March 19, 2012 10:18 AM:
For those interested; create a PART through AML language, with full info and necesarry relationships
<AML>
<Item type="PART" action="add">
<item_number>--TEST--</item_number>
<owned_by_id>
<Item type="Identity" action="get"> to get the right identity from a List
<name>Component Engineering</name>
</Item>
</owned_by_id>
<name>--Description/Name--</name>
<managed_by_id>
<Item type="Identity" action="get">
<name>Component Engineering</name>
</Item>
</managed_by_id>
<classification>Component</classification>
<unit>MM</unit>
<make_buy>Buy</make_buy>
<description>Long Description</description>
<Relationships>
<Item type="PART GOAL" action="add">
<goal>Cost</goal>
<estimated_value>0.33</estimated_value>
</Item>
<Item type="Part AML" action="add"> to add relationship to Manufacturer Part
<source_id>
<Item type="Part" action="get">
<item_number>--TEST--</item_number>
</Item>
</source_id>
<related_id>
<Item type="Manufacturer Part" action="get">
<item_number>0028304</item_number>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</AML>