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" />
<PackageReference Include="OutilsTs" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=OutilsTs&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- NuGet : https://www.nuget.org/packages/OutilsTs
- Repository : https://github.com/NorinRad39/Classe-outils-topsolid
Historique
- 1.0.0 — Première version publique
Product | Versions 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.
-
.NETFramework 4.8
- System.Drawing.Common (>= 9.0.9)
- TopSolid.Cad.Design.Automating (>= 7.19.400.106)
- TopSolid.Cad.Drafting.Automating (>= 7.19.400.106)
- TopSolid.Cad.Electrode.Automating (>= 7.19.400.106)
- TopSolid.Cam.NC.Kernel.Automating (>= 7.19.400.106)
- TopSolid.Kernel.Automating (>= 7.19.400.106)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.