Jump to content

how can we call dll created in .Net from Vlisp?


muthu123

Recommended Posts

After the DLL is loaded into AutoCAD ;

call methods attributed as 'CommandMethod' the same you call AutoCAD commands,

call methods attributed as 'LispFunction' the same as you call ordinary Lisp Functions

Link to comment
Share on other sites

After the DLL is loaded into AutoCAD ;

call methods attributed as 'CommandMethod' the same you call AutoCAD commands,

call methods attributed as 'LispFunction' the same as you call ordinary Lisp Functions

 

Can you explain briefly with some examples?

 

Regards,

Mtuhu

Link to comment
Share on other sites

First Load the DLL file

 

(defun-q S::STARTUP ( )
 (command
   "_NETLOAD" "C:\\Test\\Test-01.dll")
 (command
   "_NETLOAD" "C:\\Test\\Test-02.dll")
 )

 

Then call the function ordinary same as lisp function

For example

(function-01)

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...