Re: [IronPython] Embedding Question

2006-08-10 Thread Shri Borde
] [mailto:[EMAIL PROTECTED] On Behalf Of Slide Sent: Thursday, August 10, 2006 3:02 PM To: Discussion of IronPython Subject: Re: [IronPython] Embedding Question There is also an Import method on the PythonEngine object that allows you to import stuff programatically as well. On 8/10/06, Kris

Re: [IronPython] Embedding Question

2006-08-10 Thread Slide
is this different in some way? > > > > > > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Dino Viehland > Sent: Thursday 10 August 2006 21:17 > > To: Discussion of IronPython > Subject: Re: [IronPython] Embedding Que

Re: [IronPython] Embedding Question

2006-08-10 Thread Kristof Wagemans
] Embedding Question   Cool, looks like I was only close though J You may have already imported clr into the default module, but just for the record for those who haven’t you’ll need an import clr there.  I just realized I forgot it the 1st time, and I had a redundant “AddReference” in the delegate call

Re: [IronPython] Embedding Question

2006-08-10 Thread Tim Riley
(object assembly); AddReference adr = engine.CreateMethod("import clr\nclr.AddReference(assembly)"); adr(typeof(SomeAutoCadType).Assembly);     From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 12:10 PM To: Discussion of IronPytho

Re: [IronPython] Embedding Question

2006-08-10 Thread Dino Viehland
).Assembly);     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 12:10 PM To: Discussion of IronPython Subject: Re: [IronPython] Embedding Question   That's exactly what I needed. Thank you Dino. On 8/10/06, Dino Viehland <[EMAIL

Re: [IronPython] Embedding Question

2006-08-10 Thread Tim Riley
    From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 11:40 AM To: Discussion of IronPython Subject: Re: [IronPython] Embedding Question   What I'm trying to do is sort of weird so let me see if I can elaborate further. I am embe

Re: [IronPython] Embedding Question

2006-08-10 Thread Dino Viehland
: Discussion of IronPython Subject: Re: [IronPython] Embedding Question   What I'm trying to do is sort of weird so let me see if I can elaborate further. I am embedding IronPython in a .NET assembly that will later be loaded into AutoCAD. AutoCAD has their own two .NET assemblies that mu

Re: [IronPython] Embedding Question

2006-08-10 Thread Tim Riley
to: [EMAIL PROTECTED]] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 11:02 AM To: Discussion of IronPython Subject: [IronPython] Embedding Question   If I have an embedded project can I automatically make .NET assemblies referenced in the project available to my python scripts? For exa

Re: [IronPython] Embedding Question

2006-08-10 Thread Dino Viehland
PROTECTED] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 11:02 AM To: Discussion of IronPython Subject: [IronPython] Embedding Question   If I have an embedded project can I automatically make .NET assemblies referenced in the project available to my python scripts? For example I have

[IronPython] Embedding Question

2006-08-10 Thread Tim Riley
If I have an embedded project can I automatically make .NET assemblies referenced in the project available to my python scripts? For example I have two assemblies(not in the GAC) that I have referenced in my project. I would like them always available to all python files run from this program witho