-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (22 loc) · 801 Bytes
/
Program.cs
File metadata and controls
29 lines (22 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
namespace STEP_Parser
{
class Program
{
static void Main(string[] args)
{
//various schemas avaliable at https://github.com/stepcode/stepcode/tree/develop/data
string[] schemas = new string[] { @"..\..\data\ap203e2_mim_lf.exp" };
EXPRESS_Schema AP203 = new EXPRESS_Schema(schemas); //load and parse schema(s)
StepFile step1 = new StepFile(@"..\..\data\sample02.STEP", AP203); //parse STEP file
StepPrinter printer = new StepPrinter(step1);
List<String> tree = printer.TreeToString();
for (int y = 0; y < tree.Count; y++)
{
Console.WriteLine(tree[y]);
}
}
}
}