.NET

Reply
*Carlos
Message 1 of 4 (114 Views)

How can a LISP function be called from .NET?

114 Views, 3 Replies
09-04-2005 04:35 PM
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
*Albert Szilvasy
Message 2 of 4 (114 Views)

Re: How can a LISP function be called from .NET?

09-04-2005 09:24 PM in reply to: *Carlos
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
*Tony Tanzillo
Message 3 of 4 (114 Views)

Re: How can a LISP function be called from .NET?

09-04-2005 09:45 PM in reply to: *Carlos
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
*Carlos
Message 4 of 4 (114 Views)

Re: How can a LISP function be called from .NET?

09-05-2005 11:38 AM in reply to: *Carlos
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
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.