All Categories Class Hierarchy This Category Next Indexes
CATDMUsrMethod
public class CATDMUsrMethod
Note:
Following convention is used for naming parameters: parameter names prefixed by:
To be used when Catia V5 UserExit needs to access VPM functionnality.
| public static int ActionFlowCheck( | const char* | iModificationFlag, |
| const char* | iUser) |
| public static Error AfterCommitUserAction( | ) |
| public static Error AfterPartIsImported( | const ObjID& | iObj) |
| public static void AfterRollbackUserAction( | ) |
| public static Error AfterWriteUserAction( | const ObjID& | iObj) |
| public static int AuthorizedCATIASave( | const ObjID& | iObj) |
| public static Error AuthorizedCATIAV5Save( | const ObjID& | iObj) |
| public static Error AuthorizedCheckIn( | const ObjID& | iObj) |
| public static Error AuthorizedCheckOut( | const ObjID& | iObj) |
| public static Error AuthorizedCopyInstance( | const int& | NbSelectedInstances, |
| ObjID* | iSelectedInstances) |
| public static Error AuthorizedCreate( | const ObjID& | iObj) |
| public static Error AuthorizedCreateZone( | const ObjID& | iObj) |
| public static Error AuthorizedCut( | const ObjID& | iLink) |
| public static Error AuthorizedCutInstance( | const int& | NbSelectedInstances, |
| ObjID* | iSelectedInstances) |
| public static Error AuthorizedDefineInstance( | const ObjID& | iRootObj, |
| const int& | iLevel, | |
| double* | iLinksId) |
| public static Error AuthorizedDefineInstance( | const int& | NbSelectedInstances, |
| ObjID* | iObj) |
| public static Error AuthorizedDelete( | const ObjID& | iObj) |
| public static Error AuthorizedDeleteZone( | const ObjID& | iObj) |
| public static Error AuthorizedDuplicate( | const ObjID& | iObj) |
| public static Error AuthorizedDuplicatedAssemblyLinks( | int* | ioNbObj, |
| ObjID** | ioObjs) |
| public static Error AuthorizedDuplicatedRepresentations( | int* | ioNbObj, |
| ObjID** | ioObjs) |
| public static Error AuthorizedEditInstance( | const int& | NbSelectedInstances, |
| ObjID* | iObj) |
| public static Error AuthorizedEffDefinition( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iLink, | |
| const int | iNbEffParam, | |
| EffParam* | iEffParamPtr) |
| public static Error AuthorizedEffModification( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iLink, | |
| const EffParam& | iOldEff, | |
| const EffParam& | iNewEff) |
| public static Error AuthorizedMMLAccept( | const ObjID& | iFrom, |
| const ObjID& | iTo) |
| public static Error AuthorizedModDelete( | const char* | iModification, |
| const char* | iUser) |
| public static Error AuthorizedModDemote( | const char* | iModification, |
| const char* | iUser) |
| public static Error AuthorizedModPromote( | const char* | iModification, |
| const char* | iUser) |
| public static Error AuthorizedModValidation( | const char* | iModification, |
| const char* | iUser, | |
| const char* | iValidationType, | |
| const int | iNbOptions, | |
| char** | iOptionList, | |
| const int | iRangeBot, | |
| const int | iRangeTop, | |
| const time_t | iDateBeg, | |
| const time_t | iDateEnd) |
| public static Error AuthorizedMove( | const ObjID& | iLink) |
| public static Error AuthorizedNewDocumentV5( | const ObjID* | iObj, |
| int& | oDefaultValue, | |
| int& | oEditable) |
| public static Error AuthorizedNewRevision( | const ObjID& | iObj) |
Note: used in BOTH revisioning mode
| public static Error AuthorizedNewVersion( | const ObjID& | iObj, |
| const int | iNewPartNumber) |
Note: used in BOTH revisioning mode
| public static Error AuthorizedPaste( | const ObjID& | iFather, |
| const ObjID& | iChild) |
| public static Error AuthorizedPasteInstance( | const int& | NbSelectedInstances, |
| ObjID* | iSelectedInstances) |
| public static Error AuthorizedPromotion( | const ObjID& | iObj, |
| const char* | iOldStatus, | |
| const char* | iNewStatus) |
| public static Error AuthorizedProposedEffModification( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const char* | iActionName, | |
| const int | iNbEffParam, | |
| EffParam* | iEffParamPtr) |
| public static Error AuthorizedQueryOnInstance( | const ObjID& | iInstance) |
| public static Error AuthorizedReassign( | const ObjID& | iObj, |
| const char[9] | iUser, | |
| const char[11] | iOrg, | |
| const char[11] | iSite) |
| public static Error AuthorizedReplace( | const ObjID& | iFather, |
| const ObjID& | iLink, | |
| const ObjID& | iChild, | |
| const ObjID& | iNewChild) |
| public static Error AuthorizedUpdate( | const ObjID& | iObj) |
| public static int BckModR( | const ObjID& | iObj, |
| const int | iNb, | |
| char** | iRType, | |
| int* | oNb, | |
| int** | oLnkOI, | |
| char*** | oRType) |
Example: iNb = 3 oNb = 2
iRType oLnkOI oRType
+----+ +----+ +----+
0| x |<-+ +-- 0| 2 |<---- 0| z* |
+----+ | | +----+ +----+
1| y | +--o-- 1| 0 |<---- 1| x* |
+----+ | +----+ +----+
2| z |<----+
+----+
| public static Error BeforeAddPartToQueue( | const ObjID& | iObj, |
| char* | ioTargetSite, | |
| char* | ioUser, | |
| char* | ioOrg, | |
| int& | ioDoTransfertToSite) |
| public static Error BeforeCreateUserAction( | const char* const | iCaenv, |
| const char* const | iObject) |
| public static Error BeforePartIsImported( | const ObjID& | iObj, |
| int& | oAbortImport) |
| public static Error CheckLFBeforeWrite( | const char* const | iCaenv, |
| const char* const | iCatab, | |
| const int | iSource, | |
| char** | ioPath, | |
| ObjID* | ioObj, | |
| char** | ioRepository) |
| public static void CloseGraph( | const int | iGraphNum, |
| const ObjID& | iPart) |
| public static Error CommitModeControl( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| int& | oCommitModeToDisable) |
exple of use:
oCommitModeToDisable = COMMIT_CFG_PARAM | COMMIT_EXISTING_EFF;
(to disable these two modes)
| public static Error ComputeUserValuesBeforeWrite( | const int | iUpdate, |
| const char* const | iCaenv, | |
| const char* const | iCatab, | |
| int* | iNbAttPart, | |
| int* | iNbAttObj, | |
| char*** | ioAttNames, | |
| char*** | ioAttVals) |
This method is called before checking if an object with the input values
already exists, and, thus before ComputeValuesBeforeWrite().
As opposed to the latter, this method shall only modify external attributes,
that is, all but those prefixed by "$" and "C_" (except for C_NICKNAME and
C_LAST_REPOSITORY for representations).
For example, it is possible to hide an "S_" (but mandatory) attribute from
the user in the insert panel, and fill it here.
| public static Error ComputeValuesBeforeWrite( | const int | iUpdate, |
| const char* const | iCaenv, | |
| const char* const | iCatab, | |
| int* | iNbAttPart, | |
| int* | iNbAttObj, | |
| char*** | ioAttNames, | |
| char*** | ioAttVals) |
| public static Error ConfigHandlerControl( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iProduct, | |
| const char* | iCHName, | |
| const CHAction | iAction) |
| public static void ConfigHandlerVisibilityControl( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iProduct, | |
| const char* | iCHName, | |
| int& | oAuthorizedVisibility, | |
| int& | oDefaultVisibility) |
exple of use:
oAuthorizedVisibility = CH_PRIVATE | CH_DATAGROUP;
(to authorized these two values)
exple of use: oDefaultVisibility = CH_PRIVATE;
| public static Error DefaultModValidation( | const char* | iModif, |
| char** | oType, | |
| int& | oOptListSize, | |
| char*** | oOptList, | |
| int& | oRangeBot, | |
| int& | oRangeTop, | |
| time_t& | oDateBeg, | |
| time_t& | oDateEnd) |
| public static Error DictionaryControl( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iProduct, | |
| const char* | iOptionName, | |
| const char* | iCategoryName, | |
| const char* | iCategoryOwner, | |
| const char* | iCategoryOrg, | |
| const DicoAction | iAction) |
| public static Error DictionaryRulesControl( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iProduct, | |
| const char* | iRuleId, | |
| const char* | iRuleOwner, | |
| const char* | iRuleOrg, | |
| const DicoRulesAction | iAction) |
| public static Error DuplicateLink( | const ObjID& | iOld, |
| const ObjID& | iNew) |
| public static int EndExpand( | int | iToken) |
| public static void ExecuteCommand( | int& | ioLng, |
| char*& | ioMsg) |
To be used when Catia V5 UserExit needs to access VPM functionnality. The Catia V5 command has to be defined in CATBatchServices::ExecuteOnServer The command is then sent to VPM where "ExecuteCommand" is called and the result sent back to CATIA V5
| public static Error ExecuteUsrMethod( | const char* | iMethodName, |
| const int& | iNbSelectedInstances, | |
| ObjID* | iSelectedObjects) |
| public static void ExitVPMConnectedSession( | ) |
| public static void ExpandContextRoot( | CATVPMNode* | iRoot, |
| const ObjID& | iObj) |
| public static void ExpandSelections( | CATVPMNode* | iRoot, |
| const CATLISTP(CATVPMNode)& | iSelections, | |
| const ObjID& | iObj) |
| public static Error FormatConfigHandlerId( | const ObjID& | iObj, |
| const char* | iCHUserId, | |
| char** | oCHNewId) |
| public static char* GetBGColorForPrint( | const char* | iCatab, |
| const char* | iAttribute, | |
| const char* | iValue) |
| public static int GetCGRPath( | const ObjID& | iObj, |
| char*& | oCgrPath) |
| public static void GetConfNameHistory( | const char[9] | iUser, |
| const char[11] | iOrg, | |
| char*** | oHistory, | |
| int* | oHistSize) |
If method does not provide a history list (oHistSize=0), the caller method will
use default history.
Allocation of oHistory's elements has to be done in function
GetConfNameHistory.
Desallocation is the responsability of VPM.
| public static void GetInputListOfValues( | const char* | iCatab, | |
| const char* | iAttribute, | ||
| int* | oAuthorized | =0, | |
| int* | oNbValues | =0, | |
| char*** | oValues | =0) |
This user-exit is called several times. At each call, you only have to fill the output parameters which are not NULL.
| public static Error GetLastSuccessfullExportTimeStamp( | const ObjID& | iObj, |
| const char* | iTargetSite, | |
| char* | oLastTS) |
| public static void GetNewRevisionListOfValues( | const ObjID& | iObj, |
| const char* | iMaturity, | |
| const char* | iLastRev, | |
| const char* | iCurRev, | |
| int* | oNbRevValues, | |
| char*** | oRevValues, | |
| int* | oAuthorized) |
If number of values is greater than 0, the values will be displayed in a list inside input panel.
Note: used in NEW revisioning mode
| public static void GetNewVersionListOfValues( | const ObjID& | iObj, |
| const char* | iMaturity, | |
| const char* | iLastVer, | |
| const char* | iCurVer, | |
| int* | oNbVerValues, | |
| char*** | oVerValues, | |
| int* | oIsAuthorized) |
If number of values is greater than 0, the values will be displayed in a list inside input panel.
Note: used in NEW revisioning mode
| public static int GetReadOnlyStatus( | const ObjID* | iObj, |
| int& | oCheckVPMReadOnly) |
| public static Error GetReplaceCustomParts( | const ObjID& | iFather, |
| const ObjID& | iLink, | |
| const ObjID& | iChild, | |
| int& | oNbCandidateChild, | |
| ObjID*& | oCandidateChildren) |
If provided, the output parts will be listed in VPM so the user can choose with which one the initial part should be replaced with.
| public static Error GetRevisions( | const char* | iType, |
| const ObjID& | iInitialObject, | |
| int& | oSearchedPerformed, | |
| int& | oNbRevisions, | |
| ObjID*& | oRevisions) |
| public static int HasCGR( | const ObjID& | iObj) |
| public static Error IsAValidDuplicatedRevision( | const ObjID& | iObj, |
| const char* | iPrevRev, | |
| const char* | iNewRev) |
Note: used in NEW revisioning mode when declarative CATCDMA.VPM.VERSION.SELECTREVISION.INPUT is set to TRUE
| public static Error IsAValidFlagForCommit( | const char* | iModificationFlag, |
| const int | iNbModifications, | |
| int* | iTypeOfModifications, | |
| ObjID* | iAddedLinks, | |
| ObjID* | iRemovedLinks) |
| public static Error IsAValidNewRevision( | const ObjID& | iObj, |
| const char* | iMaturity, | |
| const char* | iPrevRev, | |
| const char* | iNewRev, | |
| const RevVerAction | iAction) |
Note: used in NEW revisioning mode
| public static Error IsAValidNewVersion( | const ObjID& | iObj, |
| const char* | iMaturity, | |
| const char* | iPrevVer, | |
| const char* | iNewVer, | |
| const RevVerAction | iAction) |
Note: used in NEW revisioning mode
| public static Error IsAValidParamListForCommit( | const int | iNbParam, |
| EffParam* | iParamPtr, | |
| const int | iNbModifications, | |
| int* | iTypeOfModifications, | |
| ObjID* | iAddedLinks, | |
| ObjID* | iRemovedLinks) |
| public static Error IsAValidRevisionVersion( | const ObjID& | iObj, |
| const char[4] | iVersion, | |
| const char[4] | iOldVerRev, | |
| const char[4] | iNewVerRev) |
Note: used in OLD revisioning mode
| public static Error IsExistingParamValidForCommit( | const int | iNbModifications, |
| int* | iTypeOfModifications, | |
| ObjID* | iAddedLinks, | |
| ObjID* | iRemovedLinks) |
| public static int IsMassiveDuplicateAllowed( | const ObjID& | iObj, |
| int | iTypeOfCheck) |
| public static Error MilestonesControl( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iProduct, | |
| const char* | iProgramName, | |
| const char* | iMilestoneName, | |
| const int | iMilestoneType, | |
| const MilestonesAction | iAction) |
| public static int ModCreateOwner( | const char* | iModification, |
| const char* | iUser) |
| public static Error OpenGraph( | const int | iGraphNum, |
| const ObjID& | iPart) |
| public static Error OpenObject( | const char* | iViewer, |
| const int | iNbObj, | |
| ObjID* | iObj) |
| public static Error OpenPSNWithUsrMethod( | const char* | iMethodName, |
| const int& | iNbSelectedInstances, | |
| int* | iDepthArray, | |
| PartAsmID** | iObjArray, | |
| double** | iComputedXmatArray) |
| public static Error OptionListToDisplay( | const char* | iUser, |
| const char* | iRole, | |
| const char* | iOrg, | |
| const ObjID& | iObj, | |
| const int | iNbOpt, | |
| int& | oNbOpt, | |
| char*** | ioOptNameList, | |
| char*** | ioOptTypeList, | |
| char*** | ioOptDescList) |
| public static void PSNCopyCB( | const CATLISTP(CATVPMNode)& | iObjs) |
| public static void PSNCutCB( | const CATLISTP(CATVPMNode)& | iObjs) |
| public static void PSNPasteCB( | CATVPMNode* | iObj, |
| SdaiAppInstance* | iLink, | |
| SdaiAppInstance* | iPaste) |
| public static void Replace( | const ObjID& | iOldLink, |
| const ObjID& | iNewLink) |
| public static void SetVolumeFilter( | const int | iGraphNum, |
| const ObjID& | iPart, | |
| const int | iMode, | |
| const int | iType, | |
| double[6] | iBbx) |
| public static int StartExpand( | int& | oToken) |
| public static Error SuccessfullyCommitInGraph( | const char* | iModificationFlag, |
| const int | iNbModifications, | |
| int* | iTypeOfModifications, | |
| ObjID* | iAddedLinks, | |
| ObjID* | iRemovedLinks) |
| public static void SuccessfullyRollBackInGraph( | ) |
| public static void UnixPathToWinPath( | const char* | iUnixPath, |
| int | iMode, | |
| char** | oWinPath) |
| public static Error UpdateConfigViewValuesForSecurity( | const char* const | iCaenv, |
| const char* const | iCatab, | |
| int* | ioNbAtt, | |
| char*** | ioAttNames, | |
| char*** | ioAttVals, | |
| int* | ioModified) |
| public static Error UpdateObject( | const ObjID& | iObj, |
| int* | ioNbAtt, | |
| char*** | ioAttNames, | |
| char*** | ioAttVals) |
Attributes given in the list are the ones that were valuated in the update panel. If you wish to valuate a "hidden" attribute, you will have to reallocate AttNames and AttVals and add the attribute and its value.
| public static void WinPathToUnixPath( | const char* | iWinPath, |
| int | iMode, | |
| char** | oUnixPath) |
Copyright © 2003, Dassault Systèmes. All rights reserved.