|
You should be able to set Multiselect on
the FileOpenDialog to enable choosing of more than one file (although that may
not be exactly what you’re wanting). Unfortunately we don’t have a way to
define the CommandMethod from Python because we don’t yet support static
compilation & custom attributes (but it’s starting to seem like it’s
one of our most popular feature requests). What you might be able to do is either
compile a wrapper assembly on the fly per-py file that knows about the .py file
that the user wants (I’m assuming AutoCAD uses reflection to discover the
command methods in an assembly and you can’t instantiate new instances of
the class w/ CommandMethod w/ different filenames – which would seem like
the easiest solution). Do
you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038) From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Riley I have an application that I am working on which basically will provide
IronPython as a scripting language for AutoCAD. I have a command now that will
allow me to select an external python file and run it in AutoCAD, manipulating
objects and such. This works fine for testing purposes but in order to release
this as a tool that people will use for production purposes I need to develop
some sort of loading mechanism that will allow me to do something like load 12
python files at once and call them as needed instead of having an Open File
Dialog box pop up every time a user wants to run a script. |
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
