diff --git a/App/Hi.Wpf.dll b/App/Hi.Wpf.dll index 88475be..b67207e 100644 Binary files a/App/Hi.Wpf.dll and b/App/Hi.Wpf.dll differ diff --git a/App/HiCbtr.dll b/App/HiCbtr.dll index 2f5f2dc..a581287 100644 Binary files a/App/HiCbtr.dll and b/App/HiCbtr.dll differ diff --git a/App/HiDisp.dll b/App/HiDisp.dll index 671a3fa..d320cf6 100644 Binary files a/App/HiDisp.dll and b/App/HiDisp.dll differ diff --git a/App/HiGeom.dll b/App/HiGeom.dll index 1ffe6ce..d5490dc 100644 Binary files a/App/HiGeom.dll and b/App/HiGeom.dll differ diff --git a/App/HiLicense.dll b/App/HiLicense.dll index 87f30a0..4e75c17 100644 Binary files a/App/HiLicense.dll and b/App/HiLicense.dll differ diff --git a/App/HiMech.dll b/App/HiMech.dll index 31cc5c0..97d5962 100644 Binary files a/App/HiMech.dll and b/App/HiMech.dll differ diff --git a/App/HiNC-2025-win-desktop.deps.json b/App/HiNC-2025-win-desktop.deps.json index 4385285..a9cf490 100644 --- a/App/HiNC-2025-win-desktop.deps.json +++ b/App/HiNC-2025-win-desktop.deps.json @@ -11,8 +11,8 @@ "dependencies": { "AvalonEdit": "6.3.0.90", "FontAwesome.Sharp": "6.3.0", - "Hi.Wpf": "3.1.41", - "HiNc": "3.1.61", + "Hi.Wpf": "3.1.43", + "HiNc": "3.1.62", "Microsoft.Extensions.Configuration.Json": "9.0.0", "Microsoft.Extensions.DependencyInjection": "9.0.0", "Microsoft.Extensions.Hosting": "9.0.0", @@ -1659,39 +1659,39 @@ } }, "Grpc.Tools/2.66.0": {}, - "Hi.Wpf/3.1.41": { + "Hi.Wpf/3.1.43": { "dependencies": { - "HiDisp": "3.1.46" + "HiDisp": "3.1.48" }, "runtime": { "lib/net9.0-windows7.0/Hi.Wpf.dll": { - "assemblyVersion": "3.1.41.0", - "fileVersion": "3.1.41.0" + "assemblyVersion": "3.1.43.0", + "fileVersion": "3.1.43.0" } } }, - "HiCbtr/3.1.46": { + "HiCbtr/3.1.48": { "dependencies": { - "HiDisp": "3.1.46" + "HiDisp": "3.1.48" }, "runtime": { "lib/net9.0/HiCbtr.dll": { - "assemblyVersion": "3.1.46.0", - "fileVersion": "3.1.46.0" + "assemblyVersion": "3.1.48.0", + "fileVersion": "3.1.48.0" } } }, - "HiDisp/3.1.46": { + "HiDisp/3.1.48": { "dependencies": { - "HiGeom": "3.1.42", + "HiGeom": "3.1.43", "System.Configuration.ConfigurationManager": "9.0.9", "System.Drawing.Common": "9.0.9", "System.Resources.Extensions": "9.0.9" }, "runtime": { "lib/net9.0/HiDisp.dll": { - "assemblyVersion": "3.1.46.0", - "fileVersion": "3.1.46.0" + "assemblyVersion": "3.1.48.0", + "fileVersion": "3.1.48.0" } }, "native": { @@ -1706,7 +1706,7 @@ } } }, - "HiGeom/3.1.42": { + "HiGeom/3.1.43": { "dependencies": { "Google.Protobuf": "3.28.3", "Grpc.AspNetCore": "2.66.0", @@ -1717,8 +1717,8 @@ }, "runtime": { "lib/net9.0/HiGeom.dll": { - "assemblyVersion": "3.1.42.0", - "fileVersion": "3.1.42.0" + "assemblyVersion": "3.1.43.0", + "fileVersion": "3.1.43.0" } }, "resources": { @@ -1730,27 +1730,27 @@ } } }, - "HiLicense/3.1.40": { + "HiLicense/3.1.43": { "dependencies": { - "HiGeom": "3.1.42" + "HiGeom": "3.1.43" }, "runtime": { "lib/net9.0/HiLicense.dll": { - "assemblyVersion": "3.1.40.0", - "fileVersion": "3.1.40.0" + "assemblyVersion": "3.1.43.0", + "fileVersion": "3.1.43.0" } } }, - "HiMech/3.1.50": { + "HiMech/3.1.52": { "dependencies": { "CommandLineParser": "2.9.1", - "HiCbtr": "3.1.46", + "HiCbtr": "3.1.48", "Microsoft.CodeAnalysis.CSharp.Scripting": "4.14.0" }, "runtime": { "lib/net9.0/HiMech.dll": { - "assemblyVersion": "3.1.50.0", - "fileVersion": "3.1.50.0" + "assemblyVersion": "3.1.52.0", + "fileVersion": "3.1.52.0" } }, "resources": { @@ -1765,20 +1765,20 @@ } } }, - "HiNc/3.1.61": { + "HiNc/3.1.62": { "dependencies": { "Google.Protobuf": "3.28.3", "Grpc.AspNetCore": "2.66.0", "Grpc.Net.Client": "2.66.0", - "HiLicense": "3.1.40", - "HiMech": "3.1.50", - "HiUniNc": "3.1.47", + "HiLicense": "3.1.43", + "HiMech": "3.1.52", + "HiUniNc": "3.1.49", "System.IO.Pipelines": "9.0.9" }, "runtime": { "lib/net9.0/HiNc.dll": { - "assemblyVersion": "3.1.61.0", - "fileVersion": "3.1.61.0" + "assemblyVersion": "3.1.62.0", + "fileVersion": "3.1.62.0" } }, "resources": { @@ -1790,14 +1790,14 @@ } } }, - "HiUniNc/3.1.47": { + "HiUniNc/3.1.49": { "dependencies": { - "HiMech": "3.1.50" + "HiMech": "3.1.52" }, "runtime": { "lib/net9.0/HiUniNc.dll": { - "assemblyVersion": "3.1.47.0", - "fileVersion": "3.1.47.0" + "assemblyVersion": "3.1.49.0", + "fileVersion": "3.1.49.0" } } }, @@ -2442,61 +2442,61 @@ "path": "grpc.tools/2.66.0", "hashPath": "grpc.tools.2.66.0.nupkg.sha512" }, - "Hi.Wpf/3.1.41": { + "Hi.Wpf/3.1.43": { "type": "package", "serviceable": true, - "sha512": "sha512-9CnJVMCZvJpvjQB7LR7RSq5iINMniHMyHI9OrBFbiQD5U6JN/kVW2FbFknUdaByGtDbILEOmqjuxrnu8XUAiWQ==", - "path": "hi.wpf/3.1.41", - "hashPath": "hi.wpf.3.1.41.nupkg.sha512" + "sha512": "sha512-WpVKGsD7JA5PAZnWJY0s7Ue8WP3sk9r7wxLzrLKr3dT16cswAobiEsRMvodhxoU/zX7SElsxzSyiXDt3RcQexQ==", + "path": "hi.wpf/3.1.43", + "hashPath": "hi.wpf.3.1.43.nupkg.sha512" }, - "HiCbtr/3.1.46": { + "HiCbtr/3.1.48": { "type": "package", "serviceable": true, - "sha512": "sha512-0FUD6LXuPMhUFnU2rc4lPRXd93sBn6hLE0TCkLhF4uiblXPVAQHV06xla9dZto6g0xSmXdj2ZrAclXjz2cE1WA==", - "path": "hicbtr/3.1.46", - "hashPath": "hicbtr.3.1.46.nupkg.sha512" + "sha512": "sha512-gCNOXY6+KSvnDfmrrA6WB4VT0kv8mTYWI0jEKIyZJ24L39wEiW69/4cTQFavsfivZxfIvxbhHYqkTo4Ow4fyig==", + "path": "hicbtr/3.1.48", + "hashPath": "hicbtr.3.1.48.nupkg.sha512" }, - "HiDisp/3.1.46": { + "HiDisp/3.1.48": { "type": "package", "serviceable": true, - "sha512": "sha512-M38E6Jt6j/qxKl0lHeIVXO7/K9OYnx9l93zrC8N5vLtkLC9W3srN4+sBuyUAST83D94j5OvFltgZBFQK29Dtzw==", - "path": "hidisp/3.1.46", - "hashPath": "hidisp.3.1.46.nupkg.sha512" + "sha512": "sha512-6Qkf0XewbU1VYjZOQeYocsVQmgaQ7otLEGMmY/Z6fJQsaQZ2nYxeWFjMsxoo/5F1qcESrRW6Jyqd0zlEB8SFLg==", + "path": "hidisp/3.1.48", + "hashPath": "hidisp.3.1.48.nupkg.sha512" }, - "HiGeom/3.1.42": { + "HiGeom/3.1.43": { "type": "package", "serviceable": true, - "sha512": "sha512-qUIxEZE3lYjaYRrItb2pO861ZDKL3TypaP3lUWoF9n50ly6rVuN6Mt2q4lzv0x5tcCnFg7/gw02p/Qb96b8oXg==", - "path": "higeom/3.1.42", - "hashPath": "higeom.3.1.42.nupkg.sha512" + "sha512": "sha512-3XGVAIeJBBhbNkTegk3nIjDNYGFLmdTlV5hS3gYjSGWm9UjaepwNmGbw9dFbEb8sPPWAFNYSSKhSLu1pzwhSSQ==", + "path": "higeom/3.1.43", + "hashPath": "higeom.3.1.43.nupkg.sha512" }, - "HiLicense/3.1.40": { + "HiLicense/3.1.43": { "type": "package", "serviceable": true, - "sha512": "sha512-1XwRW/Uw4FfbrK2/kBu7vMcaNhi5vXiH3k2fJ7/RAhszRPqOAi0HnnmZ2RW3n+nBCP3LvY8UHzn5zcBg+b6prQ==", - "path": "hilicense/3.1.40", - "hashPath": "hilicense.3.1.40.nupkg.sha512" + "sha512": "sha512-QxBgUtFNj9I0z6pW/l/N48v7dkefV1abvjQS9n+0DvpaCISgL+q80ckPvnLd71ToVVfg+AXfJhMqrELCLsBFPQ==", + "path": "hilicense/3.1.43", + "hashPath": "hilicense.3.1.43.nupkg.sha512" }, - "HiMech/3.1.50": { + "HiMech/3.1.52": { "type": "package", "serviceable": true, - "sha512": "sha512-G+g18azgWAsk+3Dov91dURt8AWCMoVBgPU00ipCzjyBbe1gcyPs0m2LlWSCxyTupyut9FvTjDPZ4Q34udU7PQA==", - "path": "himech/3.1.50", - "hashPath": "himech.3.1.50.nupkg.sha512" + "sha512": "sha512-e6OICZ1O97iyI5u8RCJ4ZO2HRbFMAdk85XuXJ7g+LrE8kwSbsy/qeC1PeZdNDg1yi9L2Mkild5dVmWpZ5IWePA==", + "path": "himech/3.1.52", + "hashPath": "himech.3.1.52.nupkg.sha512" }, - "HiNc/3.1.61": { + "HiNc/3.1.62": { "type": "package", "serviceable": true, - "sha512": "sha512-lLvVUVF361VviEKOV+DbfOnWS9Vc/l8JobDtA+G8fiu6i+EtPLqB5M60n1bw9CPQio6BW7if06Dcro0GUF6m9A==", - "path": "hinc/3.1.61", - "hashPath": "hinc.3.1.61.nupkg.sha512" + "sha512": "sha512-o9DFt0C++lHUmZctdvauPujHUww5Gv6Bq7YTCojpDFK+aJ050P687f9hAkcZ3N01inTtCu5x7cVfMQKNoNQ+LQ==", + "path": "hinc/3.1.62", + "hashPath": "hinc.3.1.62.nupkg.sha512" }, - "HiUniNc/3.1.47": { + "HiUniNc/3.1.49": { "type": "package", "serviceable": true, - "sha512": "sha512-9FO8uCrIzDZTLmphqTcXJZgWA3HwITiPSuZ8H7WdI/8ltHiE4/kcf7BfIZHEHxUL/E68HzWDBw8ztk5qqV6qYw==", - "path": "hiuninc/3.1.47", - "hashPath": "hiuninc.3.1.47.nupkg.sha512" + "sha512": "sha512-uvnVTHCC2r7WSHuL50wrI081VZv0eyv4+Kumtmbp1d3ephZWX2/o95LoMjQA4cK3X3wrRz/eAuL66bYEVBp6cQ==", + "path": "hiuninc/3.1.49", + "hashPath": "hiuninc.3.1.49.nupkg.sha512" }, "MathNet.Numerics/5.0.0": { "type": "package", diff --git a/App/HiNC-2025-win-desktop.dll b/App/HiNC-2025-win-desktop.dll index e271926..3c3ae6e 100644 Binary files a/App/HiNC-2025-win-desktop.dll and b/App/HiNC-2025-win-desktop.dll differ diff --git a/App/HiNC-2025-win-desktop.pdb b/App/HiNC-2025-win-desktop.pdb index 40d2294..829d7d9 100644 Binary files a/App/HiNC-2025-win-desktop.pdb and b/App/HiNC-2025-win-desktop.pdb differ diff --git a/App/HiNc.dll b/App/HiNc.dll index d8e2988..980660a 100644 Binary files a/App/HiNc.dll and b/App/HiNc.dll differ diff --git a/App/HiUniNc.dll b/App/HiUniNc.dll index ddb06e6..56f1483 100644 Binary files a/App/HiUniNc.dll and b/App/HiUniNc.dll differ diff --git a/App/en/HiGeom.resources.dll b/App/en/HiGeom.resources.dll index 107095b..5c2dbe2 100644 Binary files a/App/en/HiGeom.resources.dll and b/App/en/HiGeom.resources.dll differ diff --git a/App/en/HiMech.resources.dll b/App/en/HiMech.resources.dll index 2f8957d..a6d6821 100644 Binary files a/App/en/HiMech.resources.dll and b/App/en/HiMech.resources.dll differ diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html index 2aedd74..99ba9f1 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html @@ -560,38 +560,6 @@ Uses the default MongoDB connection.
- - -Gets or sets the display cache size in megabytes.
-public static long DispCacheMb { get; set; }
- using System;
+using Hi.Common.FileLines;
using Hi.Common.Messages;
-using Hi.MachiningProcs;
-using Hi.Common.FileLines;
using Hi.HiNcKits;
+using Hi.MachiningProcs;
+using System;
+using System.IO;
namespace Sample.Machining
{
@@ -184,6 +185,8 @@ namespace Sample.Machining
#region EventHandling
Console.WriteLine($"Set message event.");
+
+ using StreamWriter writer = new StreamWriter("msg.txt");
//show message if something abnormal.
machiningProject.SessionMessageHost.CollectionItemAdded += pack =>
{
@@ -192,7 +195,7 @@ namespace Sample.Machining
pack.Tags.Contains(MessageFlag.Exception.ToString()))
{
var sourceCommand = pack.SourceCommand;
- Console.WriteLine($"{pack.Message} At \"{sourceCommand?.FilePath}\" (Line {sourceCommand?.GetLineNo()}) \"{sourceCommand?.Line}\"");
+ writer.WriteLine($"{pack.Message} At \"{sourceCommand?.FilePath}\" (Line {sourceCommand?.GetLineNo()}) \"{sourceCommand?.Line}\"");
}
};
Console.WriteLine($"Set machining step event.");
diff --git a/App/wwwroot/HiAPI-docsite/index.json b/App/wwwroot/HiAPI-docsite/index.json
index 572143b..c47e8f0 100644
--- a/App/wwwroot/HiAPI-docsite/index.json
+++ b/App/wwwroot/HiAPI-docsite/index.json
@@ -1917,7 +1917,7 @@
"api/Hi.MachiningProcs.MachiningProject.html": {
"href": "api/Hi.MachiningProcs.MachiningProject.html",
"title": "Class MachiningProject | HiAPI-C# 2025",
- "summary": "Class MachiningProject Namespace Hi.MachiningProcs Assembly HiNc.dll Represents a milling project that manages the execution, simulation, and analysis of NC programs. public class MachiningProject : IDisposable, IMachiningStepHost, IGetMachiningEquipment, IMakeXmlSource, IMachiningProjectGetter Inheritance object MachiningProject Implements IDisposable IMachiningStepHost IGetMachiningEquipment IMakeXmlSource IMachiningProjectGetter Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Extension Methods DuplicateUtil.TryDuplicate(TSelf, params object[]) InvokeUtil.SelfInvoke(TSrc, Action) InvokeUtil.SelfInvoke(TSrc, Func) ColorUtil.GetGloomyColor(object, double, double) NameUtil.GetSelectionName(object) StringUtil.GetPropertyStringIfToStringNotOverloaded(object, bool, bool) LockUtil.Lock(object) Constructors MachiningProject(string) Initializes a new instance of the MachiningProject class with the specified directory. Uses the default MongoDB connection. public MachiningProject(string baseDirectory) Parameters baseDirectory string Base directory for file operations MachiningProject(string, MongoClient) Initializes a new instance of the MachiningProject class with the specified directory and MongoDB client. public MachiningProject(string baseDirectory, MongoClient mongoClient) Parameters baseDirectory string Base directory for file operations mongoClient MongoClient MongoDB client instance MachiningProject(XElement, string) Initializes a new instance of the MachiningProject class from XML data using MongoDB. public MachiningProject(XElement src, string baseDirectory) Parameters src XElement XML element containing configuration data baseDirectory string Base directory for resolving relative paths MachiningProject(XElement, string, MongoClient) Initializes a new instance of the MachiningProject class from XML data. public MachiningProject(XElement src, string baseDirectory, MongoClient mongoClient) Parameters src XElement XML element containing configuration data baseDirectory string Base directory for resolving relative paths mongoClient MongoClient MongoDB client instance Properties ApiVersion Gets the API version from the entry assembly. public static Version ApiVersion { get; } Property Value Version BaseDirectory Gets the base directory where project files are located. public string BaseDirectory { get; } Property Value string BoundSelectorHost Gets the bound selector host for managing selection boundaries. public BoundSelectorHost BoundSelectorHost { get; } Property Value BoundSelectorHost ClStrip Gets the cutter location strip. public ClStrip ClStrip { get; } Property Value ClStrip CoordinateEntryDisplayee Gets the displayee for coordinate entry visualization. public CoordinateEntryDisplayee CoordinateEntryDisplayee { get; } Property Value CoordinateEntryDisplayee CsvRunner public CsvRunner CsvRunner { get; } Property Value CsvRunner DictionaryColorGuide Gets the color guide for dictionary-based coloring. public DictionaryColorGuide DictionaryColorGuide { get; } Property Value DictionaryColorGuide DispCacheMb Gets or sets the display cache size in megabytes. public static long DispCacheMb { get; set; } Property Value long EnableCollisionDetection Gets or sets whether collision detection is enabled. When set to true, initializes collision detection mechanism. public bool EnableCollisionDetection { get; set; } Property Value bool EnablePauseOnFailure Enable Pause On Failure Detected. Only take effect if the EnableCollisionDetection or EnableStrokeLimitCheck is enabled. public bool EnablePauseOnFailure { get; set; } Property Value bool EnableStrokeLimitCheck Gets or sets whether stroke limit checking is enabled. public bool EnableStrokeLimitCheck { get; set; } Property Value bool Global global variable for RuntimeApi. Not save on XML. public Dictionary