Skip to main content

Libraries & Dependencies

Paracore includes a suite of industry-standard libraries ("batteries included") so you can perform complex tasks without managing DLLs manually.

📦 Built-In Libraries

These namespaces are automatically imported into every script. You do not need using statements for them.

LibraryVersionPurpose
RestSharp113.1.0High-performance HTTP/REST API client.
MiniExcel1.42.0Fast reading/writing of Excel (.xlsx) files.
MathNet.Numerics5.0.0Advanced linear algebra, statistics, and numerical methods.
ImageSharp3.1.12Modern, cross-platform image processing library.
System.Text.Json8.0.5Native, high-performance JSON serialization.

📖 Usage Examples

1. Parsing JSON (System.Text.Json)

// Example: Serializing a simple object
var data = new { Name = "Wall", Height = 3.0 };
string json = JsonSerializer.Serialize(data);
Println($"Serialized: {json}");

2. Reading Excel Data (MiniExcel)

// Example: Querying a sheet
var rows = MiniExcel.Query(path).ToList();
foreach (var row in rows) {
Println($"Row Data: {row.Name}");
}

3. Calling an API (RestSharp)

var client = new RestClient("https://api.example.com");
var request = new RestRequest("data", Method.Get);
var response = client.Execute(request);
Println($"Response: {response.Content}");

🔌 Referencing External DLLs

Paracore is designed to be a self-contained ecosystem. While you can technically use System.Reflection.Assembly.LoadFrom() to load external DLLs, we recommend sticking to the built-in libraries to ensure your scripts are portable and compatible across different machines.


Note: The built-in libraries are chosen for their performance and stability within the Revit .NET 8 environment.