icon

Support Forum

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