AutoCAD 2012 帮助 | ![]() |
Commands and AutoLISP® functions can be defined with the AutoCAD .NET API through the use of two attributes: CommandMethod and LispFunction. You place one of the two attributes before the method that should be called when the command or AutoLISP function is executed in AutoCAD.
Methods used for commands should not be defined with arguments. However, a method used to define an AutoLISP function should be defined with a single argument of the ResultBuffer object type.
Basics of the AutoCAD .NET API | ![]() | |
Understand the AutoCAD Object Hierarchy | ||
Access the Object Hierarchy | ||
Collection Objects | ||
Understand Properties and Methods | ||
Out-of-Process versus In-Process | ||
Define Commands and AutoLISP Functions | ||
Command Definition | ||
AutoLISP Function Definition |