Hi,
Is there anyone noticed that the layer can not be moved up or down in the Layer dialog-box of SolidWorks Drawing (up-to 2018 version)?
I need to move the layer up and down.
Thanks
Hi,
Is there anyone noticed that the layer can not be moved up or down in the Layer dialog-box of SolidWorks Drawing (up-to 2018 version)?
I need to move the layer up and down.
Thanks
Layer control in Solidworks is non-existant.
BTW, the move button has a different functionality. From the help file :
Solidworks made an half hearted attempt to put layers in and as far as I noticed since I started using Solidworks back in '09 they never did any noticeable improvement on it.
The only way to alter the sequence of layers I found is by setting them up in the right order in the first place.
Alternatively, create a block containing the layes, by for instance drawing a bunch of lines and assign layers to them from top to bottom in the sequence you want, then go to the drawing without the right order. Delete all layers, insert the block, explode the block and delete the block. If for any reason you want to insert an additional layer and don't want it added to the end of the list you can do it all over.
If there's a better method then I would love to hear it.
Peter De Vlieger wrote:
If there's a better method then I would love to hear it.
Another option would be to use a macro
Hi Deepak,
Is it possible with macro?
I just need to organize/Move the layer according to layer name.
Thanks
I've no doubt that it could be done with a macro. However alas I myself can't set it up.
The logic would most likely be something along the lines of :
- detect what layers are present as well as all there specs (color, line type, printable, etc)
- delete the layers from the drawing
- sort the names alphabetically
- create them per the resulting sequence, with all specs
- done
Sounds easy, right? But unless you have time and are really good at macro's it's not as easy as it sounds.
The result being that you would be able to add several layers and by activating the macro everything would be in the right order.
The only thing that I can see it becoming an issue is the old headache of ending up with a sequence such as : 1-11-12-2-20-201-3-4-45-5
which would take a whole lot more code to get it in the proper order.
Peter De Vlieger wrote:
The logic would most likely be something along the lines of :
- detect what layers are present as well as all there specs (color, line type, printable, etc)
- delete the layers from the drawing
- sort the names alphabetically
- create them per the resulting sequence, with all specs
- done
Yes that would be the proces and I do recall making a similar macro though not able to find at the moment.
Same here.