Autodesk / Autodesk/PowerShapeAndPowerMillAPI

sNCProgram.Toolpaths.Count returns zero

未关闭
#34 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
52
派生
49
PR 合并指标
30 天内没有已合并 PR

描述

Hi Luke,

Hope you can help me with this. I've run below code and not sure why the toolpaths count I'm getting is 0. There are definitely toolpaths inside the NC program. Please note this is old 2017 dated project, which I want to modify and re-post. I have just checked there is no issue with a project created in 2021 version of PowerMill. I even created new NC program, added toolpaths to this freshly created NC program - same issue - Toolpath count=0

Please approach me and I can send you the whole affected project, for you to investigate this.

I've updated project to 1.1.53 in NuGet but still the same issue.

**_powerMILL = New PMAutomation(Autodesk.ProductInterface.InstanceReuse.UseExistingInstance)
Dim pSession As PMProject = powerMILL.ActiveProject

For Each sNCProgram As PMNCProgram In pSession.NCPrograms
If sNCProgram.IsActive Then
MsgBox("Toolpaths count =" & sNCProgram.Toolpaths.Count)
End If
Next_**

![image](https://user-images.githubusercontent.com/13207483/108239423-ccef9b80-7141-11eb-919f-bb05d5babb8e.png)
![image](https://user-images.githubusercontent.com/13207483/108239634-03c5b180-7142-11eb-9cde-12d3dbedcd09.png)

Hope you can help me with this.

Cheers
Arthur

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reproducing the Visual Basic example against the affected 2017 project and a newly created NC program, checking PMNCProgram.Toolpaths.Count with PowerMill API version 1.1.53. Compare the result with a project created in the 2021 PowerMill version; done means determining why contained toolpaths are not counted or documenting the version-specific limitation.

由索引模型根据 Issue 内容生成。

评估

技术栈
visualbasic
领域
api
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。