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

How can a LISP function be called from .NET?

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
262 Views, 3 Replies

How can a LISP function be called from .NET?

I've got a function defined in AutoLISP and I'm trying to call it from my C#
application:

doc.SendStringToExecute("MyFunction", true, false, true);

It puts the string "MyFunction" on the command line,but it doesn't execute
the command until I press Enter. What's the correct way to do this?

Thanks,
Carlos
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

And an enter to the string as in: "MyFunction\n"

"Carlos" wrote in message
news:4947476@discussion.autodesk.com...
I've got a function defined in AutoLISP and I'm trying to call it from my C#
application:

doc.SendStringToExecute("MyFunction", true, false, true);

It puts the string "MyFunction" on the command line,but it doesn't execute
the command until I press Enter. What's the correct way to do this?

Thanks,
Carlos
Message 3 of 4
Anonymous
in reply to: Anonymous

You have to pass a carriage return along with the name
of the command.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Carlos" wrote in message news:4947476@discussion.autodesk.com...
I've got a function defined in AutoLISP and I'm trying to call it from my C#
application:

doc.SendStringToExecute("MyFunction", true, false, true);

It puts the string "MyFunction" on the command line,but it doesn't execute
the command until I press Enter. What's the correct way to do this?

Thanks,
Carlos
Message 4 of 4
Anonymous
in reply to: Anonymous

Oh dear!

Thanks guys. That was really silly of me.

-Carlos

"Carlos" wrote in message
news:4947476@discussion.autodesk.com...
I've got a function defined in AutoLISP and I'm trying to call it from my C#
application:

doc.SendStringToExecute("MyFunction", true, false, true);

It puts the string "MyFunction" on the command line,but it doesn't execute
the command until I press Enter. What's the correct way to do this?

Thanks,
Carlos

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