SOLIDWORKS PDM Professional API Help Send Feedback
SetCtrlData Method (IEdmCardViewCallback6)
See Also 
EPDM.Interop.epdm Namespace > IEdmCardViewCallback6 Interface : SetCtrlData Method (IEdmCardViewCallback6)


lCardWnd
Window handle of the card
lCardID
ID of the card (see Remarks)
lControlID
ID of the control for which to get the value (see Remarks)
lVariableID
ID of the variable used by this control (see Remarks)
bsVariableName
Name of the variable used by this control
poView
IEdmCardView5
poValue
Control variable data to save
Stores the control's variable data when a card is saved.

Syntax

Visual Basic 
Sub SetCtrlData( _
   ByVal lCardWnd As System.Integer, _
   ByVal lCardID As System.Integer, _
   ByVal lControlID As System.Integer, _
   ByVal lVariableID As System.Integer, _
   ByVal bsVariableName As System.String, _
   ByVal poView As IEdmCardView5, _
   ByRef poValue As System.Object _
) 
C# 
void SetCtrlData( 
   System.int lCardWnd,
   System.int lCardID,
   System.int lControlID,
   System.int lVariableID,
   System.string bsVariableName,
   IEdmCardView5 poView,
   ref System.object poValue
)
C++/CLI 
void SetCtrlData( 
&   System.int lCardWnd,
&   System.int lCardID,
&   System.int lControlID,
&   System.int lVariableID,
&   System.String^ bsVariableName,
&   IEdmCardView5^ poView,
&   System.Object^% poValue
) 

Parameters

lCardWnd
Window handle of the card
lCardID
ID of the card (see Remarks)
lControlID
ID of the control for which to get the value (see Remarks)
lVariableID
ID of the variable used by this control (see Remarks)
bsVariableName
Name of the variable used by this control
poView
IEdmCardView5
poValue
Control variable data to save

Example

See the IEdmCardViewCallback6 examples.

Remarks

The framework calls this method once per control when a card created with IEdmVault10::CreateCardViewEx2 is saved.

Use... In a call to IEdmVault5::GetObject with eType = ... To obtain...
ICardID  EdmObjectType.EdmObject_Card IEdmCard5
IControlID  EdmObjectType.EdmObject_CardControl IEdmCardControl5
IVariableID  EdmObjectType.EdmObject_Variable IEdmVariable5

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: One of the arguments is invalid.
 

See Also

Availability

SOLIDWORKS PDM Professional Version 6.0