.NET

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

load/register Lisp functions

120 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 (120 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!