Jump to content

.Net function


giskumar

Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

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

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