CATPLMFmaModelerInterfaces Interface CATIFmaTypeReplace
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIFmaTypeReplace
Interface to Give the capability to replace the reference Fastener type of an existing Spot Assembly Fastener by another.
It is important to note that only the modification of the primary / secondary process type is possible
Role: Components that implement
CATIFmaTypeReplace are Fastener Reference Products
Method Index
- o
ReplaceReferenceFastenerType(CATUnicodeString&,CATUnicodeString&,CATUnicodeString&,CATUnicodeString&,CATUnicodeString&)
- Replaces the associated reference Fastener Type to another, by specifying a new secondary feature type (can be empty string), primary process type and/or new secondary process type.
Methods
o ReplaceReferenceFastenerType
public virtual ReplaceReferenceFastenerType( | const | iNewFTyp2, |
| const | iNewPTyp1, |
| const | iNewPTyp2, |
| const | iCatalogID, |
| const | iClientID) |
-
Replaces the associated reference Fastener Type to another, by specifying a new secondary feature type (can be empty string), primary process type and/or new secondary process type.
This service manages:
- The update of the Fastener type descriptor attribute.
- The update of the Fastener attributes by:
- Removing the unnecessary attributes (the attribute was applicable for the previous reference fastener type, not for the new one).
- Adding if necessary the new attributes and set them to the default values (an attribute was not applicable for the previous reference fastener type, but is applicable for the new one).
- Changing the attribute value if necessary (the attribute value was valid for the previous reference fastener type, not for the new one).
- The removal of the previous components
- The update of the CAA feature if necessary by:
- removing the old CAA feature if existing (that was created by the CAA application for the previous reference fastener type)
- Creating a new CAA fastener feature if necessary
Note that this method doesn’t modify the fastener joined parts.
- Parameters:
-
- iNewFTyp2
- the new secondary feature type (can be an empty string “”).
- iNewPTyp1
- the new primary process type.
- iNewPTyp2
- the new secondary process type.
- iCatalogID
- the catalog name containing the iFTyp2 CAA feature.
- iClientID
- the client id related to catalog iCatalogID.
- Returns:
-
- S_OK
- the new reference Fastener Type of the Spot Assembly fastener has been successfully replaced.
- S_FALSE
- if new Fastener Type Descriptor is the same as an old one.
- E_FAIL
- otherwise.
This object is included in the file: CATIFmaTypeReplace.h
If needed, your Imakefile.mk should include the module: CATPLMFmaModelerInterfaces
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.