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
8 changes: 5 additions & 3 deletions docs/wiki/commands/BLOCKPALETTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ web: The Libraries tab cannot browse for a folder in the web app.
---

## Usage
1. Run the command. The Blocks palette opens on the tab you used last.
1. Run the command. The Blocks palette opens on the tab you used last, also after a restart.
2. Choose a tab:
- **Current Drawing**: the blocks defined in this drawing.
- **Recent**: blocks you inserted recently.
- **Favorites**: blocks you added to your favorites.
- **Libraries**: drawings and blocks from a library folder you choose.
- **Libraries**: drawings and blocks from a library folder you choose. Click a sub-folder to open it, **Up** to go
back. The tab opens again in the folder it showed last, unless `BLOCKNAVIGATE` names a folder.
3. Type in the filter box to narrow the list. The wildcards `*` and `?` work.
4. Set the insertion options, then click a block to insert it.

Expand All @@ -25,7 +26,8 @@ web: The Libraries tab cannot browse for a folder in the web app.
| **Explode** | Inserts the block as separate objects instead of a block reference. |

## Notes
- Right-click a block for more actions: **Insert**, **Redefine**, **Add to Favorites** or **Remove from Favorites**, **Edit Block** and **Remove Block** (or **Remove from List** on the Recent and Favorites tabs).
- Right-click a block for more actions: **Insert**, **Open Drawing** (a library drawing, or a whole drawing on the
Recent or Favorites tab, opens in its own tab for editing), **Show Blocks** (a library drawing), **Redefine**, **Add to Favorites** or **Remove from Favorites**, **Edit Block** and **Remove Block** (or **Remove from List** on the Recent and Favorites tabs).
- The view can show the blocks as icons in several sizes, as a list or with details.
- You can also drag a block into the drawing. It is placed where you drop it, with the typed scale and rotation.
- The palette can also insert a whole DWG or DXF file as a block.
Expand Down
1 change: 1 addition & 0 deletions locales/ar-SA/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4911,6 +4911,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = فتح الرسم
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/bg-BG/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4898,6 +4898,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Отваряне на чертежа
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/cs-CZ/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4901,6 +4901,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Otevřít výkres
.bp-view-small = Malé ikony
.bp-on-screen = určeno na obrazovce
.bp-block-not-found = Blok „__ocs_fmt_0__“ nebyl nalezen.
Expand Down
75 changes: 38 additions & 37 deletions locales/de-DE/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4867,43 +4867,44 @@ insert =
.pcs-positive = Requires a positive number.
.pcs-positive-int = Requires a positive integer.
.pcs-help = Traces the points on the kept side of a live section as lines.
.bp-add-favorite = Add to Favorites
.bp-annotative-dynamic = Annotative / Dynamic
.bp-auto-placement = Auto-Placement
.bp-gallery-libraries = Blocks from Libraries...
.bp-choose-library = Choose a library folder with …
.bp-tab-current = Current Drawing
.bp-heading-current = Current Drawing Blocks
.bp-view-xl = Extra Large Icons
.bp-heading-favorites = Favorite Blocks
.bp-gallery-favorites = Favorite Blocks...
.bp-tab-favorites = Favorites
.bp-filter = Filter... (* ? wildcards)
.bp-icon = Icon
.bp-insertion-point = Insertion Point
.bp-view-large = Large Icons
.bp-tab-libraries = Libraries
.bp-heading-libraries = Library Blocks
.bp-view-medium = Medium Icons
.bp-tab-recent = Recent
.bp-heading-recent = Recent Blocks
.bp-gallery-recent = Recent Blocks...
.bp-redefine = Redefine
.bp-remove-block = Remove Block
.bp-remove-favorite = Remove from Favorites
.bp-remove-list = Remove from List
.bp-repeat-placement = Repeat Placement
.bp-select-library = Select a Block Library Folder
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
.bp-block-redefined = Block "__ocs_fmt_0__" redefined.
.bp-block-no-reference = Block "__ocs_fmt_0__" has no reference in the drawing to edit.
.bp-block-referenced = Block "__ocs_fmt_0__" is referenced in the drawing and cannot be removed.
.bp-block-removed = Block "__ocs_fmt_0__" removed.
.bp-add-favorite = Zu Favoriten hinzufügen
.bp-annotative-dynamic = Beschriftung / Dynamisch
.bp-auto-placement = Automatisch platzieren
.bp-gallery-libraries = Blöcke aus Bibliotheken...
.bp-choose-library = Einen Bibliotheksordner wählen mit …
.bp-tab-current = Zeichnung
.bp-heading-current = Blöcke der aktuellen Zeichnung
.bp-view-xl = Extra große Symbole
.bp-heading-favorites = Favorisierte Blöcke
.bp-gallery-favorites = Favorisierte Blöcke...
.bp-tab-favorites = Favoriten
.bp-filter = Filter... (* ? Platzhalter)
.bp-icon = Symbol
.bp-insertion-point = Einfügepunkt
.bp-view-large = Große Symbole
.bp-tab-libraries = Bibliotheken
.bp-heading-libraries = Bibliotheksblöcke
.bp-view-medium = Mittelgroße Symbole
.bp-tab-recent = Zuletzt
.bp-heading-recent = Zuletzt verwendete Blöcke
.bp-gallery-recent = Zuletzt verwendete Blöcke...
.bp-redefine = Neu definieren
.bp-remove-block = Block entfernen
.bp-remove-favorite = Aus Favoriten entfernen
.bp-remove-list = Aus der Liste entfernen
.bp-repeat-placement = Platzierung wiederholen
.bp-select-library = Bibliotheksordner für Blöcke wählen
.bp-select-library-drawing = Zeichnung wählen, deren Blöcke angezeigt werden
.bp-open-library-drawing = Blöcke einer Zeichnung öffnen...
.bp-show-blocks = Blöcke anzeigen
.bp-open-drawing = Zeichnung öffnen
.bp-view-small = Kleine Symbole
.bp-on-screen = am Bildschirm bestimmen
.bp-block-not-found = Block "__ocs_fmt_0__" nicht gefunden.
.bp-block-redefined = Block "__ocs_fmt_0__" neu definiert.
.bp-block-no-reference = Block "__ocs_fmt_0__" hat in der Zeichnung keine Referenz zum Bearbeiten.
.bp-block-referenced = Block "__ocs_fmt_0__" wird in der Zeichnung verwendet und kann nicht entfernt werden.
.bp-block-removed = Block "__ocs_fmt_0__" entfernt.
.attdef-on-screen = Specify on-screen
.attdef-insertion-point = Insertion Point
.attdef-insert-field = Insert field
Expand Down
1 change: 1 addition & 0 deletions locales/el-GR/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4899,6 +4899,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Άνοιγμα σχεδίου
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/en-US/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4900,6 +4900,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Open Drawing
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/es-ES/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4899,6 +4899,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Abrir dibujo
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/fi-FI/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4898,6 +4898,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Avaa piirustus
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/fr-FR/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4899,6 +4899,7 @@ insert =
.bp-select-library-drawing = Sélectionner un dessin pour lister ses blocs
.bp-open-library-drawing = Ouvrir les blocs d'un dessin...
.bp-show-blocks = Afficher les blocs
.bp-open-drawing = Ouvrir le dessin
.bp-view-small = Petites icônes
.bp-on-screen = spécifier à l'écran
.bp-block-not-found = Bloc "__ocs_fmt_0__" introuvable.
Expand Down
1 change: 1 addition & 0 deletions locales/hi-IN/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4887,6 +4887,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = ड्रॉइंग खोलें
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/hu-HU/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4889,6 +4889,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Rajz megnyitása
.bp-view-small = Kis ikonok
.bp-on-screen = képernyőn megadva
.bp-block-not-found = A(z) „__ocs_fmt_0__” blokk nem található.
Expand Down
1 change: 1 addition & 0 deletions locales/it-IT/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4898,6 +4898,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Apri disegno
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4887,6 +4887,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = 図面を開く
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/ko-KR/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4898,6 +4898,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = 도면 열기
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/lo-LA/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4900,6 +4900,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = ເປີດແບບແຕ້ມ
.bp-view-small = ໄອຄອນນ້ອຍ
.bp-on-screen = ກໍານົດເທິງໜ້າຈໍ
.bp-block-not-found = ບໍ່ພົບຊື່ບລັອກ "__ocs_fmt_0__".
Expand Down
1 change: 1 addition & 0 deletions locales/nl-NL/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4897,6 +4897,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Tekening openen
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/pl-PL/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4898,6 +4898,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Otwórz rysunek
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4899,6 +4899,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Abrir desenho
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/ru-RU/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4900,6 +4900,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Открыть чертёж
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/tr-TR/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4859,6 +4859,7 @@ insert =
.bp-select-library-drawing = Bloklarını listelemek için bir çizim seçin
.bp-open-library-drawing = Bir çizimin bloklarını aç...
.bp-show-blocks = Blokları göster
.bp-open-drawing = Çizimi aç
.bp-view-small = Küçük simgeler
.bp-on-screen = ekranda belirtilir
.bp-block-not-found = "__ocs_fmt_0__" bloğu bulunamadı.
Expand Down
1 change: 1 addition & 0 deletions locales/uz-UZ/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4900,6 +4900,7 @@ insert =
.bp-select-library-drawing = Bloklarini körsatiş uçun çizmani tanlang
.bp-open-library-drawing = Çizma bloklarini oçiş...
.bp-show-blocks = Bloklarni körsatiş
.bp-open-drawing = Chizmani ochish
.bp-view-small = Kiçik belgilar
.bp-on-screen = ekranda belgilangan
.bp-block-not-found = "__ocs_fmt_0__" bloki topilmadi.
Expand Down
1 change: 1 addition & 0 deletions locales/vi-VN/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4906,6 +4906,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = Mở bản vẽ
.bp-view-small = Biểu tượng nhỏ
.bp-on-screen = được chỉ định trên màn hình
.bp-block-not-found = Không tìm thấy khối "__ocs_fmt_0__".
Expand Down
1 change: 1 addition & 0 deletions locales/zh-CN/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4882,6 +4882,7 @@ insert =
.bp-select-library-drawing = Select a Drawing to List Its Blocks
.bp-open-library-drawing = Open a drawing's blocks...
.bp-show-blocks = Show Blocks
.bp-open-drawing = 打开图形
.bp-view-small = Small Icons
.bp-on-screen = specified on screen
.bp-block-not-found = Block "__ocs_fmt_0__" not found.
Expand Down
1 change: 1 addition & 0 deletions locales/zh-TW/opencadstudio.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4894,6 +4894,7 @@ insert =
.bp-select-library-drawing = 選取要列出其圖塊的圖面
.bp-open-library-drawing = 開啟圖面的圖塊...
.bp-show-blocks = 顯示圖塊
.bp-open-drawing = 開啟圖面
.bp-view-small = 小型圖示
.bp-on-screen = 在畫面上指定
.bp-block-not-found = 找不到圖塊 “__ocs_fmt_0__”。
Expand Down
10 changes: 10 additions & 0 deletions src/app/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,14 @@ pub struct UserSettings {
/// 4 details, 5 list.
#[serde(default = "default_block_view")]
pub block_palette_view: u8,
/// Blocks palette: the tab it was left on (0 Current Drawing, 1 Recent,
/// 2 Favorites, 3 Libraries).
#[serde(default)]
pub block_palette_tab: u8,
/// Blocks palette: the library folder the Libraries tab showed last; it
/// opens there again unless BLOCKNAVIGATE names a folder.
#[serde(default)]
pub block_library_folder: String,
/// Blocks palette insertion options.
#[serde(default)]
pub block_insert: BlockInsertOptions,
Expand Down Expand Up @@ -1681,6 +1689,8 @@ impl Default for UserSettings {
block_favorites: Vec::new(),
block_libraries: Vec::new(),
block_palette_view: 1,
block_palette_tab: 0,
block_library_folder: String::new(),
block_insert: BlockInsertOptions::default(),
block_mru_list: 50,
block_redefine_mode: 1,
Expand Down
Loading
Loading