NX Logic Editor: The Short Version
The NX Logic Editor is the visual rule editor in Siemens NX: you connect nodes into rules that author PMI for model-based definition, create algorithmic features, drive staged models or add custom PMI checks. Siemens introduced it with the December 2020 release. inteliScience trains engineers on the Logic Editor and builds rule libraries for MBD.
The Problem: Design Rules Live in Heads, Spreadsheets and Code Nobody Reads
Every engineering department has rules. “Every bore with a press fit gets a cylindricity callout.” “Datum A is always the largest planar face.” “Knurling pitch follows the diameter table.” Most of these rules exist in three places at once: in the heads of two senior designers, in a spreadsheet, and sometimes in an NX Open program that only its author can change.
Model-based definition makes this worse before it makes it better (the wider trade-offs are in our comparison of MBD vs 2D drawings). A drawing-based process tolerated inconsistent annotation because a checker read every sheet. With PMI on the 3D model feeding inspection and manufacturing directly, the same feature must get the same annotation every time, and doing that by hand on every part does not scale.
The NX Logic Editor is Siemens’ answer for rules that engineers, not only programmers, should be able to read and change. It is not a scripting language and not a replacement for NX Open. It is a diagram of nodes and connections that NX executes on the model.
What Is the NX Logic Editor?
The Logic Editor is an NX task environment, an interactive diagramming tool for defining and editing rules. A rule is a set of connected nodes, each a block of reusable code with input and output ports, that together take inputs, find objects, apply logic and produce a result such as PMI, a model view or a feature.
Siemens announced it with the NX release of December 2020. The December 2020 release notes on the Siemens blog describe two uses at once: design algorithms “easily constructed using a logic editor” for the new Algorithmic Modeling application, and “an interactive Logic Editor diagramming interface that supports building and executing rules” for model-based definition.
The task environment has three working areas plus the ribbon:
| Area | What it does |
|---|---|
| Node Explorer | Searchable node library by purpose and application, plus the Rule Inputs panel that collects the inputs the rule dialog will ask for |
| Rule window | Where nodes are placed, connected, grouped, annotated and inspected |
| Part window | Live preview of what the current rule does to the model |
| Ribbon | Rule (Open, Save, Save As, Properties), View, Tools (Find Node, Group, Delay Update, Update Rule), Markup and Snippet commands |
As of October 2026, the current release is Designcenter 2606 (June 2026; Siemens now sells NX under the Designcenter name). The Logic Editor is still called the Logic Editor.
Where the NX Logic Editor Is Used
The same editor serves several NX applications, and the node library changes with the context you open it from. That is the part most introductions skip: an MBD rule and an algorithmic feature rule are built in the same window but see different nodes and need different prerequisites.
| Context | How you open it | What the rule produces | Prerequisite |
|---|---|---|---|
| MBD logical rules | PMI tab, Rule group, Define | PMI objects, annotation planes, model views; applied with Insert Rule Instance | PMI application with Model Based Definition |
| Algorithmic features | Modeling: Home tab, Base group, Algorithmic Feature | Model features from rules, for example knurling or a flexible hose with varying diameters | NX Algorithmic Modeling to create, apply or edit |
| Staged Model rules | Define Rule in the Staged Model application | Part processing steps and PMI reuse between stages, for example reusing a model view | Active stage of a staged model set |
| PMI Advisor custom checks | PMI, Advisor Configuration, Add Custom Check | Company-specific PMI validation alongside the standard checks | Custom Advisor configuration |
| CMM inspection programming | MBD rules edited in the Logic Editor | Constructed features for inspection programs | CMM Inspection Programming workflow |
The MBD case gets the most attention, with good reason. MBD rules use topological feature recognition, so they work on analytic and on imported parts, and they can preview PMI at assembly level. Siemens also documents a machine learning option: while you define rules, NX can learn your PMI authoring preferences and predict annotation planes and model views for new PMI objects.
The algorithmic case has a licensing detail worth knowing: changing an algorithmic feature’s expression-node inputs in the details window does not require NX Algorithmic Modeling, only creating, applying or editing the rule does. A designer can therefore resize a rule-built feature without the extra license.
How a Logic Editor Rule Is Built
A rule is valid when every required input port is connected and at least one Output node turns the collected data into an object. Port colors tell you where you stand, which makes the editor readable even for engineers who never write code.
The building blocks, as Siemens documents them:
- Nodes with input ports on the left and output ports on the right. Required inputs show red until connected, connected inputs green, optional unconnected inputs white. Output ports turn blue when they hold data.
- Connectors route one node’s output to another node’s input. Every required input port needs a connector before the rule is valid.
- Data in lists. Every node stores its data as a list, so a rule that finds 14 holes carries 14 entries downstream without a loop.
- Output nodes. Without one, the rule computes but creates nothing.
- Snippets are reusable groups of nodes with a name, description and icon. Siemens ships out-of-the-box snippets in the Reuse Library and Node Explorer; a snippet’s inputs are edited in its definition, not in the rule dialog.
The node library has six categories that are always available (Input, Geometry, Utilities, Logic, List Management, Math) and four that depend on the context: Output and NX Open nodes appear for algorithmic features, Staged Models nodes in the Staged Model application, and MBD nodes when you define rules from PMI with MBD or in Staged Model.
The NX Open category matters for teams with existing code. The Execute NXOpen node runs an NX Open program written in C# or C/C++ inside a rule and exchanges inputs and outputs as JSON strings. Logic that is too complex for nodes can live in reviewed code, while the rule stays the readable entry point.
NX Logic Editor Tutorial: Your First MBD Rule
The fastest way into the Logic Editor is not a blank rule. Siemens ships sample MBD rules in the Reuse Library, and modifying one teaches more than building from scratch. The steps below follow that route on a fully loaded part.
- Load the part fully. Siemens notes that MBD rules only execute correctly on fully loaded parts.
- Enter the Logic Editor. In the PMI application with Model Based Definition, choose PMI tab, Rule group, Define.
- Open a sample rule. Home tab, Rule group, Open, then pick a rule from the MBD Logical Rules folder in the Reuse Library.
- Read before you change. Use Show Predecessors and Show Successor on a node to see its connections, and Display Data on an output port to see what the node actually found.
- Change one thing. Replace a value, add a node from the Node Explorer search, connect it, and watch the port colors until all inputs are green or white.
- Preview. The Part window shows the result on the model; use Delay Update on large parts and Update Rule when you are ready.
- Save deliberately. Save to the part for this part only, or Save As to the Reuse Library for reuse. A rule that is not saved runs once and does not follow later model changes.
- Apply and check. Insert Rule Instance adds the rule to a part; the generated PMI, views and rule inputs then appear in the MBD Navigator, where you edit them.
When a rule fails, hover over the node with the error to see the cause. With PMI Advisor in Advise or Enforce mode, NX also flags rule output that violates the configured annotation standard, which is the quickest way to catch a rule that runs but produces wrong PMI.
Our clear recommendation for a first rule: pick one feature type your team annotates dozens of times a week (press-fit bores, threaded holes, sealing faces) and automate only that. A rule that covers one case perfectly earns trust; a rule that tries to annotate a whole part on day one gets switched off.
Saving and Deploying Rules Across a Team
Where a rule lives decides who benefits from it. There are three levels: the part, the Reuse Library and Teamcenter. For anything beyond a personal experiment, the rule belongs in a managed library, not in individual part files.
With Teamcenter Integration for NX, rules can be saved as Teamcenter items with ID, revision and name, and the customer default Logical Rule Libraries defines the save location. One caveat: if you create a rule instance from a Teamcenter rule and then continue on the part in native NX, you cannot update that instance to the latest Teamcenter version of the rule. Decide early whether rule work happens managed or native, and keep it that way.
To see which rules a part carries after a few iterations, a short NX Open journal helps. This one lists the rule instances stored in the work part:
# List the Logic Editor rule instances stored in the work part.
# Run via File > Execute > NX Open (Ctrl+U) with the part as work part.
import NXOpen
import NXOpen.Rule
def main():
session = NXOpen.Session.GetSession()
work_part = session.Parts.Work
lw = session.ListingWindow
lw.Open()
if work_part is None:
lw.WriteLine("No work part loaded.")
return
rule_manager = NXOpen.Rule.RuleManager.GetRuleManager(session)
instances = rule_manager.RuleInstanceCollection.GetRules(work_part)
lw.WriteLine(f"{work_part.Leaf}: {len(instances)} rule instance(s)")
for instance in instances:
name = instance.Name or "(unnamed)"
lw.WriteLine(f" {name:<40} {instance.JournalIdentifier}")
if __name__ == "__main__":
main()
One rule on one part is a pilot. Production MBD rules need more: a rule library in Teamcenter, naming and revision rules for rules, test parts that every rule must pass, PMI Advisor configurations that match your standard, and engineers who can read and fix a rule without its author. Our NX Logic Editor training builds that capability on your own parts and your own annotation rules.
Logic Editor vs Knowledge Fusion vs NX Open
Use the Logic Editor for rules that engineers should own: PMI patterns, feature recognition, repetitive geometry. Use NX Open for logic that needs software engineering: external data, large decision trees, multi-part generation. Knowledge Fusion is the older rule language in NX; we would not start a new rule stack on it.
| Criterion | Logic Editor | Knowledge Fusion | NX Open |
|---|---|---|---|
| Form | Visual node diagram | Text-based rule language (.dfa classes) | Code (Python, C#, VB.NET, C++, Java) |
| Who maintains it | Engineers trained on the editor | KF specialists | Software developers |
| Strengths | MBD rules, PMI checks, algorithmic features, readable rules | Existing KBE applications built on it | Anything the API covers, external systems, testing |
| Deployment | Part, Reuse Library, Teamcenter | Rule files and search paths | Compiled or signed libraries, journals |
| Combination | Can call C# or C/C++ NX Open programs via the Execute NXOpen node | Can be called from NX Open | Can create algorithmic features through AlgorithmicFeatureBuilder |
The line between Knowledge Fusion and NX Open is drawn in more detail in our comparison NXOpen vs Knowledge Fusion. In practice, the three are layers rather than rivals: the Logic Editor carries the rule an engineer can read, NX Open carries the heavy lifting, and a knowledge-based engineering setup decides which rule lives where. That architecture work is what our knowledge-based engineering for Siemens NX covers.
What Changed in Recent NX Releases
Siemens has extended the Logic Editor in most releases since 2020, mostly with new nodes and better rule handling. A short, dated list helps when you read older tutorials:
| Release | Logic Editor related change |
|---|---|
| December 2020 | Logic Editor introduced with Algorithmic Modeling and MBD rules |
| June 2022 | Mating Faces node for assembly PMI; markup tools (lines, rectangles, circles, notes) to organize rules, per the Siemens MBD update |
| December 2023 | Offset Region node, used with Text On Face for embossed or indented text |
| NX 2506 (June 2025) | Select Body, Select Face and Select Edge nodes capture selection intent for more reliable updates of algorithmic features |
| June 2026 (2606) | Patterns support more feature types, including algorithmic features, according to the Siemens June 2026 release overview |
The 2506 change is the one we would check first in existing rules. Algorithmic features built on older selection behavior can update differently once selection intent is captured, so retest rules after an upgrade instead of assuming they behave the same.
Where the Logic Editor Stops
The Logic Editor is strong inside one part and one rule. It gets harder when a rule needs data from outside NX, spans many parts, or grows into hundreds of nodes. We’d advise against forcing those cases into a diagram.
Large rules become hard to review for the same reason large spreadsheets do: nobody reads 300 connections. Groups, snippets and markup help, and Siemens added them for exactly that reason, but past a certain size the logic belongs in tested NX Open code called from a small rule. The same applies to rules that need ERP data, order specifications or results from other tools.
There is also an organizational limit. A rule library without an owner decays like any other library. At inteliScience, an NX engineering company based in Cluj-Napoca, we set up rule ownership, test parts and Teamcenter storage before the second rule is written, because the first rule is always the easy one.
Frequently Asked Questions
What is the Logic Editor in Siemens NX?
The NX Logic Editor is a task environment for building rules visually: you connect nodes in a diagram, and NX executes the rule on the model. Rules author PMI for model-based definition, create algorithmic features, drive staged models and add custom PMI Advisor checks. Siemens introduced it with the December 2020 NX release.
Can the NX Logic Editor automate PMI for model-based definition?
Yes. MBD logical rules built in the NX Logic Editor use topological feature recognition to create PMI, annotation planes and model views, on analytic as well as imported parts. Rules are applied with Insert Rule Instance and the results are edited in the MBD Navigator. NX can optionally learn PMI authoring preferences and predict annotation planes and model views for new PMI.
NX Logic Editor vs Knowledge Fusion vs NX Open: which should you use for design rules?
Use the Logic Editor for rules engineers should read and change, such as PMI patterns and repetitive geometry. Use NX Open for logic that needs external data, testing or many parts, and keep Knowledge Fusion for existing applications rather than new ones. The Execute NXOpen node lets a Logic Editor rule call C# or C/C++ NX Open code, so the two combine well.
Which license do you need for NX Logic Editor algorithmic features?
Siemens documents NX Algorithmic Modeling as required to create or apply an algorithmic rule and to use Edit Parameters, Edit with Rollback or Edit Definition on an algorithmic feature. Changing expression-node inputs in the details window works without it. MBD rules are defined in the PMI application with Model Based Definition, so check that your NX bundle includes it before planning rule work.
How much effort does it take to learn the NX Logic Editor?
Reading and modifying existing rules comes quickly for NX users who already work with PMI or expressions; designing a rule library takes longer because it is a methods task, not a clicking task. The effort sits in deciding which rules to automate, testing them on representative parts and setting up storage and ownership. Teams that start from Siemens’ sample MBD rules get to a first useful rule faster than teams that start blank.
Next Step
If your team annotates the same features by hand every day, a short call usually identifies the first two or three rules worth building and where they should live. inteliScience NX engineers review your PMI practice and tell you plainly whether the Logic Editor, NX Open or both fit.

