CommandMethod args

CommandMethod args

Anonymous
Not applicable
514 Views
2 Replies
Message 1 of 3

CommandMethod args

Anonymous
Not applicable
Oops! Apologies for previous post. Just set up Outlook Express again after
corrupt profile and typed group name instead of mine.

How can I pass arguments to this? I want to write something that
manipulates a layer, but I don't want top hard code the layer name

Regards

Dave Preston
0 Likes
515 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Commands defined using the CommandMethod
attribute can be fed input from menu macros or
the LISP (command) function. You just prompt
for the input using one of the editor's GetXxxxx()
methods, and any pending command input will
be fed to the input prompt as the response.

Or, you can use the LispFunction attribute rather
than CommandMethod to expose functions that
you can call from LISP and pass arguments to.

See the sample code showing how to do that.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Dave Preston" wrote in message news:[email protected]...
Oops! Apologies for previous post. Just set up Outlook Express again after
corrupt profile and typed group name instead of mine.

How can I pass arguments to this? I want to write something that
manipulates a layer, but I don't want top hard code the layer name

Regards

Dave Preston
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Tony, works a treat

Dave Preston


"Tony Tanzillo" wrote in message
news:[email protected]...
Commands defined using the CommandMethod
attribute can be fed input from menu macros or
the LISP (command) function. You just prompt
for the input using one of the editor's GetXxxxx()
methods, and any pending command input will
be fed to the input prompt as the response.

Or, you can use the LispFunction attribute rather
than CommandMethod to expose functions that
you can call from LISP and pass arguments to.

See the sample code showing how to do that.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Dave Preston" wrote in message
news:[email protected]...
Oops! Apologies for previous post. Just set up Outlook Express again after
corrupt profile and typed group name instead of mine.

How can I pass arguments to this? I want to write something that
manipulates a layer, but I don't want top hard code the layer name

Regards

Dave Preston
0 Likes