Download DXP Panels Reference
Transcript
Server Process Reference
Begin
Client.SendMessage('WorkspaceManager:OpenObject','OpenMode=NewFromTemplate |
ObjectKind=Project',1024,Nil);
End;
AddColorParameter
Declaration
Procedure AddColorParameter(Const Name: String; Red: Integer; Green: Integer; Blue: Integer);
Description
This procedure adds a color value parameter to the parameter buffer. This procedure is used to define a color for use by a
process that requires a color parameter. The Color is a value where value = RedVal + 256*(GreenVal + 256*BlueVal) and Name
is the name representing this color value.
AddIntegerParameter
Declaration
Procedure AddIntegerParameter(Const Name: String; Value: Integer);
Description
The AddIntegerParameter procedure defines a parameter with an Integer data type to the parameter buffer for use by a server /
Process.
Example
Begin
ResetParameters;
AddStringParameter('ObjectKind','Netlist');
AddIntegerParameter('Index',5);
AddStringParameter('ReturnGeneratedDocuments', 'True');
RunProcess('WorkspaceManager:GenerateReport');
End;
AddLongIntParameter
Declaration
Procedure AddLongIntParameter(Const Name: String; Value: LongInt);
Description
The AddLongIntParameter procedure defines a parameter with a longint data type to the parameter buffer for use by a server /
Process.
Example
Begin
ResetParameters;
AddLongIntParameter('LongIntValue',5);
// code here
End;
AddSingleParameter
Declaration
Procedure AddSingleParameter(Const Name: String; Value: Single);
Description
The AddLongIntParameter procedure defines a parameter with a single data type to the parameter buffer for use by a server
Process.
Example
TR0122 (v1.5) April 21, 2008
3