Support Forum

[Frage] NC-Generator from a Pythonpart [Gelöst]

Schlagworte:
  • NC-Generator
  • PythonParts

Hello forum,

I wonder if there is a way to control the NC-Generator from a PythonParts. Has anyone already addressed this topic?

Basically, what I'd like to achieve is to launch a PythonPart, manually select some elements in the view, and then have the PythonPart automatically select the appropriate NCGen driver and execute the task.
I don't mind if the NCGen window opens and closes or if it remains closed.

Thanks,
Gaël

Lösung anzeigen Lösung verbergen

Hi Gael,

the listgen is exposed in Python, you can find an example here:
in the 2026 WIP2 you find in the library
Library\Default\PythonParts\Precast Elements
the Python "ListGenProcessor"

the NC Gen ist not exposed to Python until now.

If you have questions you can write me a mail.

Product Owner Allplan Precast

Hi Gael,

the listgen is exposed in Python, you can find an example here:
in the 2026 WIP2 you find in the library
Library\Default\PythonParts\Precast Elements
the Python "ListGenProcessor"

the NC Gen ist not exposed to Python until now.

If you have questions you can write me a mail.

Product Owner Allplan Precast

Hi Klaus,

Ok, I'll give it a shot and see what I can do with this ListGen example in the WIP2.
However, access to the NCgen would be very (very very) useful. Maybe in a future version?
Thanks.

See you,
Gaël