icon

Das Wissen aller Anwender nutzen

Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

Insert a SmartPart or Macro from a PythonPart in Allplan 2026?


Hi everyone,
I’m just starting to work with PythonParts in Allplan 2026 and I’m trying to understand if it’s possible to insert a SmartPart (.smt) or a Macro (.nmk) directly from a PythonPart.
I tried a few things but I always get an error that the element type doesn’t exist, so before wasting more time I just want to ask:
is this operation actually possible in Allplan 2026, or is it no longer supported?
Thanks!

http://www.app-easy.it | APP-Easy Architecture for Allplan

Hi,

Here the documentation for adding objects from the libray.

Please note that your PythonPart must have at least one geometric object (2d or 3d - can be in help construction) to select and apply modification on it.

Best regards
Christophe

PS example here

Hi Christophe,

thank you very much for the information and the example.

From what I understand, SmartParts are not implemented yet in PythonParts, right?
That’s a pity, because I was considering migrating some of my SmartParts to PythonParts, and being able to import a SmartPart directly would have allowed a smoother and more gradual transition.

Thanks again for your help!

Best regards,
Giorgio

http://www.app-easy.it | APP-Easy Architecture for Allplan