ProductStructureAccess CATPLMPrdDeleteServices

Usage: you must use this class as is. You should never derive it.


public class CATPLMPrdDeleteServices

Class to delete Product References or Representation References directly in the database.


Method Index


o DeleteProductStructures(CATLISTP(CATIAdpPLMIdentificator)&)
Deletes a list of References directly in database.

Methods


o DeleteProductStructures
public static DeleteProductStructures( iPrdObjectsToDelete)
Deletes a list of References directly in database.

Role: A Reference in the input list is either a Product Reference or a Representation Reference.

A Product Reference can be deleted if it meets the following conditions:

A Representation Reference can be deleted if it is not instantiated in a Product Reference which is not in the set of References to delete.

Deleting a Representation Reference means its own deletion.

Deleting a Product Reference implies the following operations:

If any of the References in the set of Reference to delete can not be deleted, none of these References will be deleted.

Deleting References is a short transaction, no undo or rollback will be possible.

Parameters:
iPrdObjectsToDelete
The input list of Product References to delete in the database.
Returns:
the returned value.
  • S_OK: All References in the set of References to delete are successfully deleted in the database.
  • E_FAIL: A least one of the References in the set of References to delete can not be deleted in the database. In this case, no Product Reference is deleted.
  • E_INVALIDARG: The input list iPrdReferenceToDelete is empty or all of the provided elements in the input list are not Product References or Representation References.

This object is included in the file: CATPLMPrdDeleteServices.h
If needed, your Imakefile.mk should include the module: CATPrdAccessCAA

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.