using System;
namespace progress_bar
{
class Program
{
static int Main(string[] args)
{
string aKey = MTKLicenseKey.Value();
{
Console.WriteLine("Failed to activate Manufacturing Toolkit 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 file to be read");
return 1;
}
ProgressBarObserver anObserver = new ProgressBarObserver();
anObserver.SetAllNotifyingThreads();
{
aStatus.
Register(anObserver);
{
{
aReader.
SetProgressStatus(aStatus);
aReader.
Read(aSource, aModel);
}
{
{
aMesher.
SetProgressStatus(aStatus);
}
}
}
}
return 0;
}
{
{
Console.WriteLine(theInfo.
Value() +
"%");
}
{
Console.WriteLine(theInfo.
Value() +
"%: complete!");
}
};
}
}
Activates the license key.
Definition LicenseManager.cs:48
Generates a polygonal mesh for a B-Rep body.
Definition MeshGenerator.cs:36
void Generate(cadex.ModelData.Model theModel, bool theEnforceGeneration)
Definition MeshGenerator.cs:94
Provides MTK data model.
Definition Model.cs:30
bool IsEmpty()
Returns true if the model is empty.
Definition Model.cs:103
Reads supported formats, see Import section.
Definition ModelReader.cs:17
bool Read(cadex.UTF16String theFilePath, cadex.ModelData.Model theModel)
Reads the file at the specified path into the specified model.
Definition ModelReader.cs:86
Represents a node in a hierarchy of progress scopes.
Definition ProgressScope.cs:50
Provides progress status and notification mechanism.
Definition ProgressStatus.cs:64
double Value()
Returns a current value.
Definition ProgressStatus.cs:414
bool WasCanceled()
Returns true if the operation has been canceled.
Definition ProgressStatus.cs:479
Defines a Unicode (UTF-16) string wrapping a standard string.
Definition UTF16String.cs:17
Contains classes and functions related to model processing.
Definition MeshGenerator.cs:12
Defines classes, types, enums, and functions related to topological entities and scene graph elements...
Definition AngleUnit.cs:12
Contains classes, namespaces, enums, types, and global functions related to Manufacturing Toolkit.
Definition BaseObject.cs:12