Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

alexatstariongroup/step

 
 

Repository files navigation

A portable .NET library for reading and writing STEP CAD files.

Build Status

Usage

Open a STEP file:

usingSystem.IO;usingIxMilia.Step;usingIxMilia.Step.Items;// ...//------------------------------------------------------------ read from a fileStepFilestepFile;using(FileStreamfs=newFileStream(@"C:\Path\To\File.stp",FileMode.Open)){stepFile=StepFile.Load(fs);}// if on >= NETStandard1.3 you can use:// StepFile stepFile = StepFile.Load(@"C:\Path\To\File.stp");//---------------------------------------------- or read directly from a stringStepFilestepFile=StepFile.Parse(@"ISO-10303-21;HEADER;...END-ISO-103030-21;");//-----------------------------------------------------------------------------foreach(StepRepresentationItemiteminstepFile.Items){switch(item.ItemType){caseStepItemType.Line:StepLineline=(StepLine)item;// ...break;// ...}}

Save a STEP file:

usingSystem.IO;usingIxMilia.Step;usingIxMilia.Step.Items;// ...StepFilestepFile=newStepFile();stepFile.Items.Add(newStepDirection("direction-label",1.0,0.0,0.0));// ...//------------------------------------------------------------- write to a fileusing(FileStreamfs=newFileStream(@"C:\Path\To\File.stp",FileMode.Create)){stepFile.Save(fs);}// if on >= NETStandard1.3 you can use// stepFile.Save(@"C:\Path\To\File.stp");//------------------------------------------------------- or output as a stringstringcontents=stepFile.GetContentsAsString();

Building locally

Requirements to build locally are:

sudo apt-get install dotnet-sharedframework-microsoft.netcore.app-1.0.3

Specification

Using spec from steptools.comhere.

STEP Application Protocolshere.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C#99.4%
  • Other0.6%

[8]ページ先頭

©2009-2025 Movatter.jp