I can't manage layers and blocks in a SolidWorks drawing without it bugging. I created a plan from the blank SolidWorks templates. I created my different layers to manage the thicknesses, colors, texts, etc. From these layers, I created basic blocks of my planes.
A0H frame
A1H Frame
A2H Frame
Cartridge
Header revision lines
Revision Line
Cutting tab
Each object (dimension, line, text) in each frame has been assigned to a layer. Then, to make my A0H basemap for example, I create a new blank plan. Then I gradually insert my blocks in the right places. But when I want to check that objects are assigned correctly to layers, there are problems.
For example, I hide this layer, and I should for example have X hidden objects. But I only have Y that are hidden (Y < X). I tried to turn the thing around. I restarted the PC, I restarted SolidWorks. I broke the blocks to recreate them and insert them again. CTRL+Q, etc. Nothing helps, the result is random.
I even had a case with a block inserted 4x, containing odds. Of these 4 blocks, 2 blocks had their hidden odds, the other 2 did not. While the "dimensions" layer was in hidden mode. Incomprehensible!
Do you have the same problem? Do you do otherwise? How can we get around these problems?
Hello @Centor, thank you for your support. I checked, I put my blocks in "none" to prevent it from affecting the objects inside my blocks. That is, the objects in my blocks have an assigned layer, but my blocks don't have an assigned layer. I usually have 3 types of objects per block, so 3 layers per block. And the names of the layers are the same between all the blocks. That's why I don't understand why SolidWorks doesn't hide all the objects in all the frames in the "Thin Lines" layer (for example) when I hide that particular layer.
We have similar problems: dimensions that should be on a hidden layer (and that are in this layer when you edit the block) that are visible in particular.
If you're only on the cartridges, my workaround advice is to explode the blocks once you're well positioned, because no more blocks, no more problems. And normally as you are on the background plan it shouldn't be too annoying (since normally you shouldn't work in your background plans on a daily basis)
I managed to find a solution to work around this layers and blocks bug.
I created a plan file with all my layers in it.
In this single file, I inserted all the geometries I needed (lines, texts, dimensions): frames (A0 to A4, horizontal and vertical), the section tab, the title block, the header of the revision lines, the revision line. Without creating a block at first.
I used the selection filters to apply a layer to each type of geometry (invisible, thin strokes of frames, strong strokes of frames, text of frames, etc.). That is, I've applied the layers to all the geometries of all my future blocks.
Once all the layers were applied, I checked that they were assigned to my geometries (lines, dimensions, texts) by trying to hide them. And it worked.
Then, still in the same single file, I selected the geometries that should belong to a particular block, and I created that block. And so on for each block.
I set up my blocks by defining the names of the attributes and their values to look for (parameterized or hard). I also renamed the names of the blocks.
Once all the blocks were created, I copied and pasted this single file as many times as I needed basemaps (A0H, A0V, A1H, A1V, etc.)
And for each new basemap file created, I removed the blocks that I didn't need. I adjusted the size of the sheet. And I moved the remaining blocks to the right places.
There you go! I hope this will be helpful to you. Thank you for helping me!