Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/ui/audit_counts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ src/ui/window/authoring_palettes.rs
src/ui/window/tool_palettes.rs
src/ui/window/parameters_manager.rs
src/ui/window/count_palette.rs
src/ui/window/bricscad_visibility.rs
src/ui/window/layer_walk.rs
src/ui/window/quick_calc/view.rs
src/ui/window/quick_calc/variables_view.rs
Expand Down
1 change: 1 addition & 0 deletions docs/ui/audit_counts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ src/ui/window/authoring_palettes.rs 0 0
src/ui/window/tool_palettes.rs 0 0
src/ui/window/parameters_manager.rs 0 0
src/ui/window/count_palette.rs 0 17
src/ui/window/bricscad_visibility.rs 0 0
src/ui/window/layer_walk.rs 0 0
src/ui/window/quick_calc/view.rs 3 44
src/ui/window/quick_calc/variables_view.rs 0 32
Expand Down
31 changes: 31 additions & 0 deletions docs/wiki/commands/VISIBILITYSTATES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
summary: Creates and edits the visibility states of a BricsCAD parametric block in model space of the block's own drawing, stored the way BricsCAD stores them.
related: VISIBILITYSTATESPANELOPEN, BVSTATE, BVSHOW, BVHIDE
web: Not available in the web app.
---

## Usage
1. Open the drawing of a BricsCAD parametric block (the block is the drawing's model space), or any drawing to make its model space one, and work in model space.
2. Type `VISIBILITYSTATES`.
3. At "Enter a new parameter or [...]", type the name of a visibility parameter. A name not in the list makes a new parameter.
4. At "Enter a new state for ... or [...]", type the name of a state. A name not in the list makes a new state, in which every object the parameter rules starts hidden.
5. Pick an action (see below), or press Enter for **Add objects**.
6. For every action but **Select state**, select the objects and press Enter. Objects you selected before starting the command are used without asking.

## Actions
| Action | What it does |
|---|---|
| **Add objects** (`A`) | The parameter rules the objects: they show in this state only. Objects it already rules do not change. |
| **Remove objects** (`R`) | The parameter no longer rules the objects, so its states no longer show or hide them. |
| **make objects Visible** (`V`) | The objects show in this state. Objects the parameter did not rule yet show in this state only. |
| **make objects Invisible** (`I`) | The objects are hidden in this state. Objects the parameter did not rule yet show in every other state. |
| **Select state** (`S`) | Makes the state current, showing and hiding the objects the parameters rule. |

## Notes
- This is BricsCAD's own command for its parametric blocks. A drawing saved as DWG keeps the states where BricsCAD finds them: BricsCAD lists and switches them, and can go on editing them with its own `VISIBILITYSTATES`. Where BricsCAD inserted the block into another drawing, a reference to it lists the states in Properties, where you pick one.
- An object ruled by several parameters shows only when every one of them shows it.
- New suppression and object names follow the names the drawing already uses; in a drawing without any they follow the interface language (English or German names).
- The command works in model space only. In the Block Editor it does nothing, because the copies of the block that its references show would keep the old states; edit the block's own drawing instead.
- The drawing must be DWG 2010 or later. Dynamic blocks made in OCS or AutoCAD use [`BVSTATE`](BVSTATE-Command) instead.
- Each run of the command is one undo step.
- The [Visibility States palette](VISIBILITYSTATESPANELOPEN-Command) does the same with the mouse, and also orders the states.
8 changes: 8 additions & 0 deletions docs/wiki/commands/VISIBILITYSTATESPANELCLOSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
summary: Closes the Visibility States palette.
related: VISIBILITYSTATESPANELOPEN, VISIBILITYSTATES
web: Not available in the web app.
---

## Usage
Type `VISIBILITYSTATESPANELCLOSE`. The Visibility States palette closes; [`VISIBILITYSTATESPANELOPEN`](VISIBILITYSTATESPANELOPEN-Command) opens it again.
40 changes: 40 additions & 0 deletions docs/wiki/commands/VISIBILITYSTATESPANELOPEN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
summary: Opens the Visibility States palette, where the visibility states of a BricsCAD parametric block are shown, switched, ordered and edited in model space of the block's own drawing.
related: VISIBILITYSTATES, VISIBILITYSTATESPANELCLOSE, BVSTATE
ribbon: Parametric tab › Manage panel › Visibility States
web: Not available in the web app.
---

## Usage
1. Open the drawing of a BricsCAD parametric block (the block is the drawing's model space), or any drawing to make its model space one.
2. Run `VISIBILITYSTATESPANELOPEN`, or click **Visibility States** on the Parametric tab. `VISIBILITYSTATESPANELCLOSE` closes the palette.

## The parameters
Each visibility parameter is listed with the number of objects it rules and its states. The state shown is marked.

| Control | What it does |
|---|---|
| A state | Shows that state. |
| ▲ / ▼ | Moves the state up or down. Properties lists the states of a block reference in this order. |
| ▸ (or double-click) | Opens the state's page. |
| **Add state** | Adds a state with every object of the parameter hidden, shows it and opens its page. |
| **+** at the top | Adds a parameter: type its name and its first state, then select the objects it starts with. |

## A state's page
Every object the parameter rules is listed with its type, the layer it is on when shown, and its handle.

| Control | What it does |
|---|---|
| Eye | Shows or hides the object in this state. |
| ✕ | Removes the object from the parameter: its states no longer show or hide it. |
| A row | Selects the object in the drawing. |
| Select objects button | Adds objects: they show in this state only. |
| **Show** | Shows this state. |
| ◂ | Back to the parameters. |

A warning sign marks an object that shows the same in every state of the parameter.

## Notes
- Each change is one undo step, and is stored the way BricsCAD stores it (see [`VISIBILITYSTATES`](VISIBILITYSTATES-Command), which does the same from the command line).
- The palette works in model space only. In the Block Editor or a layout it says so.
- States are not renamed or deleted here yet.
2 changes: 2 additions & 0 deletions docs/wiki/pages/Blocks-and-Attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Dynamic blocks change shape through grips on each reference: a door that sets it

**Visibility states.** `BVSTATE` creates and switches visibility states; <img src="images/icons/constrain/show.svg" width="20" alt=""> `BVSHOW` and <img src="images/icons/constrain/hide_all.svg" width="20" alt=""> `BVHIDE` choose which objects show in the current state. Each reference then has a list to pick its state.

**BricsCAD parametric blocks.** A reference to a block made parametric in BricsCAD lists the states of its visibility parameters in Properties; the state you pick shows the way BricsCAD shows it. [`VISIBILITYSTATES`](VISIBILITYSTATES-Command) creates and edits those states in model space of the block's own drawing, stored where BricsCAD reads them; the [Visibility States palette](VISIBILITYSTATESPANELOPEN-Command) does it with the mouse and orders the states.

**Block properties table.** `BTABLE` defines combinations of parameter values in a table, so each reference picks a row.

`BTESTBLOCK` opens a test window to try the block's grips before you save it. `BCONSTRUCTION` marks objects as construction geometry that does not show in the references. Geometric and dimensional constraints work inside blocks too; see [Parametric Constraints](Parametric-Constraints).
3 changes: 3 additions & 0 deletions docs/wiki/since.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,9 @@
"VCONSTRAINT": "2026.37",
"VERTICAL": "0.1.4",
"VIEW": "0.1.3",
"VISIBILITYSTATES": "2026.47",
"VISIBILITYSTATESPANELCLOSE": "2026.47",
"VISIBILITYSTATESPANELOPEN": "2026.47",
"VISRETAIN": "0.7.0",
"VISUALSTYLES": "0.7.0",
"VPCLIP": "2026.39",
Expand Down
36 changes: 36 additions & 0 deletions locales/ar-SA/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3602,6 +3602,42 @@ modify =
.bvstate-exists = حالة الرؤية "__ocs_fmt_0__" موجودة بالفعل.
.bvstate-last = لا يمكن حذف حالة الرؤية الوحيدة.
.bvstate-needs-bedit = __ocs_fmt_0__: افتح الكتلة أولاً في محرر الكتل (BEDIT).
.visibilitystates-parameter = VISIBILITYSTATES أدخل معلمة جديدة:
.visibilitystates-parameter-or = VISIBILITYSTATES أدخل معلمة جديدة أو [__ocs_fmt_0__]:
.visibilitystates-state = VISIBILITYSTATES أدخل حالة جديدة لـ __ocs_fmt_0__:
.visibilitystates-state-or = VISIBILITYSTATES أدخل حالة جديدة لـ __ocs_fmt_0__ أو [__ocs_fmt_1__]:
.visibilitystates-action = VISIBILITYSTATES حدد إجراءً [إضافة/إزالة/إظهار/إخفاء/تحديد الحالة] <إضافة>:
.visibilitystates-add-objects = إضافة كائنات
.visibilitystates-remove-objects = إزالة كائنات
.visibilitystates-make-visible = إظهار الكائنات
.visibilitystates-make-invisible = إخفاء الكائنات
.visibilitystates-select-state = تحديد الحالة
.visibilitystates-model-space = يعمل VISIBILITYSTATES في فضاء النموذج: افتح رسم كتلة BricsCAD.
.visibilitystates-unsupported = لا يمكن تحرير حالات الرؤية هنا.
.visibilitystates-old-format = تتطلب حالات الرؤية رسمًا بتنسيق DWG 2010 أو أحدث.
.visibilitystates-no-parameter = لا توجد معلمة رؤية بهذا الاسم.
.visibilitystates-no-state = لا توجد حالة رؤية بهذا الاسم.
.visibilitystates-state-exists = حالة الرؤية هذه موجودة بالفعل.
.visibilitystates-cannot-move = لا يمكن نقل حالة الرؤية أكثر من ذلك.
.visibilitystates-bad-name = أدخل اسمًا من أحرف وأرقام وشرطات سفلية.
.visibilitystates-name-taken = هذا الاسم يستخدمه متغير آخر.
.visibilitystates-no-objects = حدد كائنات من الفضاء الجاري تحريره.
.visibilitystates-panel-elsewhere = تُحرَّر حالات الرؤية في فضاء النموذج لرسم الكتلة نفسها.
.visibilitystates-panel-unsupported = لا يمكن تحرير حالات الرؤية في هذا الرسم هنا.
.visibilitystates-first-state = الحالة الأولى
.visibilitystates-panel-empty = لا توجد حالات رؤية في هذا الرسم. انقر + لإضافة معلمة.
.visibilitystates-parameter-objects = __ocs_fmt_0__ (الكائنات: __ocs_fmt_1__)
.visibilitystates-move-up = نقل لأعلى
.visibilitystates-move-down = نقل لأسفل
.visibilitystates-state-objects = كائنات هذه الحالة
.visibilitystates-new-state = حالة جديدة
.visibilitystates-add-state = إضافة حالة
.visibilitystates-back = العودة إلى المعلمات
.visibilitystates-add-to-state = إضافة كائنات إلى هذه الحالة
.visibilitystates-no-objects-yet = لا تتحكم المعلمة في أي كائنات بعد. أضف كائنات إلى هذه الحالة.
.visibilitystates-remove-from-parameter = إزالة من المعلمة
.visibilitystates-same-everywhere = يظهر بالشكل نفسه في كل حالات المعلمة
.visibilitystates-same-everywhere-note = يظهر كائن واحد أو أكثر بالشكل نفسه في كل حالات هذه المعلمة.
.bvstate-current = حالة الرؤية الحالية: __ocs_fmt_0__
.bvhide-select = حدد الكائنات المراد إخفاؤها:
.bvshow-select = حدد الكائنات المراد إظهارها:
Expand Down
36 changes: 36 additions & 0 deletions locales/bg-BG/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3589,6 +3589,42 @@ modify =
.bvstate-exists = Състоянието на видимост "__ocs_fmt_0__" вече съществува.
.bvstate-last = Единственото състояние на видимост не може да бъде изтрито.
.bvstate-needs-bedit = __ocs_fmt_0__: първо отворете блока в редактора на блокове (BEDIT).
.visibilitystates-parameter = VISIBILITYSTATES Въведете нов параметър:
.visibilitystates-parameter-or = VISIBILITYSTATES Въведете нов параметър или [__ocs_fmt_0__]:
.visibilitystates-state = VISIBILITYSTATES Въведете ново състояние за __ocs_fmt_0__:
.visibilitystates-state-or = VISIBILITYSTATES Въведете ново състояние за __ocs_fmt_0__ или [__ocs_fmt_1__]:
.visibilitystates-action = VISIBILITYSTATES Изберете действие [Добави/Отстрани/Покажи/Скрий/Избери състояние] <Добави>:
.visibilitystates-add-objects = Добави обекти
.visibilitystates-remove-objects = Отстрани обекти
.visibilitystates-make-visible = Направи обектите видими
.visibilitystates-make-invisible = Направи обектите невидими
.visibilitystates-select-state = Избери състояние
.visibilitystates-model-space = VISIBILITYSTATES работи в пространството на модела: отворете чертежа на блока на BricsCAD.
.visibilitystates-unsupported = Състоянията на видимост тук не могат да се редактират.
.visibilitystates-old-format = Състоянията на видимост изискват чертеж във формат DWG 2010 или по-нов.
.visibilitystates-no-parameter = Няма параметър на видимост с това име.
.visibilitystates-no-state = Няма състояние на видимост с това име.
.visibilitystates-state-exists = Това състояние на видимост вече съществува.
.visibilitystates-cannot-move = Състоянието на видимост не може да се премести повече.
.visibilitystates-bad-name = Въведете име от букви, цифри и долни черти.
.visibilitystates-name-taken = Това име се използва от друга променлива.
.visibilitystates-no-objects = Изберете обекти от редактираното пространство.
.visibilitystates-panel-elsewhere = Състоянията на видимост се редактират в пространството на модела на собствения чертеж на блока.
.visibilitystates-panel-unsupported = Състоянията на видимост на този чертеж не могат да се редактират тук.
.visibilitystates-first-state = Първо състояние
.visibilitystates-panel-empty = В този чертеж няма състояния на видимост. Щракнете върху +, за да добавите параметър.
.visibilitystates-parameter-objects = __ocs_fmt_0__ (обекти: __ocs_fmt_1__)
.visibilitystates-move-up = Премести нагоре
.visibilitystates-move-down = Премести надолу
.visibilitystates-state-objects = Обекти на това състояние
.visibilitystates-new-state = Ново състояние
.visibilitystates-add-state = Добави състояние
.visibilitystates-back = Обратно към параметрите
.visibilitystates-add-to-state = Добави обекти към това състояние
.visibilitystates-no-objects-yet = Параметърът все още не управлява обекти. Добавете обекти към това състояние.
.visibilitystates-remove-from-parameter = Премахни от параметъра
.visibilitystates-same-everywhere = Еднакво във всички състояния на параметъра
.visibilitystates-same-everywhere-note = Един или повече обекти изглеждат еднакво във всички състояния на този параметър.
.bvstate-current = Текущо състояние на видимост: __ocs_fmt_0__
.bvhide-select = Изберете обекти за скриване:
.bvshow-select = Изберете обекти за показване:
Expand Down
36 changes: 36 additions & 0 deletions locales/cs-CZ/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3594,6 +3594,42 @@ modify =
.bvstate-exists = Stav viditelnosti „__ocs_fmt_0__“ již existuje.
.bvstate-last = Jediný stav viditelnosti nelze odstranit.
.bvstate-needs-bedit = __ocs_fmt_0__: nejprve otevřete blok v editoru bloků (BEDIT).
.visibilitystates-parameter = VISIBILITYSTATES Zadejte nový parametr:
.visibilitystates-parameter-or = VISIBILITYSTATES Zadejte nový parametr nebo [__ocs_fmt_0__]:
.visibilitystates-state = VISIBILITYSTATES Zadejte nový stav pro __ocs_fmt_0__:
.visibilitystates-state-or = VISIBILITYSTATES Zadejte nový stav pro __ocs_fmt_0__ nebo [__ocs_fmt_1__]:
.visibilitystates-action = VISIBILITYSTATES Vyberte akci [Přidat/Odebrat/Zobrazit/Skrýt/Vybrat stav] <Přidat>:
.visibilitystates-add-objects = Přidat objekty
.visibilitystates-remove-objects = Odebrat objekty
.visibilitystates-make-visible = Zobrazit objekty
.visibilitystates-make-invisible = Skrýt objekty
.visibilitystates-select-state = Vybrat stav
.visibilitystates-model-space = VISIBILITYSTATES pracuje v modelovém prostoru: otevřete výkres bloku BricsCAD.
.visibilitystates-unsupported = Stavy viditelnosti zde nelze upravovat.
.visibilitystates-old-format = Stavy viditelnosti vyžadují výkres ve formátu DWG 2010 nebo novějším.
.visibilitystates-no-parameter = Parametr viditelnosti s tímto názvem neexistuje.
.visibilitystates-no-state = Stav viditelnosti s tímto názvem neexistuje.
.visibilitystates-state-exists = Tento stav viditelnosti již existuje.
.visibilitystates-cannot-move = Stav viditelnosti nelze dále přesunout.
.visibilitystates-bad-name = Zadejte název z písmen, číslic a podtržítek.
.visibilitystates-name-taken = Tento název používá jiná proměnná.
.visibilitystates-no-objects = Vyberte objekty z upravovaného prostoru.
.visibilitystates-panel-elsewhere = Stavy viditelnosti se upravují v modelovém prostoru vlastního výkresu bloku.
.visibilitystates-panel-unsupported = Stavy viditelnosti tohoto výkresu zde nelze upravovat.
.visibilitystates-first-state = První stav
.visibilitystates-panel-empty = V tomto výkresu nejsou žádné stavy viditelnosti. Klikněte na + a přidejte parametr.
.visibilitystates-parameter-objects = __ocs_fmt_0__ (objektů: __ocs_fmt_1__)
.visibilitystates-move-up = Posunout nahoru
.visibilitystates-move-down = Posunout dolů
.visibilitystates-state-objects = Objekty tohoto stavu
.visibilitystates-new-state = Nový stav
.visibilitystates-add-state = Přidat stav
.visibilitystates-back = Zpět na parametry
.visibilitystates-add-to-state = Přidat objekty do tohoto stavu
.visibilitystates-no-objects-yet = Parametr zatím neřídí žádné objekty. Přidejte do tohoto stavu objekty.
.visibilitystates-remove-from-parameter = Odebrat z parametru
.visibilitystates-same-everywhere = Ve všech stavech parametru stejné
.visibilitystates-same-everywhere-note = Jeden nebo více objektů se ve všech stavech tohoto parametru zobrazuje stejně.
.bvstate-current = Aktuální stav viditelnosti: __ocs_fmt_0__
.bvhide-select = Vyberte objekty ke skrytí:
.bvshow-select = Vyberte objekty k zobrazení:
Expand Down
Loading