Hello all
I’m working on a project that involves generating three distinct labeling systems on nested pieces within a design. I’ve attached an pdf to visualize the desired labeling.
Labeling Requirements:
1.Main Piece Midpoint Labeling (X1-A to E):
Place a label in the format “X1-A” to “X1-E” at the exact midpoint of each main piece.
Labels should increment sequentially for each main piece (e.g., X1-A, X2-A, X3-A, etc.)
Ensure the labeling sequence progresses consistently from left to right, following the natural reading direction.
2.Subpiece Corner Labeling (AA.BB):
Apply labels “AA” and “BB” to opposite corners of each subpiece within a main piece.
Ensure consistent placement of “AA” and “BB” labels across all subpieces.
3.Subpiece Midpoint Labeling (Copying Main Piece Label):
Replicate the main piece’s midpoint label (X1-A, X2-A, etc.) at the exact midpoint of each subpiece.
Key Challenges:
Dynamically generating sequential labels (X1-A, X2-B, etc.) in the correct format.
Matching label placement to specific geometric points (midpoints, corners).
Ensuring consistency in label positioning across multiple pieces.
thanks to the McNeel group who helped me achieve the “AA” corner labelling
Outstanding Issues:
Main Piece Midpoint Labeling (X1-A to E):
Need assistance with dynamically generating sequential labels (X1-A, X2-B, etc.) and placing them at the exact midpoints of each main piece.
Subpiece Midpoint Labeling (Copying Main Piece Label):
Require guidance on replicating the main piece’s midpoint label at the exact midpoint of each corresponding subpiece.
Additional Question:
Controlling “AA” Label Origin:
How can I set a consistent origin point for the “AA” labeling sequence, ensuring it always starts from the same side of each main piece? This would maintain a uniform labeling pattern across all main pieces.
label.pdf (251.4 KB)
FINAL SCRIPT.gh (46.0 KB)
FINAL.3dm (4.0 MB)
thank you