.NET

Reply
Distinguished Contributor
djonio
Posts: 105
Registered: ‎12-29-2005
Message 1 of 2 (116 Views)

load/register Lisp functions

116 Views, 1 Replies
06-08-2007 03:31 AM
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
*Tony Tanzillo
Message 2 of 2 (116 Views)

Re: load/register Lisp functions

06-08-2007 08:48 PM in reply to: djonio
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
Announcements
Autodesk Alert | We are currently working on restoring Previous Version License request access in the Autodesk Subscription Center. If you are a subscription customer and would like to request a Previous Version License, please use this link as a temporary workaround. We apologize for the inconvenience and thank you for your patience.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.