Autodesk / Autodesk/PowerShapeAndPowerMillAPI
sNCProgram.Toolpaths.Count returns zero
- Lenguaje dominante
- C#
- Estrellas
- 52
- Forks
- 49
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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_**


Hope you can help me with this.
Cheers
Arthur
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- visualbasic
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100