diff --git a/App/Hi.Wpf.dll b/App/Hi.Wpf.dll index 1c0d799..c1ab4cf 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 d8fa10c..1a4d771 100644 Binary files a/App/HiCbtr.dll and b/App/HiCbtr.dll differ diff --git a/App/HiDisp.dll b/App/HiDisp.dll index 88fe9ac..e0754a8 100644 Binary files a/App/HiDisp.dll and b/App/HiDisp.dll differ diff --git a/App/HiGeom.dll b/App/HiGeom.dll index f39fcc4..0e90021 100644 Binary files a/App/HiGeom.dll and b/App/HiGeom.dll differ diff --git a/App/HiLicense.dll b/App/HiLicense.dll index d2560a9..cc8b9d8 100644 Binary files a/App/HiLicense.dll and b/App/HiLicense.dll differ diff --git a/App/HiMech.dll b/App/HiMech.dll index e230183..86462d8 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 4775a39..587fa0c 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.74", - "HiNc": "3.1.95", + "Hi.Wpf": "3.1.80", + "HiNc": "3.1.98", "runtimepack.Microsoft.NETCore.App.Runtime.win-x64": "9.0.11", "runtimepack.Microsoft.WindowsDesktop.App.Runtime.win-x64": "9.0.11", "runtimepack.Microsoft.AspNetCore.App.Runtime.win-x64": "9.0.11" @@ -1600,39 +1600,39 @@ } } }, - "Hi.Wpf/3.1.74": { + "Hi.Wpf/3.1.80": { "dependencies": { - "HiDisp": "3.1.79" + "HiDisp": "3.1.83" }, "runtime": { "lib/net9.0-windows7.0/Hi.Wpf.dll": { - "assemblyVersion": "3.1.74.0", - "fileVersion": "3.1.74.0" + "assemblyVersion": "3.1.80.0", + "fileVersion": "3.1.80.0" } } }, - "HiCbtr/3.1.79": { + "HiCbtr/3.1.82": { "dependencies": { - "HiDisp": "3.1.79" + "HiDisp": "3.1.83" }, "runtime": { "lib/net9.0/HiCbtr.dll": { - "assemblyVersion": "3.1.79.0", - "fileVersion": "3.1.79.0" + "assemblyVersion": "3.1.82.0", + "fileVersion": "3.1.82.0" } } }, - "HiDisp/3.1.79": { + "HiDisp/3.1.83": { "dependencies": { - "HiGeom": "3.1.74", + "HiGeom": "3.1.76", "System.Configuration.ConfigurationManager": "10.0.1", "System.Drawing.Common": "10.0.1", "System.Resources.Extensions": "10.0.1" }, "runtime": { "lib/net9.0/HiDisp.dll": { - "assemblyVersion": "3.1.79.0", - "fileVersion": "3.1.79.0" + "assemblyVersion": "3.1.83.0", + "fileVersion": "3.1.83.0" } }, "native": { @@ -1642,12 +1642,15 @@ "runtimes/win-x64/native/hasp_windows_x64_30012.dll": { "fileVersion": "10.14.837.60002" }, + "runtimes/win-x64/native/hi-key.dll": { + "fileVersion": "0.0.0.0" + }, "runtimes/win-x64/native/vcruntime140_1.dll": { "fileVersion": "14.24.28127.4" } } }, - "HiGeom/3.1.74": { + "HiGeom/3.1.76": { "dependencies": { "Google.Protobuf": "3.28.3", "Grpc.AspNetCore": "2.66.0", @@ -1658,8 +1661,8 @@ }, "runtime": { "lib/net9.0/HiGeom.dll": { - "assemblyVersion": "3.1.74.0", - "fileVersion": "3.1.74.0" + "assemblyVersion": "3.1.76.0", + "fileVersion": "3.1.76.0" } }, "resources": { @@ -1671,27 +1674,27 @@ } } }, - "HiLicense/3.1.74": { + "HiLicense/3.1.76": { "dependencies": { - "HiGeom": "3.1.74" + "HiGeom": "3.1.76" }, "runtime": { "lib/net9.0/HiLicense.dll": { - "assemblyVersion": "3.1.74.0", - "fileVersion": "3.1.74.0" + "assemblyVersion": "3.1.76.0", + "fileVersion": "3.1.76.0" } } }, - "HiMech/3.1.86": { + "HiMech/3.1.89": { "dependencies": { "CommandLineParser": "2.9.1", - "HiCbtr": "3.1.79", + "HiCbtr": "3.1.82", "Microsoft.CodeAnalysis.CSharp.Scripting": "5.0.0" }, "runtime": { "lib/net9.0/HiMech.dll": { - "assemblyVersion": "3.1.86.0", - "fileVersion": "3.1.86.0" + "assemblyVersion": "3.1.89.0", + "fileVersion": "3.1.89.0" } }, "resources": { @@ -1706,20 +1709,20 @@ } } }, - "HiNc/3.1.95": { + "HiNc/3.1.98": { "dependencies": { "Google.Protobuf": "3.28.3", "Grpc.AspNetCore": "2.66.0", "Grpc.Net.Client": "2.66.0", - "HiLicense": "3.1.74", - "HiMech": "3.1.86", - "HiUniNc": "3.1.83", + "HiLicense": "3.1.76", + "HiMech": "3.1.89", + "HiUniNc": "3.1.86", "System.IO.Pipelines": "10.0.1" }, "runtime": { "lib/net9.0/HiNc.dll": { - "assemblyVersion": "3.1.95.0", - "fileVersion": "3.1.95.0" + "assemblyVersion": "3.1.98.0", + "fileVersion": "3.1.98.0" } }, "resources": { @@ -1731,14 +1734,14 @@ } } }, - "HiUniNc/3.1.83": { + "HiUniNc/3.1.86": { "dependencies": { - "HiMech": "3.1.86" + "HiMech": "3.1.89" }, "runtime": { "lib/net9.0/HiUniNc.dll": { - "assemblyVersion": "3.1.83.0", - "fileVersion": "3.1.83.0" + "assemblyVersion": "3.1.86.0", + "fileVersion": "3.1.86.0" } } }, @@ -2219,61 +2222,61 @@ "path": "grpc.net.common/2.66.0", "hashPath": "grpc.net.common.2.66.0.nupkg.sha512" }, - "Hi.Wpf/3.1.74": { + "Hi.Wpf/3.1.80": { "type": "package", "serviceable": true, - "sha512": "sha512-CzHZYMApU3eU2tKP5na7chCTdvAQ3hMDZjvvTCXvJTNOI2fqlXz3eJ9q3mL9VJvMq9BnGRNaVrTMcwxNJaZmcQ==", - "path": "hi.wpf/3.1.74", - "hashPath": "hi.wpf.3.1.74.nupkg.sha512" + "sha512": "sha512-bSnCWI2pi1tgFs08TD7u3PfRsgbrZ5pMIW7U7WOiPkGIt47qBp3aO/kQzI2DGMrMtvwK4kzeXobxeBLaKDdIgA==", + "path": "hi.wpf/3.1.80", + "hashPath": "hi.wpf.3.1.80.nupkg.sha512" }, - "HiCbtr/3.1.79": { + "HiCbtr/3.1.82": { "type": "package", "serviceable": true, - "sha512": "sha512-N2is71MQ3pN8VEX64Zd9QfvjY/wLs3E3QKqsMgE8UvqCE2eXitJftiv7eQyvRBAXfUU5nZDur/Cdj3lORpOB8w==", - "path": "hicbtr/3.1.79", - "hashPath": "hicbtr.3.1.79.nupkg.sha512" + "sha512": "sha512-Y6jjgAaOKTYzPTewRMHTxQp9jrVRCy24BFesrhDlIALgmAWqb9uv45zZ/uDPZOgy2Aiopqk0nVgKuN0MNGLBGQ==", + "path": "hicbtr/3.1.82", + "hashPath": "hicbtr.3.1.82.nupkg.sha512" }, - "HiDisp/3.1.79": { + "HiDisp/3.1.83": { "type": "package", "serviceable": true, - "sha512": "sha512-kVMrYJMibmDcSyUBvUHFdj6Wu+GwQka08c2PUX5AT1QUq7TeEhdyC15lmL96PHusPblgCXFLso0P3dd7vwTbaw==", - "path": "hidisp/3.1.79", - "hashPath": "hidisp.3.1.79.nupkg.sha512" + "sha512": "sha512-BD0E2wyn5hT7af3yvt+Uea5nVzx17za9jTQnyvU31LbiIradSI2074gbi83ZFxlNJptLSAvGQOQkEFRbwPNRwg==", + "path": "hidisp/3.1.83", + "hashPath": "hidisp.3.1.83.nupkg.sha512" }, - "HiGeom/3.1.74": { + "HiGeom/3.1.76": { "type": "package", "serviceable": true, - "sha512": "sha512-T0vgnzXZ8SHmSEmJ3msfsYXyUqm6AOCLSzEveeqfJcK0vG+8ITSqBVwQiGe6EM2GybaU0Qe+1aCxyy1EsiOnuA==", - "path": "higeom/3.1.74", - "hashPath": "higeom.3.1.74.nupkg.sha512" + "sha512": "sha512-vj75uMBK+CjjSIoCcmq8+xXpRy+7Q6jzKDD7Qe+sh6dpLwBhJgF8BUzQoNSDQBrwDTNqeYl2ypgzgYwBXIOm4Q==", + "path": "higeom/3.1.76", + "hashPath": "higeom.3.1.76.nupkg.sha512" }, - "HiLicense/3.1.74": { + "HiLicense/3.1.76": { "type": "package", "serviceable": true, - "sha512": "sha512-QKk9JdBfHmydnVELj/jXoY4MixBemd2gRBVv1lKN1DO/2aOlbddfY6ejPlrcvfhNagyuVJbHdqgx4rx9GWpx2w==", - "path": "hilicense/3.1.74", - "hashPath": "hilicense.3.1.74.nupkg.sha512" + "sha512": "sha512-BC8mjOxEctAnv8K8h4In33VFO/FSjfVygOAONfNkpq2ltNQyjK9/eKeNQRUaZgdMBIW0D7o5tVE+NnOLEEPkhA==", + "path": "hilicense/3.1.76", + "hashPath": "hilicense.3.1.76.nupkg.sha512" }, - "HiMech/3.1.86": { + "HiMech/3.1.89": { "type": "package", "serviceable": true, - "sha512": "sha512-pp4nlY/zievxqavmQ7hFmj6H35zW6Xa7xO9MPzixWuthYxRmREM3KGKUZjrfMEQIvSZuAtawfhOuap8mqMGtcg==", - "path": "himech/3.1.86", - "hashPath": "himech.3.1.86.nupkg.sha512" + "sha512": "sha512-QeqGLOF4V6HMHt1l/ZCiONUfDvm97NYxFJd3ujGzGG12susy0nw+t9UCLKUHjm+yaFUEDghnitY7rtMpICjKGw==", + "path": "himech/3.1.89", + "hashPath": "himech.3.1.89.nupkg.sha512" }, - "HiNc/3.1.95": { + "HiNc/3.1.98": { "type": "package", "serviceable": true, - "sha512": "sha512-sLHRRFs+amO1K1ybQqPoDZCK9+19ZVPX4m+poszrFBt/952gwZzixZT6QKdyKO1/6KxZ+oOlItUHlH++WUqqUw==", - "path": "hinc/3.1.95", - "hashPath": "hinc.3.1.95.nupkg.sha512" + "sha512": "sha512-6WwDmWOHTnfxGZU6jK1Y5omyKJ5TdXHp2hWgXot+7fxSyp2nEbWEB1a2iXA4vt/CDpgXmGjJepWBuGT3fZU2lg==", + "path": "hinc/3.1.98", + "hashPath": "hinc.3.1.98.nupkg.sha512" }, - "HiUniNc/3.1.83": { + "HiUniNc/3.1.86": { "type": "package", "serviceable": true, - "sha512": "sha512-5ZbH1xeVgjzEaKlENCB4AN5xaSUikvWao8OhrZm4Dq2ayQTb9DXYnJeVpcV1XEVE0WB2l6wzNcXJqrAmL2aYOg==", - "path": "hiuninc/3.1.83", - "hashPath": "hiuninc.3.1.83.nupkg.sha512" + "sha512": "sha512-PbDnEUTSElvZgGWZ6CbbU7iboDQaq2lu1xC5WpA16R2toL0FdR0DwetH4FPsM+RiOppRcuKibZ2Kx/CTeh10qg==", + "path": "hiuninc/3.1.86", + "hashPath": "hiuninc.3.1.86.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 d8ff8c1..e342e3b 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 3865b45..0019fd8 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 f92f40e..467776d 100644 Binary files a/App/HiNc.dll and b/App/HiNc.dll differ diff --git a/App/HiUniNc.dll b/App/HiUniNc.dll index efea01b..69adb1a 100644 Binary files a/App/HiUniNc.dll and b/App/HiUniNc.dll differ diff --git a/App/core.dll b/App/core.dll index 33dc1c0..c473469 100644 Binary files a/App/core.dll and b/App/core.dll differ diff --git a/App/en/HiGeom.resources.dll b/App/en/HiGeom.resources.dll index a5f96a1..cae96bc 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 1307ff1..7b2bee6 100644 Binary files a/App/en/HiMech.resources.dll and b/App/en/HiMech.resources.dll differ diff --git a/App/hi-key.dll b/App/hi-key.dll new file mode 100644 index 0000000..3953a16 Binary files /dev/null and b/App/hi-key.dll differ diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.Cbtr.CubeTree.html b/App/wwwroot/HiAPI-docsite/api/Hi.Cbtr.CubeTree.html index 850ccb6..71f1c5c 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.Cbtr.CubeTree.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.Cbtr.CubeTree.html @@ -329,6 +329,36 @@ The applied resolution is c*(2^i). Where c is a constant; i is a integer to make +

+ KeyDll + +

+ +
+
+ +
+
public const string KeyDll = "hi-key.dll"
+
+ + + + +

Field Value

+
+
string
+
+
+ + + + + + + + + +

defaultPreferredGridWidth diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.Common.PathUtils.html b/App/wwwroot/HiAPI-docsite/api/Hi.Common.PathUtils.html index 52f377f..955a003 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.Common.PathUtils.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.Common.PathUtils.html @@ -94,12 +94,6 @@

Classes

-
-
BaseAndSubDirectory
-

Represents a directory structure with a base directory and a subdirectory, -providing methods for path manipulation and resolution.

-
-
ExtendedNamedPath

Represents a path with a named base path and an optional extended path component.

@@ -118,11 +112,6 @@ providing methods for path manipulation and resolution.

NamedPath

Represents a file system path with an associated name or alias.

-
-
-
-
PathRoute
-

Represents a path with both directory and file components, supporting relative and absolute path operations.

diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.HiNcHost.html b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.HiNcHost.html index 0a2978a..5d7cff1 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.HiNcHost.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.HiNcHost.html @@ -185,6 +185,37 @@ Host class for HiNC functionality that provides project management, path resolut + + +

+ HiNcHost(ProxyProjectService) + +

+ +
+
+ +
+
public HiNcHost(ProxyProjectService proxyProjectService)
+
+ +

Parameters

+
+
proxyProjectService ProxyProjectService
+
+
+ + + + + + + + + + + +

@@ -291,10 +322,10 @@ Host class for HiNC functionality that provides project management, path resolut

- + -

- AdminDir +

+ AdminDirectory

@@ -303,7 +334,7 @@ Host class for HiNC functionality that provides project management, path resolut
-
public string AdminDir { get; }
+
public string AdminDirectory { get; set; }
@@ -419,39 +450,6 @@ Host class for HiNC functionality that provides project management, path resolut - - -

- DirectoryRoute - -

- -

The BaseDirectory is admin directory. -The SubDirectory is current applied project directory.

-
-
- -
-
public BaseAndSubDirectory DirectoryRoute { get; }
-
- - - - - -

Property Value

-
-
BaseAndSubDirectory
-
-
- - - - - - - -

@@ -459,8 +457,7 @@ The

Gets the current MachiningProject instance.

- +
@@ -516,10 +513,10 @@ The + -

- ProjectDir +

+ ProjectDirectory

@@ -528,7 +525,7 @@ The
-
public string ProjectDir { get; }
+
public string ProjectDirectory { get; }
@@ -612,38 +609,6 @@ The
- -

- ProjectPathRoute - -

- -

Gets the project path route.

-
-
- -
-
public PathRoute ProjectPathRoute { get; }
-
- - - - - -

Property Value

-
-
PathRoute
-
-
- - - - - - - -

@@ -676,6 +641,37 @@ The + +

+ RelativeProjectPath + +

+ +
+
+ +
+
public string RelativeProjectPath { get; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + +

@@ -779,7 +775,7 @@ The

Relative directory from AdminDir for resource.

+

Relative directory from AdminDirectory for resource.

@@ -1209,7 +1205,7 @@ The
-
public Task LoadProjectByRelativePath(string relativeFilePathFromAdminRoot)
+
public void LoadProjectByRelativePath(string relativeFilePathFromAdminRoot)

Parameters

@@ -1219,12 +1215,6 @@ The
Returns

-
-
Task
-

A task representing the asynchronous operation

-
-
@@ -1314,12 +1304,12 @@ The
-
public void SaveAsProject(string relativeFilePathFromAdminRoot)
+
public void SaveAsProject(string relativeFilePath)

Parameters

-
relativeFilePathFromAdminRoot string
+
relativeFilePath string

The relative file path from the admin directory root

@@ -1342,7 +1332,7 @@ The

Save project by ProjectPathRoute.

+

Save project in the current path.

@@ -1406,37 +1396,6 @@ The - OnMachiningProjectDisposing - - - -

Event raised when the MachiningProject is about to be disposed.

-
-
- -
-
public event Func<MachiningProject, Task> OnMachiningProjectDisposing
-
- - - - - - -

Event Type

-
-
Func<MachiningProject, Task>
-
-
- - - - - - - -

OnShownMessageBoard diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.LocalApp.html b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.LocalApp.html index eae1fbd..a522c58 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.LocalApp.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.LocalApp.html @@ -154,17 +154,17 @@ Class LocalApp -

- HostConfigPath +

+ DefaultLocalAppConfigPath

-

Path to the host configuration file.

+

Path to the configuration file.

-
public const string HostConfigPath = "hinc-host-config.xml"
+
public const string DefaultLocalAppConfigPath = "hinc-host-config.xml"
@@ -188,10 +188,10 @@ Class LocalApp - + -

- HostConfig +

+ LocalAppConfig

@@ -200,7 +200,7 @@ Class LocalApp
-
public static HostConfig HostConfig { get; set; }
+
public static LocalAppConfig LocalAppConfig { get; set; }
@@ -209,7 +209,7 @@ Class LocalApp

Property Value

-
HostConfig
+
LocalAppConfig
@@ -226,19 +226,87 @@ Class LocalApp -

- AppBegin() +

+ AppBegin(LocalAppConfig)

-

Initializes the application by loading configuration, logging in licenses, and starting services.

-
+
-
public static void AppBegin()
+
public static void AppBegin(LocalAppConfig localAppConfig)
+

Parameters

+
+
localAppConfig LocalAppConfig
+
+
+ + + + + + + + + + + + + + +

+ AppBegin(int, string) + +

+ +
+
+ +
+
public static void AppBegin(int dbPort, string cacheDbPath)
+
+ +

Parameters

+
+
dbPort int
+
+
cacheDbPath string
+
+
+ + + + + + + + + + + + + + +

+ AppBegin(string) + +

+ +
+
+ +
+
public static void AppBegin(string hostConfigPath = null)
+
+ +

Parameters

+
+
hostConfigPath string
+
+
diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.LocalAppConfig.html b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.LocalAppConfig.html new file mode 100644 index 0000000..3271abd --- /dev/null +++ b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.LocalAppConfig.html @@ -0,0 +1,410 @@ + + + + + Class LocalAppConfig | HiAPI-C# 2025 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class LocalAppConfig +

+ +
+
Namespace
Hi.HiNcKits
+
Assembly
HiNc.dll
+
+ +

Configuration for host-related settings.

+
+
+ +
+
public class LocalAppConfig
+
+ + + + +
+
Inheritance
+
+ +
LocalAppConfig
+
+
+ + + +
+
Inherited Members
+
+ + + + + + + +
+ +
+
Extension Methods
+
+ + + + + + + +
+ + + + + +

Constructors +

+ + + + +

+ LocalAppConfig() + +

+ +

Initializes a new instance.

+
+
+ +
+
public LocalAppConfig()
+
+ + + + + + + + + + + + + + + +

+ LocalAppConfig(XElement, string) + +

+ +

Initializes a new instance of the LocalAppConfig class from XML data.

+
+
+ +
+
public LocalAppConfig(XElement src, string baseDirectory)
+
+ +

Parameters

+
+
src XElement
+

XML element containing configuration data

+
+
baseDirectory string
+

Base directory for resolving relative paths

+
+
+ + + + + + + + + + + + +

Properties +

+ + + + +

+ CacheDbPath + +

+ +

Gets or sets the cache database path.

+
+
+ +
+
public string CacheDbPath { get; set; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + + + +

+ MongoPort + +

+ +

Gets or sets the MongoDB port number.

+
+
+ +
+
public int MongoPort { get; set; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + + + + +

+ XName + +

+ +

Name for XML IO.

+
+
+ +
+
public static string XName { get; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + +

Methods +

+ + + + +

+ MakeXmlSource(string, string) + +

+ +
+
+ +
+
public XElement MakeXmlSource(string baseDirectory, string relFile)
+
+ +

Parameters

+
+
baseDirectory string
+
+
relFile string
+
+
+ +

Returns

+
+
XElement
+
+
+ + + + + + + + + + + + +
+ +
+
+ + +
+ +
+ +
+
+ +
+ + + + diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.UserConfig.html b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.UserConfig.html index 215d9cf..da0ca92 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.UserConfig.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.UserConfig.html @@ -2,11 +2,11 @@ - Class AppConfig | HiAPI-C# 2025 + Class UserConfig | HiAPI-C# 2025 - - + + @@ -84,12 +84,12 @@
-
+
-

-Class AppConfig +

+Class UserConfig

@@ -97,11 +97,12 @@ Class AppConfig
Assembly
HiNc.dll
-
+

User Configuration

+
-
public class AppConfig : IMakeXmlSource
+
public class UserConfig : IMakeXmlSource
@@ -111,7 +112,7 @@ Class AppConfig
Inheritance
-
AppConfig
+
UserConfig
@@ -183,10 +184,10 @@ Class AppConfig - + -

- AppConfig() +

+ UserConfig()

@@ -195,7 +196,7 @@ Class AppConfig
-
public AppConfig()
+
public UserConfig()
@@ -210,19 +211,19 @@ Class AppConfig - + -

- AppConfig(XElement, string) +

+ UserConfig(XElement, string)

-

Initializes a new instance of the AppConfig class from XML data.

+

Initializes a new instance of the UserConfig class from XML data.

-
public AppConfig(XElement src, string baseDirectory)
+
public UserConfig(XElement src, string baseDirectory)

Parameters

@@ -250,9 +251,9 @@ Class AppConfig - + -

+

DisplayedStepPresentKeyList

@@ -282,9 +283,43 @@ Class AppConfig - + -

+

+ EnableFullControl + +

+ +

Enable Full control of the application. +Eanble System.Diagnostics.Process in GUI Script Command. +Not used yet.

+
+
+ +
+
public bool EnableFullControl { get; set; }
+
+ + + + + +

Property Value

+
+
bool
+
+
+ + + + + + + + + + +

EquipmentWorkpieceSetupDisplayeeConfig

@@ -314,9 +349,9 @@ Class AppConfig - + -

+

FixtureSetupDisplayeeConfig

@@ -346,14 +381,15 @@ Class AppConfig - + -

+

GraphicCacheLowerLimitMb

-
+

Gets or sets the lower limit of graphic cache in megabytes.

+
@@ -377,14 +413,15 @@ Class AppConfig - + -

+

GraphicCacheMb

-
+

Gets or sets the graphic cache size in megabytes.

+
@@ -408,14 +445,15 @@ Class AppConfig - + -

+

GraphicCacheUpperLimitMb

-
+

Gets or sets the upper limit of graphic cache in megabytes.

+
@@ -439,14 +477,15 @@ Class AppConfig - + -

+

LanguageCode

-
+

Gets or sets the language code for the application UI.

+
@@ -470,14 +509,15 @@ Class AppConfig - + -

+

ShowPhysicsOptions

-
+

Gets or sets whether to show physics options in the UI.

+
@@ -501,9 +541,9 @@ Class AppConfig - + -

+

XName

@@ -537,9 +577,9 @@ Class AppConfig - + -

+

MakeXmlSource(string, string, bool)

diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.UserService.html b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.UserService.html new file mode 100644 index 0000000..4d859f5 --- /dev/null +++ b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.UserService.html @@ -0,0 +1,682 @@ + + + + + Class UserService | HiAPI-C# 2025 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
Table of Contents
+ +
+
+ +
+
+
+ +
+
+ + + +
+ +
+ + + +

+Class UserService +

+ +
+
Namespace
Hi.HiNcKits
+
Assembly
HiNc.dll
+
+ +

User Service.

+
+
+ +
+
public class UserService : IDisposable
+
+ + + + +
+
Inheritance
+
+ +
UserService
+
+
+ +
+
Implements
+
+ +
+
+ + +
+
Inherited Members
+
+ + + + + + + +
+ +
+
Extension Methods
+
+ + + + + + + +
+ + + + + +

Constructors +

+ + + + +

+ UserService() + +

+ +

Initializes a new instance of the UserService class.

+
+
+ +
+
public UserService()
+
+ + + + + + + + + + + + + + + +

+ UserService(UserConfig) + +

+ +

Initializes a new instance of the UserService class with the specified configuration.

+
+
+ +
+
public UserService(UserConfig appConfig)
+
+ +

Parameters

+
+
appConfig UserConfig
+

The application configuration.

+
+
+ + + + + + + + + + + + +

Properties +

+ + + + +

+ AdditionalStepPresentAccess + +

+ +

Gets or sets additional step presentation access configurations.

+
+
+ +
+
public Dictionary<string, PresentAccess> AdditionalStepPresentAccess { get; set; }
+
+ + + + + +

Property Value

+
+
Dictionary<string, PresentAccess>
+
+
+ + + + + + + + + + +

+ CandidateStepPresentKeyList + +

+ +

Candidate Step Present Key List for display. +Read only.

+
+
+ +
+
public List<string> CandidateStepPresentKeyList { get; }
+
+ + + + + +

Property Value

+
+
List<string>
+
+
+ + + + + + + + + + +

+ DisplayedStepPresentAccessList + +

+ +

StepPresentAccessList for display. +Read only.

+
+
+ +
+
public List<KeyValuePair<string, PresentAccess>> DisplayedStepPresentAccessList { get; }
+
+ + + + + +

Property Value

+
+
List<KeyValuePair<string, PresentAccess>>
+
+
+ + + + + + + + + + +

+ EnablePhysics + +

+ +

Gets whether physics features are enabled based on configuration and license.

+
+
+ +
+
public bool EnablePhysics { get; }
+
+ + + + + +

Property Value

+
+
bool
+
+
+ + + + + + + + + + +

+ IsPhysicsLicensed + +

+ +

Gets whether advanced physics features are licensed.

+
+
+ +
+
public bool IsPhysicsLicensed { get; }
+
+ + + + + +

Property Value

+
+
bool
+
+
+ + + + + + + + + + +

+ SelectedItem + +

+ +

Gets or sets the currently selected item in the application.

+
+
+ +
+
public object SelectedItem { get; set; }
+
+ + + + + +

Property Value

+
+
object
+
+
+ + + + + + + + + + +

+ StepPresentAccessDictionary + +

+ +

StepPresentAccessDictionary. +Read only.

+
+
+ +
+
public Dictionary<string, PresentAccess> StepPresentAccessDictionary { get; }
+
+ + + + + +

Property Value

+
+
Dictionary<string, PresentAccess>
+
+
+ + + + + + + + + + +

+ UserConfig + +

+ +

Gets or sets the application configuration.

+
+
+ +
+
public UserConfig UserConfig { get; set; }
+
+ + + + + +

Property Value

+
+
UserConfig
+
+
+ + + + + + + + + + +

+ UserConfigPath + +

+ +

Gets or sets the path to the application configuration file.

+
+
+ +
+
public string UserConfigPath { get; set; }
+
+ + + + + +

Property Value

+
+
string
+
+
+ + + + + + + + +

Methods +

+ + + + +

+ Dispose() + +

+ +

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

+
+
+ +
+
public void Dispose()
+
+ + + + + + + + + + + + + + + +

+ Dispose(bool) + +

+ +
+
+ +
+
protected virtual void Dispose(bool disposing)
+
+ +

Parameters

+
+
disposing bool
+
+
+ + + + + + + + + + + + + + +

+ LooseSaveUserConfig() + +

+ +

Schedules a loose save of the user configuration using a LooseRunner.

+
+
+ +
+
public void LooseSaveUserConfig()
+
+ + + + + + + + + + + + + + + +

+ SaveUserConfig() + +

+ +

Saves the user configuration to the file specified by UserConfigPath.

+
+
+ +
+
public void SaveUserConfig()
+
+ + + + + + + + + + + + + + +
+ +
+
+ + +
+ +
+ +
+
+ +
+ + + + diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.html b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.html index 625dbe2..982d4c7 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.HiNcKits.html @@ -94,35 +94,35 @@

Classes

-
-
AppConfig
-

Application/Environment Configuration

-
-
-
-
AppService
-

Application/Environment Service.

-
-
HiNcHost

Rich HiNC Service. Host class for HiNC functionality that provides project management, path resolution, and MongoDB integration.

-
-
-
-
HostConfig
-

Configuration for host-related settings.

LocalApp

Local application initialization and cleanup utilities.

+
+
+
+
LocalAppConfig
+

Configuration for host-related settings.

ProxyConfig

Configuration for proxy-related settings.

+
+
+
+
UserConfig
+

User Configuration

+
+
+
+
UserService
+

User Service.

diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.IProjectService.html b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.IProjectService.html index 4533d19..523a4ee 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.IProjectService.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.IProjectService.html @@ -185,38 +185,6 @@ Interface IProjectService - - -

- MachiningProjectPath - -

- -

Gets or sets the path to the machining project file.

-
-
- -
-
string MachiningProjectPath { get; set; }
-
- - - - - -

Property Value

-
-
string
-
-
- - - - - - - -

Methods

diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.LocalProjectService.html b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.LocalProjectService.html index 2ceedfa..b957908 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.LocalProjectService.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.LocalProjectService.html @@ -215,8 +215,8 @@ Apply absolute file path.

-

- LocalProjectService(AppService, ILogger<LocalProjectService>) +

+ LocalProjectService(UserService, ILogger<LocalProjectService>)

@@ -225,12 +225,12 @@ Apply absolute file path.

-
public LocalProjectService(AppService appService, ILogger<LocalProjectService> logger)
+
public LocalProjectService(UserService userService, ILogger<LocalProjectService> logger)

Parameters

-
appService AppService
+
userService UserService

The application service.

logger ILogger<LocalProjectService>
@@ -253,38 +253,6 @@ Apply absolute file path.

- - -

- AppService - -

- -

Gets the application service instance.

-
-
- -
-
public AppService AppService { get; }
-
- - - - - -

Property Value

-
-
AppService
-
-
- - - - - - - -

@@ -356,8 +324,7 @@ Apply absolute file path.

-

Gets or sets the path to the machining project file.

-
+
@@ -413,6 +380,38 @@ Apply absolute file path.

+ + +

+ UserService + +

+ +

Gets the application service instance.

+
+
+ +
+
public UserService UserService { get; }
+
+ + + + + +

Property Value

+
+
UserService
+
+
+ + + + + + + +

Methods

@@ -522,7 +521,7 @@ Apply absolute file path.

-
public Task LoadProject(string projectPath)
+
public void LoadProject(string projectPath)

Parameters

@@ -532,12 +531,6 @@ Apply absolute file path.

-

Returns

-
-
Task
-

A task representing the asynchronous operation

-
-
diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html index e8197f4..b040b42 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.MachiningProject.html @@ -2122,45 +2122,6 @@ Since the folder can be moving with the configuration file.

- - -

- ShowMessageBoard(string, string, BootstrapTheme) - -

- -

Shows a message board with the specified title, message, and theme.

-
-
- -
-
public void ShowMessageBoard(string title, string message, BootstrapTheme bootstrapThemeColor)
-
- -

Parameters

-
-
title string
-

The title of the message board

-
-
message string
-

The message to display

-
-
bootstrapThemeColor BootstrapTheme
-

The theme color for the message board

-
-
- - - - - - - - - - - -

@@ -2335,37 +2296,6 @@ Since the folder can be moving with the configuration file.

-

- OnShownMessageBoard - -

- -

Event that is triggered when a message board is shown.

-
-
- -
-
public event ShowMessageBoardDelegate OnShownMessageBoard
-
- - - - - - -

Event Type

-
-
ShowMessageBoardDelegate
-
-
- - - - - - - -

OnUpdatedInspectingQuantityFunc diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.ProxyProjectService.html b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.ProxyProjectService.html index 4846b1f..686fa46 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.ProxyProjectService.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.ProxyProjectService.html @@ -188,8 +188,8 @@ Apply relative file path from -

- ProxyProjectService(LocalProjectService, IOptions<ProxyConfig>) +

+ ProxyProjectService(LocalProjectService, ProxyConfig)

@@ -198,7 +198,7 @@ Apply relative file path from
-
public ProxyProjectService(LocalProjectService localProjectService, IOptions<ProxyConfig> proxyConfigOptions)
+
public ProxyProjectService(LocalProjectService localProjectService, ProxyConfig proxyConfig)

Parameters

@@ -206,7 +206,7 @@ Apply relative file path from
LocalProjectService

The local project service.

-
proxyConfigOptions IOptions<ProxyConfig>
+
proxyConfig ProxyConfig

The proxy configuration options.

@@ -238,7 +238,7 @@ Apply relative file path from
-
public string AdminDirectory { get; }
+
public string AdminDirectory { get; set; }
@@ -290,38 +290,6 @@ Apply relative file path from
- -

- MachiningProject - -

- -

Gets or sets the machining project instance.

-
-
- -
-
public MachiningProject MachiningProject { get; set; }
-
- - - - - -

Property Value

-
-
MachiningProject
-
-
- - - - - - - -

@@ -329,8 +297,7 @@ Apply relative file path from

Gets or sets the path to the machining project file.

- +
@@ -354,19 +321,19 @@ Apply relative file path from + -

- ProjectPathRelativeToAdmin +

+ ProxyConfig

-

Gets the project path relative to the admin directory.

+

Gets the proxy configuration options.

-
public string ProjectPathRelativeToAdmin { get; }
+
public ProxyConfig ProxyConfig { get; }
@@ -375,7 +342,7 @@ Apply relative file path from Property Value

-
string
+
ProxyConfig
@@ -386,19 +353,19 @@ Apply relative file path from + -

- ProxyConfigOptions +

+ RelativeProjectPath

-

Gets the proxy configuration options.

+

Gets the project path relative to the AdminDirectory.

-
public IOptions<ProxyConfig> ProxyConfigOptions { get; }
+
public string RelativeProjectPath { get; }
@@ -407,7 +374,7 @@ Apply relative file path from Property Value
-
IOptions<ProxyConfig>
+
string
@@ -527,7 +494,7 @@ Apply relative file path from
-
public Task LoadProject(string relativeFilePath)
+
public void LoadProject(string relativeFilePath)

Parameters

@@ -537,12 +504,6 @@ Apply relative file path from
Returns -
-
Task
-

A task representing the asynchronous operation

-
-
@@ -632,7 +593,7 @@ Apply relative file path from
-
public Task SaveAsProject(string relativeFilePath)
+
public void SaveAsProject(string relativeFilePath)

Parameters

@@ -642,11 +603,6 @@ Apply relative file path from
Returns -
-
Task
-
-
@@ -670,16 +626,10 @@ Apply relative file path from
-
public Task SaveProject()
+
public void SaveProject()
-

Returns

-
-
Task
-

A task representing the asynchronous operation.

-
-
diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeApi.html b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeApi.html index 553b1f8..e71d71a 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeApi.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeApi.html @@ -825,7 +825,7 @@ For legacy compatable.

[JsAce]
-[Obsolete]
+[Obsolete("Use MachiningResolution_mm instead.")]
 public double MachiningResolution { get; set; }
@@ -942,6 +942,40 @@ public double MachiningResolution_mm { get; set; } + + +

+ MillingCycleDivisionNum + +

+ +

Gets or sets the number of divisions per cycle for milling force calculation. +This property should be set before milling force evaluation if TrainMillingPara(SampleFlag, string, double, ICuttingPara) is intended to be used.

+
+
+ +
+
[JsAce]
+public static int MillingCycleDivisionNum { get; set; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + +

@@ -956,6 +990,7 @@ This property should be set before milling force evaluation if
[JsAce]
+[Obsolete("Use MillingCycleDivisionNum instead.")]
 public static int MillingForceCycleDivisionNum { get; set; }
diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeController.html b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeController.html index 4a5e756..b46255c 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeController.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.MachiningProcs.RuntimeController.html @@ -1368,6 +1368,40 @@ public double MachiningResolution_mm { get; set; } +
+ +

+ MillingCycleDivisionNum + +

+ +

Gets or sets the number of divisions per cycle for milling force calculation. +This property should be set before milling force evaluation if TrainMillingPara(SampleFlag, string, double) is intended to be used.

+
+
+ +
+
[JsAce]
+public static int MillingCycleDivisionNum { get; set; }
+
+ + + + + +

Property Value

+
+
int
+
+
+ + + + + + + +

@@ -1382,6 +1416,7 @@ This property should be set before milling force evaluation if
[JsAce]
+[Obsolete]
 public static int MillingForceCycleDivisionNum { get; set; }
diff --git a/App/wwwroot/HiAPI-docsite/api/toc.html b/App/wwwroot/HiAPI-docsite/api/toc.html index 64d8d3e..531b05b 100644 --- a/App/wwwroot/HiAPI-docsite/api/toc.html +++ b/App/wwwroot/HiAPI-docsite/api/toc.html @@ -587,9 +587,6 @@
Hi.Common.PathUtils -
  • Other Model: AppService
  • +
  • Other Model: <xref:Hi.HiNcKits.AppService>
  • Main Panel Layout

    Property Tab

    -

    Visible if AppService.EnablePhysics is true.

    +

    Visible if <xref:Hi.HiNcKits.AppService>.<xref:Hi.HiNcKits.AppService.EnablePhysics> is true.