Message 1 of 1
CommandMethod with custom params

Not applicable
10-15-2009
04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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.