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] object rotation [Gelöst]

Schlagworte:
  • [AIDP-169628]

hello. Dear users and developers

I'm practicing rotating an object using Vs.
I compressed the vs file and the drawing file in the attached file.

If you open the file, a vs file was created to arrange Box objects along a three-dimensional line.
However, as shown in the video, the objects are arranged well in the xz plane, but as the angle rotates and goes from the 1st quadrant to the 4th quadrant, the shape is strange.

Am I missing a calculation method? I want to know how to set the angle values. I'd love to hear your thoughts on how to approach 3D rotation.

Anhänge (3)

Typ: image/jpeg
92-mal heruntergeladen
Größe: 453,26 KiB
Typ: image/gif
95-mal heruntergeladen
Größe: 3,36 MiB
Typ: application/zip
773-mal heruntergeladen
Größe: 396,68 KiB

Lösung anzeigen Lösung verbergen

Your "flow chart" is very confusing!
I have chosen the following procedure:
1. determine 2D rotation angle (angle in XY plane)
2. calculate 3D angle (angle in rotated XZ plane)
3. rotate original object around Y-axis with 3D-angle
4. rotate result of 3. around Z-axis with 2D-angle
5. move result of 4. to start and end point

@Allplan
The calculation of the 3D angle of a vector should be possible in a node!
AngleXZ and AngleYZ are not helpful for this often to be solved task!
Better would be to have an Node, which get a AxisPlacement3D from Vector,
and transform the objects with this AxisPlacement3D directly or via Matrix3D.
That nodes would havee a great benefit for all visual scripting users...

Anhänge (2)

Typ: image/png
108-mal heruntergeladen
Größe: 261,27 KiB
Typ: application/zip
689-mal heruntergeladen
Größe: 2,94 KiB

Your "flow chart" is very confusing!
I have chosen the following procedure:
1. determine 2D rotation angle (angle in XY plane)
2. calculate 3D angle (angle in rotated XZ plane)
3. rotate original object around Y-axis with 3D-angle
4. rotate result of 3. around Z-axis with 2D-angle
5. move result of 4. to start and end point

@Allplan
The calculation of the 3D angle of a vector should be possible in a node!
AngleXZ and AngleYZ are not helpful for this often to be solved task!
Better would be to have an Node, which get a AxisPlacement3D from Vector,
and transform the objects with this AxisPlacement3D directly or via Matrix3D.
That nodes would havee a great benefit for all visual scripting users...

Anhänge (2)

Typ: image/png
108-mal heruntergeladen
Größe: 261,27 KiB
Typ: application/zip
689-mal heruntergeladen
Größe: 2,94 KiB

Thanks for your kind reply.
I am studying Visual Script and the answers on the forum are very helpful.
If Allplan has a more detailed explanation of each node, it seems to be more useful.
thank you