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.).
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.
A quick note to say a huge thank you for helping me crack the “AA” corner labeling! That was a major roadblock, and I truly appreciate your guidance.
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 problem.pdf (250.7 KB)
Thanks again for the awesome help on my last script
FINAL SCRIPT.gh (26.4 KB)
FINAL.3dm (4.0 MB)