OCCTProxy

occtProxy内核文件接口文档


GetGlobalTraceConfig

<p><strong>事件名称</strong>:GetGlobalTraceConfig</p> <p><strong>接口形式</strong>:方法</p> <p><strong>请求方式</strong>:调用<code>OCCTProxy</code>的<code>GetGlobalTrace</code>方法(注意:这里可能是一个小错误,接口名应该是<code>GetGlobalTraceConfig</code>而不是<code>SetTrace</code>)</p> <p><strong>接口描述</strong>: 获取当前轨迹的全局配置数据,包括各种工艺参数和设置。</p> <p><strong>返回数据格式</strong>: <code>Dictionary&amp;lt;String, Object&amp;gt;</code></p> <pre><code class="language-json"> { &amp;quot;ResultFlag&amp;quot;: int, // 操作结果标志,1表示成功,非1表示出错 &amp;quot;ResultMsg&amp;quot;: String, // 操作结果信息或错误消息 &amp;quot;Data&amp;quot;: Dictionary&amp;lt;String, Object&amp;gt; // 包含全局配置数据的字典 { &amp;quot;ToolInOutMoveSpeed&amp;quot;: int, // 进出刀点打磨速度 &amp;quot;ApproachPointDistance&amp;quot;: double, // 接近点的距离 &amp;quot;FallbackPointDistance&amp;quot;: double, // 退刀点的距离 &amp;quot;SharpLineMinSection&amp;quot;: double, // 尖角段最小距离,小于此值则不会判断成尖角段 &amp;quot;VerticalTangentAngleThreshold&amp;quot;: double, // 竖直段正切角度阈值 &amp;quot;SharpCurvatureRadiusThreshold&amp;quot;: double, // 尖角段平均切线变化量,用于判断尖角段 &amp;quot;ToGlobal&amp;quot;: bool, // 是否应用后续轨迹 &amp;quot;ToolSpinEnabled&amp;quot;: bool, // 6轴是否旋转 &amp;quot;StraightTransitionLength&amp;quot;: double // 直线过渡段长度 } }</code></pre> <p><strong>请求参数</strong>: 无</p> <p><strong>注意事项</strong>:</p> <ul> <li>在调用此接口之前,请确保<code>OCCTProxy</code>实例已经正确初始化,并且DLL已经加载。</li> <li>返回的<code>Data</code>字典包含了当前轨迹的全局配置参数,每个键对应一个参数的名称,值对应该参数的具体设置。</li> <li>如果在获取全局配置数据时发生错误,<code>ResultFlag</code> 将不为1,并且 <code>ResultMsg</code> 将包含错误信息,请根据这些信息进行排查和处理。</li> </ul>

页面列表

ITEM_HTML