using System;
using System.Runtime.InteropServices;
namespace progressindicator
{
class Program
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool SetDllDirectory(string lpPathName);
static int Main(string[] args)
{
SetDllDirectory("../../../../../../win64/vc14.1/bin");
string aKey = LicenseKey.Value();
if (!LicenseManager.Activate(aKey))
{
Console.WriteLine("Failed to activate CAD Exchanger license.");
return 1;
}
if (args.Length != 1)
{
Console.WriteLine("Usage: " + System.Reflection.Assembly.GetExecutingAssembly().Location
+ " <input_file>, where:");
Console.WriteLine(" <input_file> is a name of the SAT file to be read");
return 1;
}
string aSource = args[0];
ProgressBarObserver anObserver = new ProgressBarObserver();
anObserver.SetAllNotifyingThreads();
bool anIsOK = false;
{
aStatus.Register(anObserver);
{
{
aReader.SetProgressStatus(aStatus);
if (!aStatus.WasCanceled())
{
{
}
}
if (anIsOK && !aStatus.WasCanceled())
{
{
}
}
}
if (anIsOK && !aStatus.WasCanceled())
{
{
aMesher.SetProgressStatus(aStatus);
}
}
}
}
return anIsOK ? 0 : 1;
}
}
{
{
Console.WriteLine(theInfo.
Value());
}
{
Console.WriteLine(theInfo.
Value() +
": complete!");
}
}
}
Reads ACIS files.
Definition: ACIS_Reader.hxx:28
Represents a node in a hierarchy of progress scopes.
Definition: Base_ProgressScope.hxx:31
Provides progress status and notification mechanism.
Definition: Base_ProgressStatus.hxx:33
value_type Value() const
Returns a current value.
Definition: Base_ProgressStatus.cxx:304
bool Transfer(ModelData_Model &theModel)
Converts read file into a resulting model.
Definition: Base_Reader.cxx:296
bool ReadFile(const Base_UTF16String &theFileName)
Reads the file into memory.
Definition: Base_Reader.cxx:207
Defines a Unicode (UTF-16) string wrapping a standard string.
Definition: Base_UTF16String.hxx:34
Computes a polygonal representation from a B-Rep one.
Definition: ModelAlgo_BRepMesher.hxx:48
void Compute(const ModelData_Model &theModel, bool theEnforceAddition=false) const
Computes polygonal representations for all parts in the model.
Definition: ModelAlgo_BRepMesher.cxx:478
Provides CAD Exchanger data model.
Definition: ModelData_Model.hxx:43
Defines classes, types, and global functions related to CAD Exchanger.
Definition: A3DSTestLib.hxx:22