Congrats, Bill! Before I forget, to make your code more 'portable' there's a couple of things you can do:
Instead of coding the entire solution in Main(), consider writing a Method that accepts two arguments, a DWT as String, and a LSP as String. This Method can go into your code library, and can easily be added as a Reference Assembly to any other solution.
Going one step further, these arguments as Strings may not require the file path, provided they both reside within the Support File Search Path (SFSP), as you can use the HostApplicationServices.FindFile() Method... As shown in this thread. Gile's awesome!
HTH As for moving all the LISP to .NET, I'd do it except the big boss will come in and ask me why I'm reinventing the wheel. In other words, if it ain't broke, don't fix it.
And as for using variables for the DWT, etc...that's a great idea and I've already got that working. The LISP file and the drawing template which this will open are all based on whatever the first part of my project found in the text file it read. It's coming together nicely. Thanks again for the very helpful advice.
Happy to have helped, Bill.
页:
1
[2]