Write .LSP file and load it.
There's no way to do that in .NET, but I'm at
a loss to understand why you would want to,
to start with.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5620450@discussion.autodesk.com...
Hello,
using Map3d 2007, Windows platform ....
As part of a popup menu creation routine I would like to load/register some Lisp functions (examples:
static string[] cmds =
{(@"
(defun C:MDADTOOLS ()
(Command ""FILEDIA"" ""0"")
(Command ""_.NETLOAD"" ""C:\\Program Files\\MDAD\\Map3d2007\\MDADTOOLS.dll"" )
(Command ""FILEDIA"" ""1"")
(Command ""MDADTOOLBAR"")
)"
),(@"
(defun C:MDADLL ()
(Command ""FILEDIA"" ""0"")
(Command ""_.NETLOAD"" ""C:\\Program Files\\MDAD\\Map3d2007\\MDADLL.dll"" )
(Command ""FILEDIA"" ""1"")
(Command ""MDAD_LL"")
)")};
Is this possible? How?
They are currently being loaded by acad2007.lsp at startup.
No problems with the menu creation and cui build/load functions. Again, how do I load/register these functions?
thanks
dennis