NXKnowledge

NXOpen .NET Reference Guide > Namespaces > NXOpen.BlockStyler

NXOpen.BlockStyler Namespace Reference (.NET)

This is the C#/VB.NET binding of the same namespace documented in depth in nxopen-cpp-reference/blockstyler-namespace.md — read that file first for the full class-by-class catalog and the cross-reference to the Block UI Styler GUI tool. This file only records what differs (or is confirmed identical) in the .NET binding.

Confirmed: near-identical class set to C++

The .NET namespace page (NXOpen.BlockStyler Namespace Reference, Doxygen page id a30333.html in this book) lists 69 types — the same ~67 UI-block classes as the C++ reference (UIBlock, BlockDialog, Button, ListBox, DoubleBlock, Group, Table, SpecifyPoint, SpecifyVector, SelectObject, Tree, TreeListMenu, Wizard, DialogTester, MessageBoxTester, TestStepSequence, and the rest of the catalog in the C++ file) plus two .NET-specific additions not present in the C++ list:

  • NamespaceDoc — a .NET/Sandcastle-style documentation-only stub class with no runtime members, used purely to attach the namespace-level \brief summary text to the compiled XML doc comments (a common .NET documentation-generation convention; it has no C++, Java, or Python equivalent because those languages document namespaces differently).
  • SnapBlockDialog — an additional dialog-family class not enumerated in the C++ reference pass; likely a specialized dialog base/subtype (snap-related dialog behavior). Confirm exact purpose against the class's own detail page if used (a30333.html's child pages in this book).

Practical implication for cross-language dialog code

Because the class catalog matches so closely, a Block UI Styler-generated .bx dialog's C# code (NXOpen.BlockStyler.Button, NXOpen.BlockStyler. ListBox, etc.) instantiates types with identical names to the C++ binding — only the namespace separator (. vs ::) and language syntax differ. The class-level descriptions in blockstyler-namespace.md (C++ folder) apply verbatim to the .NET types.

Source: https://docs.sw.siemens.com/en-US/doc/209349590/PL20220512394070742.nxopen_net · retrieved 2026-07-07