Remove Relation from older generations

My CAD is in Rev A Generation 1

It was added to a part on Rev A Generation 2, and was removed in Generation 3 of the part. Currently part is in Generation 4.

I want to delete the CAD, but it gives me error : "

<faultstring><![CDATA[CAD cannot be deleted. It is used in Part CAD related_id CAEBB682F6164224962E61BBE49411DC.]]></faultstring><detail><af:legacy_detail><![CDATA[CAD cannot be deleted. It is used in Part CAD related_id CAEBB682F6164224962E61BBE49411DC.]]></af:legacy_detail><af:legacy_faultstring><![CDATA[ItemMethods: PurgeItemEx2: Referenced items found (type=Part CAD:CAEBB682F6164224962E61BBE49411DC)]]></af:legacy_faultstring>

Note : CAD relation is Hard Fixed out of the box.

How do I take care of deleting such related items?

The CAD item shows the part in UI(field name : part) which is HTML, and is a link to the part Rev A Generation 2. Can I may be create admin form to allow removal of relation from UI? Or there is a cleaner way to do it?

Parents
  • Hi 

    You can use AML Query to delete the relationship first and delete the CAD item.

    <AML>
    <Item action='delete' type='Part CAD' where="[Part_CAD].related_id ='1111111111111'">
    <behavior>float</behavior>
    </Item>
    </AML>

    Here Related ID is ID of the CAD item

Reply
  • Hi 

    You can use AML Query to delete the relationship first and delete the CAD item.

    <AML>
    <Item action='delete' type='Part CAD' where="[Part_CAD].related_id ='1111111111111'">
    <behavior>float</behavior>
    </Item>
    </AML>

    Here Related ID is ID of the CAD item

Children