![]() |
VOOZH | about |
Requires NuGet 2.14 or higher.
dotnet add package DSTV.Net --version 1.3.0
NuGet\Install-Package DSTV.Net -Version 1.3.0
<PackageReference Include="DSTV.Net" Version="1.3.0" />
<PackageVersion Include="DSTV.Net" Version="1.3.0" />Directory.Packages.props
<PackageReference Include="DSTV.Net" />Project file
paket add DSTV.Net --version 1.3.0
#r "nuget: DSTV.Net, 1.3.0"
#:package DSTV.Net@1.3.0
#addin nuget:?package=DSTV.Net&version=1.3.0Install as a Cake Addin
#tool nuget:?package=DSTV.Net&version=1.3.0Install as a Cake Tool
👁 Build and Test
👁 Publish
👁 NuGet version (DSTV.Net)
DSTV.Net is an open-source library tailored for .NET platforms, providing a powerful utility for interacting with DSTV (also known as NC1 or Tekla) files. These files serve as a key industry standard in the steel industry, defining geometry and project information for steel plates. Introduction
DSTV.Net is a precision-oriented, high-performance library designed to simplify the process of working with DSTV files. It equips developers and software applications with the ability to read and interpret DSTV file content effortlessly, making it ideal for CAD, CAM, CNC, and other software applications associated with steel fabrication and structural engineering. Features
Installation via Package Manager Console in Visual Studio:
PM> Install-Package DSTV.Net
Installation via .NET CLI:
> dotnet add <TARGET PROJECT> package DSTV.Net
DSTV.Net offers robust parsing capabilities, adept at extracting header information from DSTV files. This function allows access to crucial metadata such as part name, material type, thickness, and more. Such data can be instrumental in areas like material management and manufacturing planning.
// Open a stream to the dstv file.
using var streamReader = new StreamReader("[filename]");
// Create a new dstv reader
var dstvReader = new DstvReader();
// Parse the dstv file.
var parsedDstv = await dstvReader.ParseAsync(streamReader))
// Access the header information
var dstvHeader = parsedDstv.Header;
// Print the order identification
Console.WriteLine(dstvHeader.OrderIdentification);
The header information contains the following properties:
| Property | Type | Description |
|---|---|---|
| OrderIdentification | string | The order identification of the project |
| DrawingIdentification | string | The drawing identification of the piece within the project |
| PhaseIdentification | string | The phase identification of the piece within the project |
| PieceIdentification | string | The piece identification of the piece |
| SteelQuality | string | The steel quality of the piece |
| QuanityOfPieces | int | The quantity of pieces in the project |
| Profile | string | The profile of the piece |
| CodeProfile | CodeProfile | The code profile of the piece |
| Length | double | The length of the piece |
| SawLength | double | The saw length of the piece |
| ProfileHeight | double | The profile height of the piece |
| FlangeWidth | double | The flange width of the piece |
| WebThickness | double | The web thickness of the piece |
| Radius | double | The radius of the piece |
| WeightByMeter | double | The weight by meter of the piece |
| PaintingSurfaceByMeter | double | The painting surface by meter of the piece |
| WebStartCut | double | The web start cut of the piece |
| WebEndCut | double | The web end cut of the piece |
| FlangeStartCut | double | The flange start cut of the piece |
| FlangeEndCut | double | The flange end cut of the piece |
| Text1InfoOnPiece | string | The text 1 info on the piece |
| Text2InfoOnPiece | string | The text 2 info on the piece |
| Text3InfoOnPiece | string | The text 3 info on the piece |
| Text4InfoOnPiece | string | The text 4 info on the piece |
The CodeProfile contains the following values:
| Code | Description |
|---|---|
| I | Profile I |
| L | Profile L |
| U | Profile U |
| B | Sheets, Plate, teared sheets, etc. |
| RU | Round |
| RO | Rouned Tube |
| M | Rectangular Tube |
| C | Profile C |
| T | Profile T |
| SO | Special Profile |
In addition to parsing, DSTV.Net also facilitates the visualization of the geometry of steel plates as defined in DSTV files. It achieves this by converting the geometric data into an SVG (Scalable Vector Graphics) format. This immediate visual representation aids better understanding and verification of the data extracted.
We support this by providing a SVG generator that can be used to generate SVG files from the parsed DSTV data.
SVG's are lightweight and can be used in a variety of applications, including web applications, and are scalable to any size without losing quality.
// Open a stream to the dstv file.
using var streamReader = new StreamReader("[filename]");
// Create a new dstv reader
var dstvReader = new DstvReader();
// Parse the dstv file.
var parsedDstv = await dstvReader.ParseAsync(streamReader));
// Generate the SVG content
var svg = parsedDstv.ToSvg();
// Save the svg to a file
await File.WriteAllTextAsync("/tmp/dstv.svg", @"<!DOCTYPE svg PUBLIC ""-//W3C//DTD SVG 1.1//EN"" ""http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"">" + Environment.NewLine + svg).ConfigureAwait(false);
Feedback is highly appreciated. Thank you for choosing DSTV.Net - happy coding!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on DSTV.Net:
| Package | Downloads |
|---|---|
|
devDept.Eyeshot.Trial
Provides a suite of classes for CAD data creation, editing and translation for cross-platform console applications. |
This package is not used by any popular GitHub repositories.