Jump to content

VB to autoload lisp


Andrew1979

Recommended Posts

I am new to Visual Basic but what I want to do is set a VB application in the windows registry applications folder to run a lisp routine when a command is invoked.

How do I write VB code to load a lisp routine?

Thanks

 

 

Or would I have to do it in C++ as an arx file? If so, how do I do that?

Link to comment
Share on other sites

FWIW -

 

You don't need .NET code for this; you can AUTOLOAD via AcadDoc.lsp, or use the new Autoloader mechanism (see the link in my signature).

 

However, to answer your question, consider the Application.Invoke() Method, which is a wrapper for acedInvoke().

 

Cheers

Link to comment
Share on other sites

thanks for that. The autoloader is a great way to install applications, shame it can only be used with autocad 2012 +

Link to comment
Share on other sites

You're welcome; I'm happy to help.

 

Autoloader isn't without its issues, especially in the context of AutoCAD's new Security protocol (as I've described elsewhere), but each is good at what they do individually as a generalization.

 

Cheers

Link to comment
Share on other sites

Autoload has been around for years using Acad.lsp to preload lisps if thats what your asking way before 2012.

 

ThisDrawing.SendCommand "(load " & """placesdxf""" & ")" & vbCr
ThisDrawing.SendCommand "placesdxf" & vbCr

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...