Message 1 of 2
CommandFlags in LispFunction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I'm using LispFunction to enable passing parameters. but when I tried to work with multiple documents (close one and open other one) inside the LispFunction, AutoCAD throws exception document is busy.
In CommandMethod I was using CommandFlags.Session to fix that. but i couldn't find an alternative in LispFunction.
[LispFunction("PRINTDWGS")]
public static void PrintDWGs(ResultBuffer rbArgs)
{
Application.DocumentManager.CloseAll();
Document doc = Application.DocumentManager.Open("C:\\test.dwg");
}