Open core: don’t reinvent the wheel — build your fenestration software on ours.

Category - Rules & Machining

Articles

How to add weep slots and drain holes (drainage) to a sill or frame
Weep slots, drain holes and breather holes are shape ops (Rule Type 143 Add Op Hardware Etc.) on the frame’s bottom bar (sill) or top bar (head). For a row of slots use the repeat rules: Repeat Start (first slot from the start end), Repeat End (last slot back from the far end) and Step […]
How to end-mill or cope the end of a mullion, T-bar or meeting rail
An end-mill (cope) shapes the end of the mullion itself so it sits tight against the frame. It is written as a shape op (Rule Type 143 Add Op Hardware Etc.) at the mullion level and kept on the mullion bar (Set Op on Level=? = 3), with one block for each end: X = […]
How to machine hardware preps: drill handle, lock, strike and hinge holes in the frame or sash
A hardware prep (handle, multi-point lock, strike, keeper, hinge) is a shape op (Rule Type 143 Add Op Hardware Etc.) on a sash stile or a frame jamb, at a height. Tie it to the hardware option with a test, and send it to one leaf with level code 201 / 202 or a Sash/Leaf […]
How machining rules work (notches, drilling, slots, weep holes, hardware prep) in plain English
A machining op is anything the saw line or CNC does to a bar besides cutting it to length: a notch, a drilled hole, a weep or drainage slot, a routed handle or lock pocket, a strike prep, an end-mill (cope) on a mullion end. You do not draw ops per order. You describe each […]
How to add a notch where a mullion or meeting rail meets the frame
Use a mullion op (Rule Type 142 Add Op Mullion): it finds where a mullion or meeting rail runs into the frame and puts the notch on the frame bar, centred on the mullion (or offset from its centre line). The op is written at the mullion’s level (Mullion or Meeting Rail) and sent to […]
How notching flows — end to end
From rule evaluation to the printed cut list, a notch travels through four stages: 1. Rule evaluation  Rules engine → doNotching → doNotchingRules    A create rule (142/143) adds a new operation; attribute rules    (144–160, 169, 176, 298) fill it in. Operations collect on the unit. ↓ 2. BOM build  for each profile line → setProfileNotchValues […]
The attach gate — how a notch lands on a profile
Creating an operation does not by itself put it on a part. During BOM build, for each profile line the engine asks, for every candidate operation, “does this apply to this profile?” That test is isMatch, and an operation is attached only when all of these pass: Check Set by Passes when… Level Rule 158 […]
Notching & Machining Operations
A notch (machining operation) is an instruction to cut, drill, route or otherwise machine a profile at a precise position — a drainage slot, a hardware pocket, a screw boss, a lock mortise, a coupling cut. OpenJanela generates notches automatically from rules attached to a series, and carries them through to the Bill of Materials […]
Rule-type reference
Every notching/machining rule type, grouped by purpose. The create rules start a new operation; the rest set attributes on the current operation. create Create the operation Type Name What it does 142 Set Machining Operation On Mullion Starts a new mullion operation (notchType 99) anchored to a mullion/coupler span. Resolves orientation, the span’s start/end, and […]
Troubleshooting — "the notch isn't showing"
Work down this checklist; the causes are ordered most-common first. Reference condition mismatch (most common). Does rule 154/155 set a Reference the target part doesn’t carry? Clear the condition or align the part’s Reference. See the warning above. No pattern. Is a pattern set (rule 144 or 145)? An operation with no pattern is dropped […]
Units & position expressions
Units of measure Positions and distances obey the system’s integer-dimension convention. The active unit mode determines how a value is interpreted: UOM mode Meaning Stored as 1 Metric mm × 100 (hundredths of a mm) 2 Imperial decimal 64ths of an inch 3 Imperial fraction 64ths of an inch 4 Feet 64ths of an inch […]
Writing a rule — a checklist
Author every rule in the same order. The first three choices are the heart of the rule; the rest are parameters. Series — confirm you are editing the right product line. Level — this is the binding. Choose the node the rule should attach to. If you are copying a rule that already works, keep […]
Levels & binding — the key idea
“Binding” means: which node of the design does this rule attach to? This is controlled by the rule’s Level, and it is where most confusion (and most bugs) come from. The assembly hierarchy Every unit is a tree of nodes, each at an assembly level: Level Node Overall / Facet The whole unit and its […]
Field reference
The fields on a rule, grouped by purpose. (Internal column names are noted where they help when reading data or logs.) Binding Field Meaning Level (col level) The assembly level the rule targets; matched against the node’s level. Parent level (col parent_level) The node’s context; secondary qualifier that steers notch/part branches. Set together with Level […]
How to change which glass a series uses (glass list, glazing thickness, sealed units offered)
The glass picker offers every sealed unit that (1) fits one of the series’ Glazing Thickness bands (thickness between From and To — the imperial columns for an imperial series — and the number of panes, unless Panes is 0), (2) has Display on (the “detailed list” tick-box shows the others), and (3) if the […]
How to change or replace a profile in a series (swap a frame, sash or bead profile, change its cut length)
A profile reaches the BOM through a Part rule (the part is in the rule’s Value 1) or a Profile Matrix / Part Matrix rule (the part is in a matrix cell). The same profile is often used in several sub-routines and several series: bead 1542 (19663000-WH) is in 3000 PW GB (265) rules 49, […]
How to set glass clearances, gas and glass-related parts with rules
Glass size is the opening minus the clearance on each side. Clearances, gas fill and parts on the glass (film, setting blocks) are rules at the glass level (All Glass). Which sealed units a series can offer at all is set on the series (Glazing Thickness), see How to change which glass a series uses. […]
How to add labour and painting labour to a series
Labour is an ordinary Part rule whose part is a Labor part. The labour cost comes from the part’s cost, times the quantity the rule gives. Put the labour rule under the set station rule of the station that does the work, so the time shows up there. Painting labour (SD FRAME LABOR, series 361) […]
How to choose a part or a price with a matrix in a rule
When the profile or part depends on an answer (white or painted, inswing or outswing), build a matrix whose cells hold the part id, and point a Profile Matrix or Part Matrix rule at it. One rule then covers every colour. The Matrix screen itself is described in Matrix pricing tables. Example: main frame by […]
How to add a new type of frame to a series (new frame profile, new construction or renovation frame)
A “frame type” is not a setting on the series. It is a group of frame rules, usually in its own Rules Sub-Routine, called from the series by a Rule Segment rule whose test picks it by the answers on the item. Adding a frame type means: the parts, an answer to choose it, a […]
How to add a new opening style or sash style to a series (new casement, new Open/Shape)
Three things decide which opening styles a series offers and what they get: the series’ Openings tab (which opening types it may use), the Open/Shape tab (one record per style the salesperson can pick — its ID is the “UD Opening” that rule tests use) and the rules that test Open Class or UD Opening. […]
How to make parts depend on an option answer (colour, glazing type, hardware choice)
Two steps: an option rule asks the question on the item, and a test on each dependent rule checks the answer. The option and its answers are created in Options & choices; the rule makes the series ask it. Step 1 — ask the question To ask “Glazing Type” once for the whole 3501 unit, […]
How to add a part (hardware, screws, accessories) to a series with a rule
Hardware, screws, anchors and accessories are added with a Part rule: pick the part, the piece of the window it belongs to, and how many. The part must already exist in OJ Setup → Parts. Background: How rules work in plain English. Real examples Screws on the sill. To put sill screws on a 3501 […]
How to add a profile (frame, sash, mullion, glazing bead) with cut lengths and end cuts
Profiles are added with a Part rule (always the same profile) or a Profile Matrix rule (profile picked from a matrix, for example by colour). On top of the part, a profile rule says which side it goes on, how the ends are cut, whether they are welded and how much longer or shorter than […]
How to change the sash size or sash deductions (sash clearance, sash profile length)
The sash size comes from Clearance rules at Level Sash: the gap on each side between the opening and the sash. Which sash profile is used, and how long it is cut, comes from the sash profile rules (Part or Profile Matrix at Level Sash, with Width / Height Adjust). Multi-slide doors also use the […]
How rules work in plain English (what a rule is, rule order, levels, tests)
A series is a list of rules. When an item is built, OpenJanela reads that list from top to bottom, in rule number (ID) order, and tries every rule on every part of the design that sits at the rule’s Level. A rule that fits adds a part, sets a size, asks a question or […]
How to send parts to a production station or line (station and line rules; parts going to the wrong station)
Parts reach a station through the rule list itself: a set station rule names a station, and every part rule after it goes to that station until the next set station rule. set production line works the same way for lines. Stations and lines are created in Production Stations setup and Production Line setup. Example: […]
How to group rules in a sub-routine and call it when an answer is chosen
To switch a whole group of rules on for one answer or one opening style, put the group in a Rules Sub-Routine and call it from the series with one Rule Segment rule that carries the test. The concept is explained in Sub-Routines. Examples Picture-window beads for the 3501. To bead the fixed glass, the […]
How to check what a rule did (BOM, rule number, why a part is missing)
There is no step-by-step rule trace. The reliable check is to build a test item and look at its bill of materials (BOM): which parts came out, how long they are cut, how many, and which station and line they went to. Then compare with the rules. What you can check Check Where Did the […]
Rules — how they work
A rule is the unit of product configuration in OpenJanela. Every part that lands on a Bill of Materials, every clearance, every grid, every machining notch, and most of the cost is put there by a rule. Learning to think in rules is the single most useful skill for configuring a product series. This chapter […]
Field relationships & cascades
The rule form has no single “master” field. Several independent driver→dependent chains reshape it as you work. The single most important thing to understand: Level, Rule Type, and Series Type each drive a different part of the form and do not filter one another. This page maps every relationship; the Field reference above explains each […]
Worked example: door flanked by sidelites
This real case shows why the Level you pick is everything — and how two rules that look identical can behave differently. The setup A door with a sidelite on both sides. A machining notch must be cut on the door’s right edge. Four notch rules exist for this series. They are identical in every […]
+ 24 Articles
Show Remaining Articles