Smino.Bcf.Toolkit
0.0.1
See the version list below for details.
dotnet add package Smino.Bcf.Toolkit --version 0.0.1
NuGet\Install-Package Smino.Bcf.Toolkit -Version 0.0.1
<PackageReference Include="Smino.Bcf.Toolkit" Version="0.0.1" />
paket add Smino.Bcf.Toolkit --version 0.0.1
#r "nuget: Smino.Bcf.Toolkit, 0.0.1"
// Install Smino.Bcf.Toolkit as a Cake Addin #addin nuget:?package=Smino.Bcf.Toolkit&version=0.0.1 // Install Smino.Bcf.Toolkit as a Cake Tool #tool nuget:?package=Smino.Bcf.Toolkit&version=0.0.1
This C# NuGet library allows you to easily build up and convert data into BCF files. It gives you a straightforward API to build your BCF objects exactly how you want in your order.
Installation
You can install the BcfToolkit
library via NuGet Package Manager or by adding
it to your project's .csproj file.
nuget install Smino.Bcf.Toolkit
Usage
Creating BCF objects
To create a BCF Model, you can use the BuilderCreator class to obtain a builder object. Then, you can use various functions provided by the builder to fulfill the BCF model objects.
IMPORTANT: The builder always uses the latest (BCF 3.0) models.
Here's an example:
using BcfToolkit;
// Build the BCF Markup
var markup = BcfBuilder.Markup()
.AddTitle("Simple title")
.AddDescription("This is a description")
.AddLabel("Architecture")
.AddPriority("Critical")
.AddTopicType("Clash")
.AddTopicStatus("Active")
.AddComment(c => c
.AddComment("This is a comment")
.AddDate(DateTime.Now)
.AddAuthor("jimmy@page.com"))
.AddViewPoint(v => v
.AddPerspectiveCamera(pCam => pCam
.AddCamera(cam => cam
.AddViewPoint(10, 10, 10))),
snapshotData) // Provide snapshot data here
.Build();
// Build the BCF Project
var project = BcfBuilder.Project()
.AddProjectId("projectId")
.AddProjectName("My project")
.Build();
// Build the BCF Document
var document = BcfBuilder.Document()
.AddDocument(d => d
.AddFileName("document.pdf")
.AddDescription("This is a document"))
.Build();
// Build the BCF Extensions
var extensions = BcfBuilder.Extensions()
.AddPriority("Critical")
.AddPriority("Major")
.AddPriority("Normal")
.AddPriority("Minor")
.AddTopicType("Issue")
.AddTopicType("Fault")
.AddTopicType("Clash")
.AddTopicType("Remark")
.AddTopicLabel("Architecture")
.AddTopicLabel("Structure")
.AddTopicLabel("MEP")
.Build();
You can also use the default builders if you prefer not to deal with filling the required fields.
The builder.WithDefaults()
function serves this for you. However in certain cases you may need
to replace the component IDs of IFC objects with their actual GUIDs during the build process.
var markup = BcfBuilder.Markup()
.WithDefaults()
.Build();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net7.0
- Json.Net (>= 1.0.33)
- Newtonsoft.Json (>= 13.0.3)
- RecursiveDataAnnotationsValidation (>= 2.0.0)
- System.Text.RegularExpressions (>= 4.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.1.3 | 1,608 | 7/31/2024 |
3.1.2 | 67 | 7/30/2024 |
3.1.1 | 77 | 7/26/2024 |
3.1.0 | 95 | 7/26/2024 |
3.0.1 | 151 | 7/22/2024 |
3.0.0 | 65 | 7/19/2024 |
2.3.1 | 154 | 7/12/2024 |
2.3.0 | 65 | 7/4/2024 |
2.2.4 | 84 | 7/2/2024 |
2.2.3 | 69 | 6/28/2024 |
2.2.2 | 65 | 6/27/2024 |
2.2.1 | 65 | 6/26/2024 |
2.2.0 | 59 | 6/25/2024 |
2.1.4 | 66 | 6/13/2024 |
2.1.3 | 74 | 6/5/2024 |
2.1.2 | 61 | 6/4/2024 |
2.1.1 | 66 | 6/3/2024 |
2.1.0 | 87 | 5/22/2024 |
2.0.0 | 76 | 5/8/2024 |
1.0.0 | 93 | 1/29/2024 |
0.0.1 | 154 | 10/13/2023 |