All Frameworks Class Hierarchy This Framework Previous Next Indexes
VPMDesktopObjects Interface CATIAVPMVDAValidateAttributeChg
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---System.CATBaseDispatch
|
+---System.CATIABase
|
+---VPMDesktopObjects.CATIAVPMVDACommand
|
+---CATIAVPMVDAValidateAttributeChg
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIAVPMVDAValidateAttributeChg
Interface to the Generic Component Import utility.
Role:Defines the interfaces to methods to create
new Generic Components from a template Generic Component.
Method Index
- o
get_Result(void)
- This method describes whether or not the requested change(s) is(are) valid.
- o
put_BObject(ENOVIABusinessObject_var&)
- This method defines the business object which contains a part master
on which the requested attribute change will be validated.
- o
put_ControlledByAttrValue(CORBAAny&)
- This method sets the value of V511_ControlledBy to be validated.
- o
put_PartTypeAttrValue(CORBAAny&)
- This method sets the value of V511_PartType to be validated.
Methods
o get_Result
-
This method describes whether or not the requested change(s) is(are) valid.
Ex: If the change is from assembly to detail, but the assembly has
existing children, then this will return E_FAIL. If the validation
is good, then it will return S_OK. If both the V511_ControlledBy and the
V511_PartType values have changed, the validation will first be done on the
V511_ControlledBy change. If that passes the validation, then the validation
will be done on the V511_PartType change.
- Returns:
- S_OK in case of valid value change, E_FAIL in case of invalid value change.
o put_BObject
public virtual HRESULT __stdcall put_BObject( | const ENOVIABusinessObject_var& | hBobject)=0 |
-
This method defines the business object which contains a part master
on which the requested attribute change will be validated. So valid
business objects would be part instance, part reference, constituent
part, etc., which contain a part master.
- Parameters:
-
- hBobject
- The business object containing part master.
- Returns:
- S_OK in case of success, E_FAIL in case of error.
o put_ControlledByAttrValue
-
This method sets the value of V511_ControlledBy to be validated. If this method is not
used, then the current value of V511_ControlledBy will be used in the validation.
The command will determine whether or not the input value is a change from the current value.
- Parameters:
-
- value
- The value of V511_ControlledBy to be validated.
- Returns:
- S_OK in case of success, E_FAIL in case of error.
o put_PartTypeAttrValue
-
This method sets the value of V511_PartType to be validated. If this method is not
used, then the current value of V511_PartType will be used in the validation.
The command will determine whether or not the input value is a change from the current value.
- Parameters:
-
- value
- The value of V511_PartType to be validated.
- Returns:
- S_OK in case of success, E_FAIL in case of error.
This object is included in the file: CATIAVPMVDAValidateAttributeChg.h
If needed, your Imakefile.mk should include the module: VDO0Commands