CAD software discussion forum > CAD > extend Lisp-functions with .Net C#

extend Lisp-functions with .Net C#

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 1 of 9

 extend Lisp-functions with .Net C#
03-06-2011 02:50 . am | View his/her posts only
Hi,

my English is not so good, but I will do my best, that you can understand me.

May I introduce myself: I come from Germany. I have many expiriences in Lisp/VisualLisp. Since 3 Month I try the entry in .Net C#. My first apllications runs.

Now I want translate some useful commands (written as extension for the Lisp-Commands) to use in zwcad.

--> I want extend the lisp-functions like this statement in C# for Autocad.
[LispFunction("Function-Name")]

1) Can I do this? When Yes->How?

I missing the netload-command in zwcad.
2) How is the right way to use .Net C#-dll's with zwcad?

Greetings!

(defun

Rank: 1

Jorge

Newbie

posts: 0

Registered: 2009-3-21

Message 2 of 9

21-03-2009 07:04 . am | View his/her posts only
Hi

I don't know with C, but i have loaded .dll made with visual fox

First .dll need to be registered in windows registry

Then i use something like this

(vl-load-com)
(setq obj (vlax-create-object "routine.dll"))
(setq test (vlax-invoke obj 'Routinename "parameters"))

where routinename is the name inside .dll ( note the ' at beggining)
paramater are pass in parameter. ( cuotes for string parameters)

Variable test get the result or pass out paramenters

Jorge

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 3 of 9

27-03-2009 04:41 . pm | View his/her posts only
Great, I would like to have a try!

Rank: 1

Assgarth

Newbie

posts: 26

Registered: 2011-7-29

Message 4 of 9

20-05-2011 02:38 . am | View his/her posts only
Hi,

I have ZwCAD 2011, Microsoft Visual Studio 2008, Windows 7, installed ZrxWizards.msi.

If someone is able to run .NET/ C# in ZwCAD?
It's possible?
"(...) How is the right way to use .Net C#-dll's with zwcad?"

as described by the jorgematheus does not work...

Greetings!

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 5 of 9

03-06-2011 02:50 . am | View his/her posts only
Hi, ZWCAD doesn't support .Net currently, thanks!

Rank: 1

dang xuan nguyen

Newbie

posts: 0

Registered: 2011-11-2

Message 6 of 9

07-10-2011 08:26 . pm | View his/her posts only
The following example shows how to call the standard query operator OrderBy method on an array of integers. The expression in parentheses is a lambda expression. Many standard query operators take lambda expressions as parameters, but this is not a requirement for extension methods. For more information, see Lambda Expressions (C# Programming Guide).

C#

class ExtensionMethods2
{

static void Main()
{
int[] ints = { 10, 45, 15, 39, 21, 26 };
var result = ints.OrderBy(g => g);
foreach (var i in result)
{
System.Console.Write(i + " ");
}
}
}
//Output: 10 15 21 26 39 45

You can see link: http://msdn.microsoft.com/en-us/library/bb383977.aspx


vestidos online
charms

nero13

禁止发言

posts: 0

Registered: 2011-10-31

Message 7 of 9

14-10-2011 08:31 . pm | View his/her posts only
That is :

http://through-the-interface.typepad.com/through_the_interface/visual_lisp/

Good luck

___________________
Online Backup
Birthday SMS

Rank: 1

mrchafe

Newbie

posts: 0

Registered: 2011-12-30

Message 8 of 9

28-11-2011 04:27 . am | View his/her posts only
[QUOTE=nero13] That is :

http://through-the-interface.typepad.com/through_the_interface/visual_lisp/

Good luck

___________________
Online Backup
Birthday SMS

thank o lot













mrchafe2011-12-30 10:50:49

Rank: 1

techcraf

Newbie

posts: 0

Registered: 2011-12-4

Message 9 of 9

04-12-2011 06:43 . am | View his/her posts only
thank you very much for this link Thumbs%20Up
Funny SMS


Birthday SMS


Send Free SMS


See also