.NET

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

load/register Lisp functions

115 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 (115 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
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

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