Loading a Lisp file with VB.net

Loading a Lisp file with VB.net

GeeHaa
Collaborator Collaborator
7,958 Views
5 Replies
Message 1 of 6

Loading a Lisp file with VB.net

GeeHaa
Collaborator
Collaborator

Hi,

 

Is there a way to Load a lisp file from VB.net? All  I want to do is load it so its available at the command Prompt.

 

Thanks in Advance

0 Likes
7,959 Views
5 Replies
Replies (5)
Message 2 of 6

BlackBox_
Advisor
Advisor

Have you tried SendStringToExecute() Method?


"How we think determines what we do, and what we do determines what we get."

Sincpac C3D ~ Autodesk Exchange Apps

0 Likes
Message 3 of 6

GeeHaa
Collaborator
Collaborator

I only will do that as a last resort.

 

I tried

Autodesk.AutoCAD.Internal.Utils.RegisterLispCommand(LispCommandName, LispFilename)

 

But I get an eKeyNotFound error. I can't find any documentation about this method so I'm not sure what it does.

 

Thanks

 

G

0 Likes
Message 4 of 6

Virupaksha_aithal
Autodesk Support
Autodesk Support

It is better to avoid using any internal API, in this case RegisterLispCommand, when an alternative method (SendStringToExecute) is available. Internal methods will not have any documentation 



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 6

ebikoba
Explorer
Explorer

How do you use the SendStringToExecute? I need an example please for loading a lisp routine.

0 Likes
Message 6 of 6

Virupaksha_aithal
Autodesk Support
Autodesk Support

 

Hi,

 

Please refer https://forums.autodesk.com/t5/net/can-you-do-an-appload-from-a-c-program/td-p/5810305 

 

Thanks

 

 



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes