Support Forum

[Frage] Python code for running automatically, instead of showing the palette!

Schlagworte:
  • Allplan!

Can anyone share the python code which runs automatically, when you click the python-part image in the palette instead of opening the UI palette!

Thanks in advance!
Primoz

Hi Primoz,

do you mean the code for the preview drawing inside the palette? This is done by

def create_preview(build_ele_list, _build_ele_composite, _doc):
"""
Creation of object preview
"""

Best regards
Horst