Archived
deploy webservice static-file routing for docsite folder URLs, per-instance step-cache db, and constant-height panel title bars.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="title" content="Class NcFileCommand | HiAPI-C# 2025 ">
|
||||
|
||||
<meta name="description" content="Command for executing NC code from a file.">
|
||||
<meta name="description" content="Command for executing an NC program file (Nc is the umbrella term: brand controller code, NX-CL or CSV). The runner is picked by — (the default) detects by file extension: .cl/.cls/.clsf play as NX-CL, .csv as CSV, anything else as brand NC code. The GUI labels it &ldquo;Program File&rdquo;.">
|
||||
<link rel="icon" href="../img/HiAPI.favicon.ico">
|
||||
<link rel="stylesheet" href="../public/docfx.min.css">
|
||||
<link rel="stylesheet" href="../public/main.css">
|
||||
@@ -97,12 +97,20 @@ Class NcFileCommand
|
||||
<dl><dt>Assembly</dt><dd>HiNc.dll</dd></dl>
|
||||
</div>
|
||||
|
||||
<div class="markdown summary"><p>Command for executing NC code from a file.</p>
|
||||
<div class="markdown summary"><p>Command for executing an NC program file (<code>Nc</code> is the umbrella term:
|
||||
brand controller code, NX-CL or CSV). The runner is picked by
|
||||
<a class="xref" href="Hi.SessionCommands.NcFileCommand.html#Hi_SessionCommands_NcFileCommand_NcKind">NcKind</a> — <a class="xref" href="Hi.MachiningProcs.NcKind.html#Hi_MachiningProcs_NcKind_Auto">Auto</a>
|
||||
(the default) detects by file extension: <code>.cl</code>/<code>.cls</code>/<code>.clsf</code>
|
||||
play as NX-CL, <code>.csv</code> as CSV, anything else as brand NC code.
|
||||
The GUI labels it “Program File”.</p>
|
||||
</div>
|
||||
<div class="markdown conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public class NcFileCommand : ITitleCommand, ISessionCommand, IMakeXmlSource</code></pre>
|
||||
<pre><code class="lang-csharp hljs">[CultureText("zh-Hant", "程式檔案")]
|
||||
[CultureText("zh-Hans", "程序文件")]
|
||||
[CommandCatalog(CommandCategory.Program, Order = 0)]
|
||||
public class NcFileCommand : ITitleCommand, ISessionCommand, IMakeXmlSource</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -220,7 +228,7 @@ Class NcFileCommand
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="Hi.SessionCommands.NcFileCommand.html">NcFileCommand</a> class with the specified NC file path.</p>
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="Hi.SessionCommands.NcFileCommand.html">NcFileCommand</a> class with the specified NC program file path.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
@@ -231,7 +239,7 @@ Class NcFileCommand
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>ncFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The NC file path.</p>
|
||||
<dd><p>The NC program file path.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -293,7 +301,7 @@ Class NcFileCommand
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Path to the NC file.</p>
|
||||
<div class="markdown level1 summary"><p>Path to the NC program file.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
@@ -318,6 +326,39 @@ Class NcFileCommand
|
||||
|
||||
|
||||
|
||||
<a id="Hi_SessionCommands_NcFileCommand_NcKind_" data-uid="Hi.SessionCommands.NcFileCommand.NcKind*"></a>
|
||||
|
||||
<h3 id="Hi_SessionCommands_NcFileCommand_NcKind" data-uid="Hi.SessionCommands.NcFileCommand.NcKind">
|
||||
NcKind
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Which runner plays <a class="xref" href="Hi.SessionCommands.NcFileCommand.html#Hi_SessionCommands_NcFileCommand_NcFile">NcFile</a>;
|
||||
<a class="xref" href="Hi.MachiningProcs.NcKind.html#Hi_MachiningProcs_NcKind_Auto">Auto</a> detects by extension.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public NcKind NcKind { get; set; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.MachiningProcs.NcKind.html">NcKind</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_SessionCommands_NcFileCommand_XName_" data-uid="Hi.SessionCommands.NcFileCommand.XName*"></a>
|
||||
|
||||
<h3 id="Hi_SessionCommands_NcFileCommand_XName" data-uid="Hi.SessionCommands.NcFileCommand.XName">
|
||||
@@ -356,19 +397,36 @@ Class NcFileCommand
|
||||
|
||||
<a id="Hi_SessionCommands_NcFileCommand_GetCommandTitle_" data-uid="Hi.SessionCommands.NcFileCommand.GetCommandTitle*"></a>
|
||||
|
||||
<h3 id="Hi_SessionCommands_NcFileCommand_GetCommandTitle" data-uid="Hi.SessionCommands.NcFileCommand.GetCommandTitle">
|
||||
GetCommandTitle()
|
||||
<h3 id="Hi_SessionCommands_NcFileCommand_GetCommandTitle_Hi_Common_ICommandTextSource_" data-uid="Hi.SessionCommands.NcFileCommand.GetCommandTitle(Hi.Common.ICommandTextSource)">
|
||||
GetCommandTitle(ICommandTextSource)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the title of the command.</p>
|
||||
<div class="markdown level1 summary"><p>Gets the title of the command — one row in a command list or a
|
||||
mission tree — composed from the caller's vocabulary: the command owns
|
||||
the composition and degradation rules, the caller owns the language.</p>
|
||||
<p>
|
||||
The shape is <code>Name</code>, or <code>Name [detail]</code> once there is a
|
||||
detail worth showing. The NAME always leads and is never dropped:
|
||||
a row must say WHAT it is even when the detail is a title the user
|
||||
wrote, otherwise a newcomer cannot tell a command list from a
|
||||
script. The detail trails because these rows truncate from the
|
||||
right. An empty detail takes the bare-name form rather than
|
||||
rendering dangling brackets.
|
||||
</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public string GetCommandTitle()</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public string GetCommandTitle(ICommandTextSource text)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>text</code> <a class="xref" href="Hi.Common.ICommandTextSource.html">ICommandTextSource</a></dt>
|
||||
<dd><p>Culture-bearing vocabulary the static words are taken from.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
|
||||
Reference in New Issue
Block a user