.NET

Reply
*Carlos
Message 1 of 4 (109 Views)

How can a LISP function be called from .NET?

109 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 (109 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 (109 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 (109 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community