Support Forum

[Frage] Smart part "special" beam


Hi, does anyone know how to make a beam smartpart where it is possible to move points 1 and 2 in x,y,z?

Anhänge (1)

Typ: image/jpeg
136-mal heruntergeladen
Größe: 57,03 KiB

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

Point1 = Insertation Point / Local origin of SmartPart
Place Handle at Point2
Calc rotation anlges in 2D and 3D
Add rotations with calced angles
Create BOX

Anhänge (2)

Typ: text/xml
657-mal heruntergeladen
Größe: 34,46 KiB
Typ: video/mp4
713-mal heruntergeladen
Größe: 503,62 KiB
11 - 20 (31)

Hi Danilos,

Well, it depends...
With these examples, PRISM should work perfectly and will be a little faster because the final form will be generated directly.


Zitiert von: Bertrand_C
Hi Danilos,
Well, it depends...

With these examples, PRISM should work perfectly and will be a little faster because the final form will be generated directly.


Thank you Bertrand for your indication!

Zitiert von: Bertrand_C
Hi Danilos,
Well, it depends...

With these examples, PRISM should work perfectly and will be a little faster because the final form will be generated directly.


What is the fastest method to manage the combinations of the various types of heads?
For example if the shape of the heads is made with prism (up to half beam) and incorporated in group?

"test_1_sx":
GROUP "t1"
PRISM ...
GROUP_END
RETURN

"test_2_sx":
GROUP "t2"
PRISM ...
GROUP_END
RETURN
...
"test_n_sx":
GROUP "tn"
PRISM ...
GROUP_END
RETURN

"test_1_dx":
GROUP "t1"
PRISM ...
GROUP_END
RETURN

"test_2_dx":
GROUP "t2"
PRISM ...
GROUP_END
RETURN
...
"test_n_dx":
GROUP "tn"
PRISM ...
GROUP_END
RETURN

Hello Danilos,

In my point of view, use PUT instead.
You can define the points of your different heads as sub (GOSUB) and call up the one selected before creating the prism.
This will be executed faster and you can control the thickness and the length of the beam independently.
In addition, you can use a factor to be able to change the size of the shape of the head if needed.


Zitiert von: Bertrand_C
Hello Danilos,
In my point of view, use PUT instead.

You can define the points of your different heads as sub (GOSUB) and call up the one selected before creating the prism.

This will be executed faster and you can control the thickness and the length of the beam independently.

In addition, you can use a factor to be able to change the size of the shape of the head if needed.


Thank you Bertrand for information. Unfortunately I don't know the PUT functionality!

Try it.
It is simple and easy. It can help you to make your SmartParts.
Have a look at the online help about PUT and also about status codes.

For example:
- without PUT =
PRISM_ 4 , 0.2 , 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1

- with PUT =
PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
PRISM_ NUM_SP / 3 , 0.2 , GET ( NUM_SP )

- If you need to create several prismes with the same shape (but not the same thickness), you can do like that:
PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
PRISM_ NUM_SP / 3 , 0.2 , USE ( NUM_SP )
TRANSY 1.2
PRISM_ NUM_SP / 3 , 0.25 , USE ( NUM_SP )
TRANSY 1.2
PRISM_ NUM_SP / 3 , 0.3 , GET ( NUM_SP )
RESTORE 2


Zitiert von: Bertrand_C
Try it.

It is simple and easy. It can help you to make your SmartParts.

Have a look at the online help about PUT and also about status codes.
For example:

- without PUT =

PRISM_ 4 , 0.2 , 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
- with PUT =

PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
PRISM_ NUM_SP / 3 , 0.2 , GET ( NUM_SP )
- If you need to create several prismes with the same shape (but not the same thickness), you can do like that:

PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
PRISM_ NUM_SP / 3 , 0.2 , USE ( NUM_SP )
TRANSY 1.2
PRISM_ NUM_SP / 3 , 0.25 , USE ( NUM_SP )
TRANSY 1.2
PRISM_ NUM_SP / 3 , 0.3 , GET ( NUM_SP )
RESTORE 2


Thank you very much for example and information for use of Put. Goodbye.

Zitiert von: Bertrand_C
Try it.

It is simple and easy. It can help you to make your SmartParts.

Have a look at the online help about PUT and also about status codes.
For example:

- without PUT =

PRISM_ 4 , 0.2 , 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
- with PUT =

PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
PRISM_ NUM_SP / 3 , 0.2 , GET ( NUM_SP )
- If you need to create several prismes with the same shape (but not the same thickness), you can do like that:

PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
PRISM_ NUM_SP / 3 , 0.2 , USE ( NUM_SP )
TRANSY 1.2
PRISM_ NUM_SP / 3 , 0.25 , USE ( NUM_SP )
TRANSY 1.2
PRISM_ NUM_SP / 3 , 0.3 , GET ( NUM_SP )
RESTORE 2

Hi Bertrand, in reference to the attached sketch, I think the problem (for me) is to connect the points of head 1 with those of head 2 in order to make the whole prism. In your example you made a prism by inserting in PUT all the points that make up the final prism.

Anhänge (1)

Typ: image/jpeg
20-mal heruntergeladen
Größe: 68,68 KiB

Hello Danilos,

When you use PUT is like you put values in a bag (but you keep the order).
So, doing this:
PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1

is exactly the same as this:
PUT 0.0 , 0.0 , 1
PUT 2.0 , 0.0 , 1
PUT 2.0 , 0.3 , 1
PUT 0.0 , 0.3 , -1

These 4 points are a rectangle.
If you want to cut one of the corners, you can do this:
PUT 0.0 , 0.0 , 1
PUT 1.9 , 0.0 , 1
PUT 2.0 , 0.1 , 1
PUT 2.0 , 0.3 , 1
PUT 0.0 , 0.3 , -1

So, as you can see, you can easily combine your points to get what you want.
For example, you can have two groups of points for each side of the beam.
One group is the left of the beam and the other one is the right:

Rectangle =
PUT 0.0 , 0.3 , 1 , 0.0 , 0.0 , 1 ! (left)
PUT 2.0 , 0.0 , 1 , 2.0 , 0.3 , -1 ! (right)

Rectangle with cut corner =
PUT 0.0 , 0.3 , 1 , 0.0 , 0.0 , 1 ! (left)
PUT 1.9 , 0.0 , 1 , 2.0 , 0.1 , 1 , 2.0 , 0.3 , -1 ! (right)

Rectangle with cut corner by arc =
PUT 0.0 , 0.3 , 1 , 0.0 , 0.0 , 1 ! (left)
PUT 1.85 , 0.0 , 1 , 2.0 , 0.0 , 900 , 0 , -90 , 4000 , 2.0 , 0.3 , -1 ! (right)

The first line is identical, but the second one is different.
You can define all the shapes you need and combine them to get the selected result.


Anhänge (1)

Typ: image/png
20-mal heruntergeladen
Größe: 935,00 B

Zitiert von: Bertrand_C
Hello Danilos,
When you use PUT is like you put values in a bag (but you keep the order).

So, doing this:

PUT 0.0 , 0.0 , 1 , 2.0 , 0.0 , 1 , 2.0 , 0.3 , 1 , 0.0 , 0.3 , -1
is exactly the same as this:

PUT 0.0 , 0.0 , 1
PUT 2.0 , 0.0 , 1
PUT 2.0 , 0.3 , 1
PUT 0.0 , 0.3 , -1
These 4 points are a rectangle.

If you want to cut one of the corners, you can do this:

PUT 0.0 , 0.0 , 1
PUT 1.9 , 0.0 , 1
PUT 2.0 , 0.1 , 1
PUT 2.0 , 0.3 , 1
PUT 0.0 , 0.3 , -1
So, as you can see, you can easily combine your points to get what you want.

For example, you can have two groups of points for each side of the beam.

One group is the left of the beam and the other one is the right:
Rectangle =

PUT 0.0 , 0.3 , 1 , 0.0 , 0.0 , 1 ! (left)

PUT 2.0 , 0.0 , 1 , 2.0 , 0.3 , -1 ! (right)
Rectangle with cut corner =

PUT 0.0 , 0.3 , 1 , 0.0 , 0.0 , 1 ! (left)

PUT 1.9 , 0.0 , 1 , 2.0 , 0.1 , 1 , 2.0 , 0.3 , -1 ! (right)
Rectangle with cut corner by arc =

PUT 0.0 , 0.3 , 1 , 0.0 , 0.0 , 1 ! (left)

PUT 1.85 , 0.0 , 1 , 2.0 , 0.0 , 900 , 0 , -90 , 4000 , 2.0 , 0.3 , -1 ! (right)
The first line is identical, but the second one is different.

You can define all the shapes you need and combine them to get the selected result.


Thank you very much Bertrand for your example and clarification. Now I understand how to do it!
11 - 20 (31)