OutilsTs 1.0.1

dotnet add package OutilsTs --version 1.0.1
                    
NuGet\Install-Package OutilsTs -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OutilsTs" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OutilsTs" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="OutilsTs" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OutilsTs --version 1.0.1
                    
#r "nuget: OutilsTs, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OutilsTs@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OutilsTs&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=OutilsTs&version=1.0.1
                    
Install as a Cake Tool

OutilsTs

Bibliothèque .NET pour gérer et automatiser les données des documents dans TopSolid.

Présentation

OutilsTs facilite l’accès aux propriétés, paramètres, opérations et métadonnées des documents TopSolid.
Compatible avec .NET Framework 4.8 et utilisable dans des applications WPF ou WinForms (x64).

Prérequis et compatibilité

  • .NET Framework 4.8
  • Windows x64 (le projet cible explicitement x64)
  • TopSolid 7.19 installé (API disponibles et licenciées)
  • Exécution dans un contexte TopSolid (hôte/add-in) recommandée

Installation

Depuis la Console du Gestionnaire de packages (Visual Studio) :

Install-Package OutilsTs

Via la CLI .NET :

dotnet add package OutilsTs

Utilisation

Récupérer des informations sur le document courant

using OutilsTs;

var doc = new Document();

// Nom du document
string nom = doc.DocNomTxt;

// Type/extension PDM
string ext = doc.DocExtention;

// Statuts
bool estDerive = doc.DocDerived;
bool estElectrode = doc.DocIsElectrode;

// Numéro d’OP (si présent)
string op = doc.OP;

Récupérer les opérations CAM (si document CAM)

using OutilsTs;

var doc = new Document();

bool estCam = doc.DocuCam;
var operationsCam = doc.CamOperations; // Liste d'ElementId (TopSolid)

Afficher un message (WPF/WinForms)

using OutilsTs;

UiHelper.ShowMessage("Opération terminée", "Information", MessageType.Info);
// MessageType.Warning et MessageType.Error sont également disponibles

Notes d’exécution

  • Les API TopSolid (TSH/TSCH/TSHD) nécessitent un environnement TopSolid actif.
  • En cas d’exception, un message utilisateur peut s’afficher et une trace est écrite dans errors.log (répertoire courant du processus).

Journalisation

Les erreurs capturées sont ajoutées à errors.log avec un horodatage basique.

Licence

MIT

Liens

Historique

  • 1.0.0 — Première version publique
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.1 239 9/18/2025
1.0.0 234 9/18/2025