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

[Frage] Visual Script not working when used through the action bar [Gelöst]

Schlagworte:

Hello, I made a script for faster U-shaped cladding, which when used via Visual Script works flawlessly (at least yesterday). However, when I added it to the ActionBar as a command it doesn’t work.
Decided it was temporary bug, but today AllPlan updated from 2022-01-03 to 2022-01-04 and now the script doesn’t even start via the Visual Script panel.
While rearranging (just moving them around) the nodes I got a message- "critical error in VS, please restart", but it didn’t help doing so. Any ideas/suggestions what might be the source of the problem?

Brief description of the script: Draw polyline-> create a wall based on the line-> offset the line to make a second wall-> used the two polylines to create a slab on top

Thank You in advance,
Dobromir

Anhänge (1)

Typ: text/xml
497-mal heruntergeladen
Größe: 29,23 KiB

Lösung anzeigen Lösung verbergen

I modified two lines in your script with text editor. It seems to work now in VE. (but we will still try to fix the problem you had.)

Could you please check again, if it now works with Actionbar? (I didn't test it with Actionbar)

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: text/xml
477-mal heruntergeladen
Größe: 29,23 KiB

I checked your script, it seems the node NodeWallPalette causes the problem in Allplan 2022-1-4. We will check that.

Just for your information. If you have the allplan trace window open, you will get following messages regarding the error:

  File "C:\ProgramData\Nemetschek\Allplan\2022\Etc\VisualScripts\Palettes\Architecture\NodeWallPalette.py", line 130, in _create_output
    wall_tier_prop.SetMaterial(build_ele.Material.value[tier_index])
IndexError: list index out of range

Product Owner API, Allplan GmbH

I modified two lines in your script with text editor. It seems to work now in VE. (but we will still try to fix the problem you had.)

Could you please check again, if it now works with Actionbar? (I didn't test it with Actionbar)

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: text/xml
477-mal heruntergeladen
Größe: 29,23 KiB

Zitiert von: Xinling
I modified two lines in your script with text editor. It seems to work now in VE. (but we will still try to fix the problem you had.)
Could you please check again, if it now works with Actionbar? (I didn't test it with Actionbar)

Yes, it now works both via VS and the Actionbar. Thank you!

Scheinbar erfolgt die Definition einer "leeren Liste" im pyp mit "[ ]" statt mit "[]".

Meint ihr nicht, dass diese Information für einige Python-API- und Visual-Scripting-Benutzer interessant sein könnte?

Anhänge (1)

Typ: image/png
69-mal heruntergeladen
Größe: 78,49 KiB

Zitiert von: Nemo
Scheinbar erfolgt die Definition einer "leeren Liste" im pyp mit "[ ]" statt mit "[]".
Meint ihr nicht, dass diese Information für einige Python-API- und Visual-Scripting-Benutzer interessant sein könnte?

Ich habe das Skript schnell modifiziert, sodass der Anwender weiter damit arbeiten kann.

Ich bin nicht sicher, ob "[ ]" als "leere Liste" wirklich gewollt wird. Es kann ein Fehler sein, da es nicht erwartet ist. Daher meinte ich, dass wir das Problem noch anschauen wollten.

Product Owner API, Allplan GmbH


https://campus.allplan.com/ verwendet Cookies  -  Mehr Informationen

Akzeptieren