Prod.: Engine, ver.: 6011, ID: 60000433, Wish : New ExecuteCommand method for vdraw.ocx control to run a user custom command.

Wish : New ExecuteCommand method for vdraw.ocx control to run a user custom command.

Article60000433
TypeWish
ProductEngine
Version6011
Date Added2/28/2008
FixedYes [3/4/2008]
Submitted bystavros meimaroglou
Keywords

Subject

New ExecuteCommand method for vdraw.ocx control to run a user custom command.

Summary


New ExecuteCommand method for vdraw.ocx control to run a user custom command.


Solution


In version 6012 a new method ExecuteCommandEx was added in vdraw Wrapper control(vdraw.ocx)

example:

ExecuteCommandEx("Line,l,VectorDraw.Professional.dll,VectorDraw.Professional.ActionUtilities.vdCommandAction,LineEx")

This command will run the default CmdLine command of VectorDraw.

The syntax of string command is following (Same as in Commands.txt) :

"Main command name,optional command line call,dll name where the command is implemented,namespace of the class where the method belong,static function name of the method"

Note:

  The dll must be in .NET manage class library.

The static function must have the following form: public static void Methodname(VectorDraw.Professional.vdObjects.vdDocument document)