Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIMmiInternalCopyWithLinkEdition
Interface used to change the reference of an internal copy with link.
Role: This interface is used to change the reference of objects created either by copy/paste as result with link inside a part
or by using with the following options :
Internal copies made without a link do not answer to this interface.
The source of the copy is called the reference feature of the internal copy.
The reference of an internal copy with link can only be changed on solid internal copies for now.
This interface has two main usages :
Sub elements of the geometry of an internal copy may be referenced by other features. When the reference of an internal copy is changed, its geometry also changes.
The features that referenced sub elements of the old copied geometry need to be replugged on sub elements of the new copied geometry via a replace operation.
In order to do this, user intervention is needed to specify on which new sub elements the features need to be rerouted. This has to be done interactively through the Replace Viewer.
see to retrieve the reference feature.
The main behaviours of an internal copy with link are the following :
public virtual SetSelectedElement( | const | ihReferenceFeature, |
const | iAuthorizeManualReplugging) |
TRUE
means the Replace Viewer is launched if user intervention is needed to complete
the Replace operation.FALSE
means the Replace Viewer is never launched even if user intervention is needed to complete
the Replace operation.
S_OK
the operation went through successfully according to the iAuthorizeManualReplugging argument.
This garantees that the internal copy has changed reference, but does not garantee that the features that
take the internal copy as import will not have update errors.
Update errors can occur if manual reroute was necessary but either no Replace Viewer was wanted or
Replace Viewer was wanted, but manually reroute was not performed correctly by the user.
E_FAIL
if the operation failed or if the internal copy with link is frozen.
It is not possible to change the reference of a frozen internal copy with link. The internal copy must
be unfrozen before this method can be called.
E_NOTIMPLEMENTED
if the internal copy is not a solid feature.
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.