0

I'm trying to start Geomagic 2015 hidden in C# but I'm struggling to accomplish this. I followed the instructions from this thread How to start Process hidden? but it didn't help. I've also tried running cntrlcore but contrlcore.exe isn't able to export a 3dpdf. Geomagic cntrlcore is invisible but crashes when it trys to convert to a pdf. C# code:

Program my_program = new Program();
string geomagic_executable = @"C:\Program Files\3D Systems\Geomagic Foundation 2015\Cntrl.exe";
string arg = "\"" + my_program.goe_python_script_dir + my_program.python_script + "\"";
my_program.run_python_GO_cmd(geomagic_executable, arg);
 public void run_python_GO_cmd( string executable, string args)
 {
        ProcessStartInfo geoProcess = new ProcessStartInfo(executable, args);
        ProcessStartInfo(geomagic_executable, args);
        geoProcess.RedirectStandardOutput = true;
        geoProcess.RedirectStandardError = true;
        geoProcess.UseShellExecute = false;
        geoProcess.CreateNoWindow = true;
        geoProcess.UserName = null;
        Process proc = Process.Start(geoProcess);
        proc.WaitForExit();
  }

Python Script:

import geomagic.app.v2
import sys
import glob
import os
from datetime import datetime
geoapp.openFile("mesh.obj")

activeModel = geoapp.getActiveModel()    
geo.createpdf(pdf_save_file, 21, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, -1, 0, 1, 0)

0 Answers0