Structural Piles Numbering Basic Method
Structural Piles Numbering Basic Method
This method involves numbering placed structural piles with sequential numbers based on their sorted order according to the Mark parameter.
1. Select structural foundation category files using the [Select Model Elements By Category] node.
2. Verify the geometry using the [Element.Geometry] node.
> It's possible to see both Lines and Solids in the current geometry.
> It is necessary to remove all Geometry except for Solids.
3. Extract only the Solids using the [List.LastItem] node.
4. Extract the centroid point of the Solids using the [Solid.Centroid] node.
5. Sort by the X-coordinate value by connecting [Point.X] to the sortFunction input of the [List.SortByFunction] node.
6. Verify the shapes by moving the sorted Points by 10000mm in the Z direction using [Geometry.Translate] with a translation vector of [Vector.ZAxis] multiplied by 10000.
7. To sort by the Y-coordinate, refine the decimal points of the [Point.Y] values.
8. Re-sort the List by the Y-coordinate using [List.UniqueItems], [List.Sort], and [List.Reverse].
9. Sort the Y-coordinate sorted List by the X-coordinate again using [List.SortByFunction] with [Point.X].
10. Verify the order of all points at Level 1 using [List.Flatten].
11. It is necessary to match the order of the Geometry (Solids) List with the order of the sorted Points List.
> Prepare the sorted Point and Solid Lists.
12. Re-sort the Solid List based on the Points using [Geometry.DoesIntersect].
13. Verify the List sorting using [List.FilterByBoolMask].
14. Re-sort the Element List using the same [List.FilterByBoolMask] values.
15. Input the text (convert numbers to text) value into the "Mark" parameter using the [Element.SetParameterByName] node connected to a [String from Object] node.

댓글
댓글 쓰기