.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

load/register Lisp functions

1 REPLY 1
Reply
Message 1 of 2
djonio
328 Views, 1 Reply

load/register Lisp functions

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
1 REPLY 1
Message 2 of 2
Anonymous
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost