.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help Needed - Lisp to VB.Net

3 REPLIES 3
Reply
Message 1 of 4
kas724
1080 Views, 3 Replies

Help Needed - Lisp to VB.Net

(setq x_nent nil)
    (setvar "osmode" 512)
    (setq x_pnt (getpoint "\nSelect APN or <exit>: "))
    (setvar "osmode" 0)
    (if (/= x_pnt nil)(setq x_nent (nentselp x_pnt))); get APN value from xref

 

Can you please convert the above lisp code to vb.net code?

3 REPLIES 3
Message 2 of 4
Jeffrey_H
in reply to: kas724

If you will convert that to C# so I can understand it.

You can also find your answers @ TheSwamp
Message 3 of 4
kas724
in reply to: Jeffrey_H

Thanks, I got it.

But, I have another question.

 

Can I call a .Net funtion from ObjectArx?

Could you provide sample code for doing it?

Message 4 of 4
kdub_nz
in reply to: kas724


@kas724 wrote:

(setq x_nent nil)
    (setvar "osmode" 512)
    (setq x_pnt (getpoint "\nSelect APN or <exit>: "))
    (setvar "osmode" 0)
    (if (/= x_pnt nil)(setq x_nent (nentselp x_pnt))); get APN value from xref

 

Can you please convert the above lisp code to vb.net code?


I'd get someone to write you a better lisp implementation before converting it to .NET


// Called Kerry in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost