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.

Attachments (1)

img
20210423_174337.png
Type: image/png
Downloaded 21 times
Size: 114,26 KiB
1 - 10 (10)
  • 1

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.

Attachments (2)

Type: application/zip
Downloaded 15 times
Size: 402,64 KiB
Type: text/xml
Downloaded 14 times
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

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

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

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

1 - 10 (10)
  • 1

https://campus.allplan.com/ uses cookies  -  More information

Accept