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] OperatorEqual doesn't accept input [Gelöst]

Schlagworte:
  • 2022-1-4

Why does the node OperatorEqual not accept the output value „ObjectSwitcher“ of the node Output2Switcher as input value?

Gruß Felix
Allplan 2024-0-1

Anhänge (1)

Typ: image/png
48-mal heruntergeladen
Größe: 41,35 KiB

Lösung anzeigen Lösung verbergen

Zitiert von: f_hoeser
My fault. I thougt that VS is smart enougt to convert data types on its own in a logical way.

Basically, I would say that's not your fault. I assume, everyone expects that VS should be able to convert some of the data types automatically. The ValueTypes such as RadioButtonGroup, CheckBox and different ComboBox sound weird, because they are actually used by PythonPart script to show the correct controller in Allplan Palette. That's also the reason why Boolean is currently called CheckBox in VS Editor...

VS nodes inherit that, as VS nodes and PythonPart script share the same framework. But the problem is, that VS Editor currently also uses them to detect valid connection. Therefore, you perhaps already noticed that, VS Editor sometimes won't allow some connections, even though it feels like, they should work.

However, We do plan to improve that in future.

Product Owner API, Allplan GmbH

Very simple: Because the Node OperatorEqual does not accept data of type RadioButtonGroup!
What kind of data type should that be?

Also the "accepted" so called data types of the Node OperatorEqual are a bit strange:
What should StringComboBox be for a datatype ? list of string ?
And what else should a DynamicStringComboBox be? A dynamic string ?

And this one:
PitcureResourceButtonList
PictureButtonList
PitcureResourceComboBox
PictureButtonComboBox

What is this?

And Geometric datatypes are missing entirely: Point3D, Vector3D, ...
For this you would need a threshold value (epsilon) for coordinate values.

The solution could be: Take Node RadioButtonGroup and place in front of Output2Switcher.RadioButtonGroup has an output with datatype Integer. This one you can connect to OperatorEqual.

And why the warning is occured, that an (switched) input is empty?
The warning should only occur, if the input is not connected!

Anhänge (2)

Typ: image/png
53-mal heruntergeladen
Größe: 97,59 KiB
Typ: image/png
58-mal heruntergeladen
Größe: 175,57 KiB

What data type should that be?

My fault. I thougt that VS is smart enougt to convert data types on its own in a logical way.
For example: OperatorEqual takes the RadioButtonGroup as integer.
I was blinded by the values that show up in the picture below.

Gruß Felix
Allplan 2024-0-1

Anhänge (1)

Typ: image/png
63-mal heruntergeladen
Größe: 49,64 KiB

Zitiert von: f_hoeser
My fault. I thougt that VS is smart enougt to convert data types on its own in a logical way.

Basically, I would say that's not your fault. I assume, everyone expects that VS should be able to convert some of the data types automatically. The ValueTypes such as RadioButtonGroup, CheckBox and different ComboBox sound weird, because they are actually used by PythonPart script to show the correct controller in Allplan Palette. That's also the reason why Boolean is currently called CheckBox in VS Editor...

VS nodes inherit that, as VS nodes and PythonPart script share the same framework. But the problem is, that VS Editor currently also uses them to detect valid connection. Therefore, you perhaps already noticed that, VS Editor sometimes won't allow some connections, even though it feels like, they should work.

However, We do plan to improve that in future.

Product Owner API, Allplan GmbH