BMoberg - Friday, October 9, 2015 10:13 AM:
Anyone knows how to create a new version of a part using AML Studio?
I've tried below string but it complains with "Object variable or With block variable not set."
<AML>
<Item type="part" action="version" id="09403950349509340590...">
</Item>
</AML>
zahar - Friday, October 9, 2015 11:35 AM:
The "type" attribute is case sensitive, so your code is:
<AML><Item type="Part" action="version" id="09403950349509340590..." /></AML>
If there are errors probably this is because you have some Server Method onVersion of the Part that failed to be executed
BMoberg - Monday, October 12, 2015 8:52 AM:
Thanks Zahar!
Do you mean that "version" should work then?
Sorry about the bad example-code, I used the correct case sensitive, name for the item type ("part" was just an example). Also, no Server methods are added to this item type.
Amruta - Thursday, October 15, 2015 7:03 AM:
Hi Benny,
Your AML is right.
Just check with part ID mentioned in AMLis right for particular item or not.
Best Regards,
Amruta