Support Forum

[Frage] Mined Tunnel modelling divide into 1m length segment with or assign attributes [Gelöst]


Hi,

We are going to start a new project which is a detailed design for Mined tunnels.
The task is to create a 3D model of the Mined Tunnel with the corresponding alignment and sectional profile and will divide into 1m segments throughout the alignment. Then assign attributes to each 3D object.

With the current information, we might end up creating thousands of 3D object that also requires an attribute (e.g., Object Name and Cobie info, etc).
This task is impossible without using Visual scripting. There's a lot of repetitive work that we can easily reduce by using VS.

I have created a simple VS that divides the alignment into a 1m length segment. See attached screenshot.
But the problem is that it only divides up to a whole number with 1m length and stops. The remaining length will not create a 3D object.
I know there's a missing node, but I couldn't figure out which node to use. or it can be a different approach.

As for the attributes, I'm looking for something that can import from CSV or XLS.

Greatly appreciate it if you can help to add the missing nodes or otherwise re-arrange the nodes. Also kindly advise on how to go about the attributes.

Anhänge (1)

Typ: image/png
124-mal heruntergeladen
Größe: 62,94 KiB

Lösung anzeigen Lösung verbergen

I would take the node "CurveSplit".

Anhänge (3)

Typ: image/png
206-mal heruntergeladen
Größe: 151,38 KiB
Typ: text/xml
761-mal heruntergeladen
Größe: 4,91 KiB
Typ: text/xml
716-mal heruntergeladen
Größe: 218,00 B

I would take the node "CurveSplit".

Anhänge (3)

Typ: image/png
206-mal heruntergeladen
Größe: 151,38 KiB
Typ: text/xml
761-mal heruntergeladen
Größe: 4,91 KiB
Typ: text/xml
716-mal heruntergeladen
Größe: 218,00 B

Hi Nemo,

I have run the script and I noticed that the last segment is combined with the remaining length but this is accepted.
Thank you so much for your prompt response. Greatly appreciated.

Lastly, any advice on the attributes?

Hi nemo,

I found a better solution for the attributes.
All perfectly working now.
thank you.

... I noticed that the last segment is combined with the remaining length but this is accepted.

...if it is meant that the last element is not 1 m long, but as long as the "rest of the curve", then this is quite intentional.

Otherwise you would have to add a "filter" to the script, which determines the curve length of the partial curves, and in case of length < 1.00 does not let the curve "pass"...

Anhänge (1)

Typ: image/png
106-mal heruntergeladen
Größe: 14,57 KiB

Zitiert von: JacquelinePascua
I found a better solution for the attributes.
All perfectly working now.

thank you.


Hi Jacqueline

Did u found a way via VS or "conventional"?
Please let me know, im interested in ur solution for this...

Julien

Julien Jufer | PLANLABOR GmbH

Hi Julien,

I've used the AssignAttributes.pyp in the example folder (see attached screenshot)
Then I also used the Export and Import attributes

Anhänge (2)

Typ: image/png
70-mal heruntergeladen
Größe: 62,67 KiB
Typ: image/png
53-mal heruntergeladen
Größe: 30,29 KiB