Closed Eneroth3 closed 6 years ago
Tried
start "#{PLUGIN_DIR}/bin/ConvertVersion.exe" "#{source}" "#{target}" #{SU_VERSION} \\B
which is even worse than today as it makes the command window flash very quickly, rather than staying open for as long as it is working. Also, since it is asynchronous, SketchUp then fails to open the not yet to be converted file.
Tried outputting "Converting..." in C++ program, but it isn't shown in the console window opened from Ruby :( .
Tested
echo on | echo "Converting..." | "#{PLUGIN_DIR}/bin/ConvertVersion" "#{source}" "#{target}" #{SU_VERSION}
but nothing is showing in the command window.
Using Ruby C Extension to call the program is also out of the question as it requires different binaries for each Ruby version :S .
Calling exe file with arguments using UI.openURL doesn't seem to work. No success with calling a VSB file using UI.openUrl and let that run the exe.
Currently when the external program is called, a command prompt window flashes by. This is rather ugly. If the program can be called without showing, that would improve the user experience.