[Question] OperatorEqual doesn't accept input [Solved]

Tags:
  • 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

Attachments (1)

Type: image/png
Downloaded 48 times
Size: 41,35 KiB

Show solution Hide solution

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

Attachments (2)

Type: image/png
Downloaded 53 times
Size: 97,59 KiB
Type: image/png
Downloaded 58 times
Size: 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

Attachments (1)

Type: image/png
Downloaded 63 times
Size: 49,64 KiB

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