Skip to main content
Build five circles with one editable count control and derived positions. Then change the count to eight while keeping the radius and spacing relationships.

What you’ll need

You will work in model units, the length units of that Rhino document. A radius of 1 means one model unit, not necessarily one millimeter or one meter.

Step 1: Check the context and load the example

Send this prompt to your assistant:
You should see the installed version, model units, and the example recipe. The controls describe five circles of radius 1, with centers separated by 3 model units along X. If gh_ tools are missing, finish Grasshopper getting started first.

Step 2: Build and inspect the first graph

The intended result is an editable native graph and a five-circle preview. A count slider feeds a Series component; derived positions feed vectors and Move. Inspect the canvas to see those relationships instead of five independently placed objects. The example’s expected measurements are: A completed job can still have component errors or invalid geometry. If circles overlap or bounds differ, ask the assistant to inspect the first failing stage, its input ports, and upstream values. Do not repair the graph by flattening every input or recreating every node.

Step 3: Change the count and preserve the relationship

The intended preview now has eight circles. The extra positions come from the same series relationship; changing the count should not require rewiring or editing each copy. The old solution handle expires when the parameter changes. Your assistant should use the new result_id. If you edited the canvas manually, it should refresh the revision and reconcile your changes before applying its patch.

Save the definition or bake a snapshot

To keep the reusable recipe, ask the assistant to save Array study to a .gh or .ghx path you choose on the Rhino computer. It should ask for an explicit overwrite if that file exists. Save the Rhino model separately if you later add live references to it. To create ordinary Rhino objects, ask:
Baking copies the current output into Rhino. Future slider edits affect the preview, not that snapshot. A distinct bake request produces another snapshot. See bake arguments and limits.

Try a failure and repair

In the definition, ask the assistant to disconnect Series from the vector X input, solve, and inspect the result. The component’s default input may place several circles at the same location. Repair the wire and verify the distinct centers, count, and bounds again. This shows why a correct count alone is not enough to validate an array.

What you built

You have a recipe for a parameter-controlled circle array and a way to verify its count and spacing. If a step failed, you also have the first failing stage and expected measurements to include in an issue report. Next, load gh_help topics examples/facade for derived panel spacing and explicit baking, or examples/loft for keeping curve families in separate branches. Use the tool reference for exact arguments and getting started for further checks.