CATMecModExtendItf Interface CATIMmiMechanicalCCP

Usage: you can freely reimplement this interface.


interface CATIMmiMechanicalCCP

Interface for copy, paste, delete, drag and drop operations.
Role: This interface allows users to know if a feature:

It is the extended version of CATIMechanicalCCP


Method Index


o CanBeCopied()
Returns if a feature can be copied in "As specified in Part document" format.
o CanBeDeleted(CATLISTV(CATBaseUnknown_var)&)
Returns if a feature can be deleted.
o GetAnchorPoint()
Returns the anchor point.
o GetReferenceNormal()
Returns the reference normal.
o GiveMeYourFavoriteSpecifications()
Returns the main specifications.
o IsElementValidForPaste(CATPathElement*)
Returns if an element is valid for a paste operation on a selected element.

Methods


o CanBeCopied
public virtual CanBeCopied()
Returns if a feature can be copied in "As specified in Part document" format.
Returns:
An integer value.
Legal values:
  • 1 the current feature can be copied.
  • 0 the current feature can not be copied.
o CanBeDeleted
public virtual CanBeDeleted( iList)
Returns if a feature can be deleted.
Parameters:
iList
The features that define the deletion context.
Returns:
An integer value.
Legal values:
  • 1 the current feature can be deleted.
  • 0 the current feature can not be deleted.
o GetAnchorPoint
public virtual GetAnchorPoint()
Returns the anchor point.
See also:
o GetReferenceNormal
public virtual GetReferenceNormal()
Returns the reference normal.
See also:
o GiveMeYourFavoriteSpecifications
public virtual GiveMeYourFavoriteSpecifications()
Returns the main specifications.
o IsElementValidForPaste
public virtual IsElementValidForPaste( iPath)
Returns if an element is valid for a paste operation on a selected element.
Role: This method is integrated to the Drag and Drop engine but not to the Copy Paste engine.
Parameters:
iPath
Path of the selected element.
Returns:
An integer value.
Legal values:
  • 1 the current feature is valid for a paste operation on the selected element.
  • 0 the current feature is not valid for a paste operation on the selected element.

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

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