[Otázka] Mined Tunnel modelling divide into 1m length segment with or assign attributes [Vyřešeno]


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.

Přílohy (1)

Type: image/png
Staženo 122
Size: 62,94 KiB

Show solution Hide solution

I would take the node "CurveSplit".

Přílohy (3)

Type: image/png
Staženo 202
Size: 151,38 KiB
Type: text/xml
Staženo 492
Size: 4,91 KiB
Type: text/xml
Staženo 443
Size: 218,00 B

I would take the node "CurveSplit".

Přílohy (3)

Type: image/png
Staženo 202
Size: 151,38 KiB
Type: text/xml
Staženo 492
Size: 4,91 KiB
Type: text/xml
Staženo 443
Size: 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"...

Přílohy (1)

Type: image/png
Staženo 106
Size: 14,57 KiB

Citoval 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

Přílohy (2)

Type: image/png
Staženo 70
Size: 62,67 KiB
Type: image/png
Staženo 53
Size: 30,29 KiB

https://campus.allplan.com/ používá cookies  -  Více informací

Souhlasím