This commit is contained in:
Nitload
2025-08-25 09:50:30 +08:00
parent bd0e31e922
commit 1359ff4ecc
1630 changed files with 738486 additions and 2399 deletions
+82 -26
View File
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// file="StepHeader.cs"
// Project: World
// file="STEPHeader.cs"
// Project: StgSharp
// AuthorGroup: Nitload Space
// Copyright (c) Nitload Space. All rights reserved.
//
@@ -32,16 +32,17 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Model.Step
namespace StgSharp.Modeling.Step
{
/// <summary>
/// C# implementation of HEADER part in STEP file.
/// C# implementation of HEADER part in STEP file.
/// </summary>
public record class StepInfo
public struct StepInfo
{
private STEPFileDescriptor _header = new();
private STEPFileName _name = new();
private STEPSchema _schema = new();
private STEPFileDescriptor _header;
private STEPFileName _name;
private STEPSchema _schema;
public (int mainLevel, int? subLevel) Level
{
@@ -126,46 +127,101 @@ namespace StgSharp.Model.Step
get => _schema.Data;
internal set => _schema.Data = value;
}
}
/// <summary>
/// C# implementation of FILE_NAME part in header of STEP file.
/// C# implementation of FILE_NAME part in header of STEP file.
/// </summary>
public record class STEPFileName
public struct STEPFileName
{
public DateTime TimeStamp { get; internal set; }
public string Name { get; internal set; }
public DateTime TimeStamp
{
get;
internal set;
}
public string Author { get; internal set; }
public string Name
{
get;
internal set;
}
public string Description { get; internal set; }
public string Author
{
get;
internal set;
}
public string PreprocessorVersion { get; internal set; }
public string Description
{
get;
internal set;
}
public string Version { get; internal set; }
public string PreprocessorVersion
{
get;
internal set;
}
public string Organization { get; internal set; }
public string Version
{
get;
internal set;
}
public string OriginatingSystem { get; internal set; }
public string Organization
{
get;
internal set;
}
public string OriginatingSystem
{
get;
internal set;
}
public string Authorization
{
get;
internal set;
}
public string Authorization { get; internal set; }
}
public record class STEPSchema
public struct STEPSchema
{
private List<string> _schema = new();
public string Data { get; internal set; }
private List<string> _schema;
public string Data
{
get;
internal set;
}
}
/// <summary>
/// C# implementation of FILE_NAME part in header of STEP file.
/// C# implementation of FILE_NAME part in header of STEP file.
/// </summary>
public record class STEPFileDescriptor
public struct STEPFileDescriptor
{
public (int mainLevel,int? subLevel) Level { get; internal set; }
public string Description { get; internal set; }
public (int mainLevel,int? subLevel) Level
{
get;
internal set;
}
public string Description
{
get;
internal set;
}
}
}