daily update on 20250127 by nitload youmu, schema and element splitter complete, builtin defination building

This commit is contained in:
Nitload
2025-01-28 08:52:16 +08:00
parent 190d67a034
commit e687473132
134 changed files with 17949 additions and 867 deletions
+9 -9
View File
@@ -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);
}
}