Foro de Soporte Allplan

sweep xy section rotate


This is the first time using visual scripts.

I am making h steel truss using sweep xy section as shown in the image below, but the rotation is strange in the shape (red object) of (x cross part).
The ivory colored object is the correct shape. I want to automatically adjust the rotation by selecting the 3d Line.

Please share information on how to do it.

Adjuntos (1)

Type: image/png
Descargado 58 veces
Size: 114,26 KiB

Show most helpful answer Hide most helpful answer

Hello,

maybe you can use a plane node, which defines the local coordinate system of the truss in your model. This plane can be set as matrix object for a transformation (NodeTransform).

Best regards
Horst

Hello,

please attach the created pyp file, so we can have a look at the problem.

Best regards
Horst

Yes. I'm going to share a "pyp" file and a sample project file.

It does not matter to create an object for the direction of progress, but when you extrude an object in an inclined or other direction, the object seems to be distorted without knowing what it is.

I don't know if I have a lack of understanding of 3D object creation.

Adjuntos (2)

Type: application/zip
Descargado 939 veces
Size: 402,64 KiB
Type: text/xml
Descargado 980 veces
Size: 28,66 KiB

Hello,

for the sweep by the xy-section the tangent at the start point of the path is used to get the rotation of the xy-profile for the extrusion. In your case the path elements only can be used to get the inclination of the path. The rotation of the xy-profile around the profile axis must be done separately.

Best regards
Horst

Cita de: Horst_Hohmann
Hello,
for the sweep by the xy-section the tangent at the start point of the path is used to get the rotation of the xy-profile for the extrusion. In your case the path elements only can be used to get the inclination of the path. The rotation of the xy-profile around the profile axis must be done separately.
Best regards

Horst

Thanks for the answer.

I'm looking for a solution to what you've been talking about. Any ideas on how to make a 3D rotation on a truss crossline with reference to the transverse reference line?

Hello,

maybe you can use a plane node, which defines the local coordinate system of the truss in your model. This plane can be set as matrix object for a transformation (NodeTransform).

Best regards
Horst

Hi,
You might like to think about this: the start point and end point of a truss element (node-i node-j) define the local z-axis of a vector. From that you should get all the alignment values required to align your shape tangentially and at the correct twist locally to realise your truss. This also defines a 3D line which you could model at 0,0,0 at the correct length before moving it to the correct location and the correct angle...

Hello,

yes, that was I'm thinking about. This is surely only one possibility, but from my current point of view the first I would try. In an example, which I have created, I have used a similar solution.

Best regards
Horst

Cita de: Horst_Hohmann
Hello,
maybe you can use a plane node, which defines the local coordinate system of the truss in your model. This plane can be set as matrix object for a transformation (NodeTransform).
Best regards

Horst

Hello. Horst.

Thank you for your kind response.

Could you please show or share the Node-Transform sample you mentioned?
I still don't understand well about 3D plane rotation or matrix.

Cita de: jaeheungkim

Could you please show or share the Node-Transform sample you mentioned?

Maybe you can try something shown in this post to help you understand the 3d plane and the node transform.

Product Owner API, Allplan GmbH