|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Select Hide Utility plug-in |
|
| Print at Sep 13, 2026, 3:26:20 PM | |
| Posted by dorin at Mar 5, 2019, 9:40:47 AM |
|
Select Hide Utility plug-in I've start learning java two month ago and this is my first script with 90% of my contribution, so don't expect too much. After install You will find an entry under Menu Edit->Select special... This plug-in let You to: - make complex selection at current level and then copy/delete/paste or - hide selected and so on. Hope the interface are self explained. PROBLEMS: 1. Conflict with Utility2Plugin; can't coexist so chose one. 2. I've don't know (yet) how to implement correctly the UNDO-REDO action. In this version, undo (only for hide/show section) work acceptable BUT redo didn't! 3. That's being said I recommend to test on an test-file or backup. The plug-in with sources and licence GPL included could be find here Select Hide Plugin or at Source Forge ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by Puybaret at Mar 23, 2019, 5:20:48 PM |
|
Re: Select Hide Utility plug-in Congratulations for your first plug-in It's great that your plug-in provides some missing selection features and I've been wondering myself for a while how adding some Select all walls, Select all rooms, etc menu items could be useful. About searching furniture by name, it coud be nice to look for the furniture inside groups and subgroups. If programming a recursive method is too complicated, you could also use the getAllFurniture method in HomeFurnitureGroup class. About searching windows, it looks like you search them from their name, but then it will work only if the furniture name contains "window" word, making this option misleading compared to the Doors option which selects all doors and windows. And why did you choose to provide two different actions (selecting and hiding/showing) in one dialog box with tabs? I wonder if it would be clearer to program two menu different items... ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by dorin at Mar 24, 2019, 8:12:45 PM |
|
Re: Select Hide Utility plug-in Thank you, Emmanuel! For someone who just start to learn java is a honor! But "retourner à nos moutons". 1. About And why did you choose to provide two different actions (selecting and hiding/showing) in one dialog box with tabs? I wonder if it would be clearer to program two menu different items... In my mind was to kip the sweethome3d as simple as possible; I don't want to pollute the menu more than necessary. I get inspiration from LibreOffice where is Paste special... entry and than a lot of option (only for those who want). When you have all the plugins installed and have more than 12~15 entry in one menu it's like you need to read Shakespeare again and again. 2. I've been wondering myself for a while how adding some Select all walls, Select all rooms, etc menu items could be useful I don't think so. For the standard program You have already implement the basic option. Who need more could install plugins. 3. About searching furniture by name, it coud be nice to look for the furniture inside groups and subgroups Indeed, me or someone else will try to improve it. My fault is I don't make fully tests and this (and maybe others) I missed it. 4. If programming a recursive method is too complicated, you could also use the getAllFurniture method in HomeFurnitureGroup class For me everything is complicated and if is not, I made it to be. Anyway is not the single problem; I have to implement internationalization, the redo action etc. 5. About searching windows, it looks like you search them from their name, but then it will work only if the furniture name contains "window" word, making this option misleading compared to the Doors option which selects all doors and windows Is true, but I don't find a specific criteria to make difference between door, window or service hatch wile all are the same and I don't want to select/hide all. The same situation are for staircase and for lamps. A stair without cutOutShape or a lamp without light are like all other furniture and I don't find a bather way to identify them. 6.(and the last) This plugin and the next few are part of my learning java curve. Now I've start a fight whit another useless plugin which don't want to work as I want. As usual I've made the final (graphic interface) but I don't manage yet to make it functional. I don't give up even if I need to start from "Hello java World" part which I skip it like many others ![]() ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by bdfd at Mar 26, 2019, 6:59:17 AM |
Re: Select Hide Utility plug-inHi dorin, After followed the link and installed the given plugin, I have this : Why ? More, with this version, option 5 doesn't work. TY for your return. Regards. . ---------------------------------------- Evil progresses when good people do nothing! --- SH3D 7.1 and nothing else - W11 64b in 4K |
| Posted by dorin at Apr 22, 2019, 2:28:54 PM |
|
Re: Select Hide Utility plug-in New version (1.1) Accordingly with Murphy's Low when try to prove something is the moment when fail. I've try show to a friend how it work and I've make some choices on plug-in. Result = nothing!; nothing select; nothing hide; no errors. After few attempts I realize I want to make actions on objects that not exist at selected level (not belong to it). That's being said I've add few messages to inform user what's going on. Maybe I don't cover all possible situations but You will see. I update also on Source Forge . ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by dorin at Jun 23, 2019, 1:11:42 AM |
|
Re: Select Hide Utility plug-in New version 1.2 and on Source Forge -add localization (now only French); -add icon ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by dorin at Dec 27, 2019, 9:48:09 AM |
|
Re: Select Hide Utility plug-in New version 1.3 - solve door selection Also on Source Forge ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by dorin at Apr 19, 2021, 12:28:11 PM |
|
Re: Select Hide Utility plug-in New version 1.4
Note: The plugin became active only if the plan window are selected Also on Source Forge ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by hansmex at Apr 20, 2021, 8:17:04 AM |
|
Re: Select Hide Utility plug-in Maybe we need a clear description how this works. The only thing I have achieved, is copying the selected items a 100 times. H ---------------------------------------- Hans Ryzen 7-9700X, 32 GB RAM, 500 GB SSD, 2x 2 TB SSD, Geforce GTX 1060 3 GB |
| Posted by dorin at Apr 24, 2021, 10:42:50 AM |
|
Re: Select Hide Utility plug-in New version 1.5 -fix undo/redo for hide/show action; for select action I consider is useless -modify a little the icon; I've add an "S" on it; is visible also on toolbar To remember how should look: ![]() As usual have a kind of translation in french. Also on Source Forge ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by sjb007 at Aug 19, 2022, 3:20:57 PM |
|
Re: Select Hide Utility plug-in Hi Dorin, I saw you mention this plugin in another thread and thought "Oh. That sounds useful as I try to deconstruct my plans to try and produce acceptable planning drawings. Unfortunately it does not work for me, although it might just be me. Plugin installed, show an Edit menu item and a tool bar item, but clicking either one does nothing. No error message either. Just nothing. I don't have the conflicting plugin the text mentions, and I'm running latest (7.0j) Have you tested it with 7.0? |
| Posted by Puybaret at Aug 19, 2022, 5:26:39 PM |
|
Re: Select Hide Utility plug-in I just tested the last version and it doesn't work when there is no level in the home, with the following exception: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "com.eteks.sweethome3d.model.Level.isViewableAndVisible()" because the return value of "utility.SelectHidePlugin.access$6(utility.SelectHidePlugin)" is nullDorin, I hope this will help you to fix this bug. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by sjb007 at Aug 19, 2022, 10:41:18 PM |
|
Re: Select Hide Utility plug-in Thanks Emmanuel. I never even thought to test with a real file. I was just trying to check the plugin out on an new file with a few bits and bobs and never thought to add levels. |
| Posted by dorin at Aug 20, 2022, 1:57:08 PM |
|
Re: Select Hide Utility plug-in All's of You have right! The fault is mine! So, New version 1.6 . - fix the bug previously mentioned; - add Chinese translation (thanks to YGIL); Reminder: this plugin work ONLY on & with objects at selected level. Also on Source Forge . ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
| Posted by Puybaret at Aug 21, 2022, 12:58:57 PM |
|
Re: Select Hide Utility plug-in Thanks Dorin, it's possible to select objects in a home with no level now ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Xlance at Sep 4, 2026, 2:39:20 PM |
|
Re: Select Hide Utility plug-in Hey All Select & Hide Plugin v1.7 is now posted on sourceforge The Select & Hide plugin adds powerful selection, visibility, and hide/show controls to Sweet Home 3D. Selection Tools Select Walls Select Rooms Select Dimension Lines Select Labels / Text Select Lines / Arrows Select Doors Select Windows Select Stairs Select Lights / Lamps Select Other Furniture Select Multi-point Polylines Invert Selection Option to apply selection to all levels or only the current level Select furniture by name or description Multiple search terms can be entered for more precise matching The selection system also handles furniture groups and their child objects while preserving level information. Hide / Show Tools Objects can be hidden by category: Walls Rooms Dimension Lines Labels / Text Lines / Arrows Doors Windows Stairs Lights Other Furniture Multi-point Polylines Additional actions include: Hide All Selected Show All Hidden Hide furniture by name or description Apply operations to all levels or only the current level Smart Text Search Furniture can be found using text entered in the input field. Searches are performed against both the furniture name and description, with multiple words supported. Level-Aware Operation Selection and visibility operations can be restricted to the currently selected level, or applied across all levels. This makes the plugin particularly useful for multi-story projects. Safe Hide / Restore Hidden walls retain their wall-joining information so that restoring them can reconnect the original wall relationships. Polylines are also restored in their original order. Undo / Redo Hide and show operations are integrated with Sweet Home 3D's Undo / Redo system, allowing visibility changes to be reversed and reapplied. User Interface The plugin provides a dedicated dialog with two tabs: Select Category selection Select all levels Invert selection Text input Hide / Show Category-based hide controls Hide selected Show hidden Text-based hide/search The plugin also supports a modern FlatLaf interface when available. Highlights A fast and flexible way to: Select large groups of objects Hide unwanted objects while editing Work efficiently with multi-level homes Find furniture by name or description Temporarily simplify complex floor plans Restore hidden objects without losing important wall/polyline relationships Undo and redo visibility operations https://sourceforge.net/p/sweethome3d/plug-ins/23/#f142 ---------------------------------------- Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins |
| Posted by dorin at Sep 7, 2026, 1:29:13 PM |
|
Re: Select Hide Utility plug-in New version 1.7 and on Source Forge . Also, on PluginManager - improve the LaF of tabs under macOS - add translation files for all available languages with Claude AI help - fix a bug that occurs when selecting items from furniture groups - improving the identification of doors based on their elevation, in accordance with the DIN EN 17210 standard (< 20mm) Let me remind you of the purpose of this plugin: It is designed to improve SH3D’s functionality regarding item selection. It selects only the items that belong to the selected level. Why? We often see elements on the current level that belong to lower levels. Selecting them separately becomes difficult and can also lead to unintended selections. Also, sometimes we want to select only certain items for deletion or copying. This plugin is designed to help with that. You'll find it under the “Edit” menu and as an icon (green with an “S” on it) in the toolbar. Translated with DeepL.com (free version) ---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law |
|
|
Current timezone is GMT Sep 13, 2026, 3:26:20 PM |