daily update on 20250127 by nitload youmu, schema and element splitter complete, builtin defination building
This commit is contained in:
@@ -29,7 +29,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp;
|
||||
using StgSharp.Modeling.STEP;
|
||||
using StgSharp.Script;
|
||||
using StgSharp.Script.Expression;
|
||||
|
||||
|
||||
//using StgSharp.Model;
|
||||
|
||||
using System.Collections.Concurrent;
|
||||
using System.Text.RegularExpressions;
|
||||
@@ -39,6 +43,7 @@ namespace STgSharpTest
|
||||
[TestClass]
|
||||
public class UnitTest1
|
||||
{
|
||||
string testExpPath = @"D:\Programmer\stepcode\data\ap203\ap203.exp";
|
||||
|
||||
[TestMethod]
|
||||
public void RegexTest()
|
||||
@@ -56,14 +61,9 @@ namespace STgSharpTest
|
||||
[TestMethod]
|
||||
public void TestMethod()
|
||||
{
|
||||
if (!StepReader.FromFile("D:\\NitloadIndustry\\Ñо¿ÏîÄ¿\\1-Flagship\\TH2020\\ProjectFile\\_NPart#8299.stp", out StepReader reader))
|
||||
{
|
||||
throw new Exception();
|
||||
}
|
||||
var info = reader.GetInfo();
|
||||
//var t0 = reader.ReadDataSection(out ConcurrentQueue<StepExpression> queue);
|
||||
//var t1 = reader.AnalyseDataSection(queue);
|
||||
Console.WriteLine("OK");
|
||||
ExpFileReader reader = new ExpFileReader(testExpPath);
|
||||
ExpSchemaSource schemaSource = new ExpSchemaSource();
|
||||
schemaSource.ReadSchema(reader);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user