Hello all,
I am trying to create some building elements from within my .py file (interactor). But at some point Allplan keeps crashing.
This is my code:
def on_control_event(pyp_doc: BuildingElement,
event_id: int):
serv = pyp_doc.palette_service
palette = serv.palette
builder = palette.GetPythonWpfPaletteBuilder()
# reset() does not thrown an error
builder.Reset()
# once this add seperator is called, a MemoryException is thrown
builder.AddSeparator(1, "expander")
While debugging, I do see that everything has the functions I am calling, so this should not be an issue...
Maybe my "expander" string, which I am passing as argument, is wrong, but I don't know what to put there (I am assuming it is a new id?)
Help is very much appreciated!