Command methods can't take arguments, but LispFunctions can.
You can also script a Command Method with the LISP (command) function, if
the command method requests input from the user.
See the LispFunction attribute in the docs.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6271836@discussion.autodesk.com...
Hi All!
Somehow I would like to create a .NET module in which my autocad commands
accept arguments. for example:
//Simple command
[CommandMethod("findblocks")]
public void FindBlocks()
{
//get all the blocks
}
//Argument accept command
[CommandMethod("findblock" & "agruments")]
public void FindBlock(string objHandle)
{
//get the block which Handle is objHandle
}
can somebody help how can I do the second CommandMethod?
Thanks,
G.