Fillet Rule Configurator

Compiles Grasshopper lists into a Fillet Rules JSON.

JSON Masterplan (Beta) Nickname: Fillet_Rules

Overview

Compiles Grasshopper lists into a Fillet Rules JSON.

Inputs (5)

  • DefaultRadius (Number): The base radius if no rules match.
  • RuleTypes (Text): List of target types ('Tower', 'Program', 'Building').
  • RuleMatches (Text): List of target names ('Main_Tower', 'Retail', '*').
  • RuleRadii (Number): List of radii to apply to the matched targets.
  • ExactMatch (Boolean): True = Exact, False = Contains. Defaults to True.

Outputs (2)

  • Fillet_JSON (Text): The compiled JSON string to feed into BIM_JSON.
  • Instructions (Text): Detailed usage instructions.

Method, assumptions and simplifications

The same notes appear in the component's Info output.

Method

  1. Pairs RuleTypes, RuleMatches and RuleRadii item by item (up to the shortest list), with ExactMatch per rule (True if missing), and writes JSON with default_radius and the ordered rules list.
  2. Lists of different lengths raise a warning (only the shortest count of rules is written); rule types are normalised to Tower, Program or Building ignoring case, and unknown types raise a warning.

Assumptions

  • RuleTypes are Tower, Program or Building (written with that capitalisation, as BIM_JSON compares them case-sensitively); radii are in metres.

Simplifications and limits

  • Unknown types are written as given and ignored downstream. BIM_JSON applies the first matching rule and * matches everything.

Workflow

  • Fillet Rule Configurator -> BIM_JSON fillet rules input.