CommandMethod with custom params

CommandMethod with custom params

Anonymous
Not applicable
316 Views
0 Replies
Message 1 of 1

CommandMethod with custom params

Anonymous
Not applicable
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.
0 Likes
317 Views
0 Replies
Replies (0)