Support Forum

[Question] Visual Script not working when used through the action bar [Solved]

Tags:
  • [AIDP-175297]

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

Attachments (1)

Type: text/xml
Downloaded 714 times
Size: 29,23 KiB

Show solution Hide solution

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

Attachments (1)

Type: text/xml
Downloaded 703 times
Size: 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

Attachments (1)

Type: text/xml
Downloaded 703 times
Size: 29,23 KiB

Quote by 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?

Attachments (1)

Type: image/png
Downloaded 69 times
Size: 78,49 KiB

Quote by 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