giskumar Posted December 4, 2010 Share Posted December 4, 2010 Hi all, I am new to dot net. I would make a dll with some globle functions which i can access through the lisp. For example i want to make a function which returns all vertices in polyline in list format to assign a lisp variable. Can any one guide me how can i make this possible. Thanks, Kumar. Quote Link to comment Share on other sites More sharing options...
giskumar Posted December 6, 2010 Author Share Posted December 6, 2010 Hi all, after some research i found that a solution to return variables in form of list from dll command. This is availabel from the version of Autocad 2007. Follow this link: http://through-the-interface.typepad.com/through_the_interface/2006/07/ FYI Thanks, Kumar. Quote Link to comment Share on other sites More sharing options...
Kelly Dwayne Posted January 18, 2011 Share Posted January 18, 2011 Hello Mr.giskumar! For this Autocad edition will be the problem because of unsupporting errors and moreover,just install proper edition to get the dll command. _____________ .NET Application Development Quote Link to comment Share on other sites More sharing options...
Tyke Posted January 18, 2011 Share Posted January 18, 2011 Why on earth do you want to call a DLL from LISP? Just do it all in lisp, it makes much more sense. DLLs are version sensitive LISP is not. In my opinion you should do it either all in .NET or all in LISP Quote Link to comment Share on other sites More sharing options...
BlackBox Posted January 18, 2011 Share Posted January 18, 2011 ... i want to make a function which returns all vertices in polyline in list format to assign a lisp variable. Just do it all in lisp, it makes much more sense. DLLs are version sensitive LISP is not. Example: (defun c:FOO (/ e) (vl-load-com) (if (and (setq e (car (entsel "\n >> Select Polyline to List Vertices: "))) (wcmatch (cdr (assoc 0 (entget e))) "*POLYLINE")) (vlax-get (vlax-ename->vla-object e) 'coordinates))) Modify for your use. 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.