Andrew1979 Posted May 7, 2014 Share Posted May 7, 2014 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? Quote Link to comment Share on other sites More sharing options...
BlackBox Posted May 7, 2014 Share Posted May 7, 2014 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 Quote Link to comment Share on other sites More sharing options...
Andrew1979 Posted May 7, 2014 Author Share Posted May 7, 2014 thanks for that. The autoloader is a great way to install applications, shame it can only be used with autocad 2012 + Quote Link to comment Share on other sites More sharing options...
BlackBox Posted May 8, 2014 Share Posted May 8, 2014 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 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted May 8, 2014 Share Posted May 8, 2014 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.