News:

Please remember to do a search before you ask a question!

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Layer Ordering

Started by Don Cheke, July 28, 2014, 09:59:06 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Don Cheke

Has anyone developed a layer numbering system that will order your layers by ORDER, keeping them that way when selecting by ORDER?

If one numbers them 1-100 and you add a new layer the whole order goes out of whack. If you select ORDER the reorder keeps anything that starts with 1 together (1, 11,111, etc.) and any thing that starts with 2 together (2, 20, 200, etc,), etc. This really sucks. I imaging using the alphabet will do the same.
Don Cheke
My Blog: One Man's Meanderings

Don Cheke

#1
This layer naming business sucks. I think I figured out a way to create the desired list for reordering but when I rename the numbers and save the drawing the new numbers (in the order column) did not take, They revert back to what they were previously. Why offer the ability to rename fields if they don't stick. Something so simple and it is beyond TC as far as I can tell. I am tired of wasting my time on this today! This has been the same with renaming layers in the Design Director, the changes never stick. If you don't create them correct in the first place then a user is out of luck when it comes to future edits.
Don Cheke
My Blog: One Man's Meanderings

Don Cheke

Hear me scream!!! I just tried this two more times via the Design Director and via the Layer palette. I even tried 'extracting from' to a new drawing and saving as a new file name. Nothing works!!!! Renamed fields always revert to what they originally were.
Don Cheke
My Blog: One Man's Meanderings

Dean

Quote from: Don Cheke on July 28, 2014, 11:53:26 AM
Hear me scream!!! I just tried this two more times via the Design Director and via the Layer palette. I even tried 'extracting from' to a new drawing and saving as a new file name. Nothing works!!!! Renamed fields always revert to what they originally were.

Hi Don,
Unless I am missing something >
Numbers go numerically and precede letters and letters are in alphabetical order when you click on “name” in the design director. This is optional to the “by order” if those are set. So you have three options.

"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Tim Stewart

#4
Hi Don,

yes, layers under Order, does appear a bit odd!

You could try prefacing all numbers by an integer, say 1, and then all your numbers should then be in apple-pie order!

Assuming you are saving as tcw file, then save the file and the Order number sticks.  If you want your layer order to remain in alphabetical order, then set this up under Name and again save and the order will stick.  It works for me.

I hope this helps.

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

Don Cheke

#5
Quote from: Tim Stewart on July 28, 2014, 01:15:08 PM
Hi Don,

yes, layers under Order, does appear a bit odd!

You could try prefacing all numbers by an integer, say 1, and then all your numbers should then be in apple-pie order!

Assuming you are saving as tcw file, then save the file and the Order number sticks.  If you want your layer order to remain in alphabetical order, then set this up under Name and again save and the order will stick.  It works for me.

I hope this helps.

Regards Tim

I am saving as a tcw file (always do). Changing (renaming) 'order' fields do not save for me.
I used your numbering method under file names. When I saved the drawing, closed TC and then reopened the drawings the layer names stuck. Reordering with 'Name' works as expected.
To test if I could add a layer in where desired I created a new layer name (i.e. 1-17a) and it landed between 1-17 and and 1-18, which is what I wanted.

I am glad this works. I had thought too that a user could number 1a-1z, 2a-2z, 3a-3z, etc. and that should order correctly when rearranging is initiated. At least it did when I ran a sorting test in Excel.

I create pallet and semi packing videos and having the layers ordered just so to allows me to record the build process by starting with all layers off and then switching them on in order as I record. If the layers are not in order then there is too much dead time as I search for the correct layer. I'd love to show one of the videos but they are proprietary in nature.

Thanks for the input Tim. It is much appreciated.
Don Cheke
My Blog: One Man's Meanderings

Tim Stewart

No problem Don - nice to see some progress.  ;)

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

DTTurbocad

Glad you got your problem figured out Don.

Couple of questions/comments.  I cannot repeat the layers order problem you describe and want to make sure there is not a bug that needs fixing.
Also curious if you make use of the layer filters?

Don Cheke

Quote from: Dave Taylor on July 28, 2014, 02:51:38 PM
Glad you got your problem figured out Don.

Couple of questions/comments.  I cannot repeat the layers order problem you describe and want to make sure there is not a bug that needs fixing.
Also curious if you make use of the layer filters?

Hi Dave, See attached video. Plays in Quick Time Viewer or just drag the video file to Google Chrome browser and it will play automatically. I think it is a bug.
Don Cheke
My Blog: One Man's Meanderings

Dean

Quote from: Don Cheke on July 28, 2014, 03:10:23 PM
Quote from: Dave Taylor on July 28, 2014, 02:51:38 PM
Glad you got your problem figured out Don.

Couple of questions/comments.  I cannot repeat the layers order problem you describe and want to make sure there is not a bug that needs fixing.
Also curious if you make use of the layer filters?

Hi Dave, See attached video. Plays in Quick Time Viewer or just drag the video file to Google Chrome browser and it will play automatically. I think it is a bug.
Don, I can replicate as seen in your video but
it's the syntax,why aren't you using whole numbers. Whole numbers 1,2,3...stick. I've never used ex;0-01 in layer order.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Don Cheke

Quote from: Dean on July 28, 2014, 03:23:01 PM
Don, I can replicate as seen in your video but it's the syntax,why aren't you using whole numbers. Whole numbers 1,2,3...stick. I've never used ex;0-01 in layer order.

You are right Dean, but when you sort 'order' by number 1, 10, 11 all end up at the top because they all start with 1. Same if you sort by 'name' with the layer names as numbers.
Don Cheke
My Blog: One Man's Meanderings

Dean

Quote from: Don Cheke on July 28, 2014, 04:20:02 PM
Quote from: Dean on July 28, 2014, 03:23:01 PM
Don, I can replicate as seen in your video but it's the syntax,why aren't you using whole numbers. Whole numbers 1,2,3...stick. I've never used ex;0-01 in layer order.

You are right Dean, but when you sort 'order' by number 1, 10, 11 all end up at the top because they all start with 1. Same if you sort by 'name' with the layer names as numbers.

Can't you use the "name" layers for your purposes as I described above. I thought "layer order" was for graphics (draw order)  and printing purposes for displaying specifics in a drawing not designed for "grouping", as is using 'names" or layer sets> layer templates, layer filters.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Don Cheke

Quote from: Dean on July 28, 2014, 04:35:07 PM
Quote from: Don Cheke on July 28, 2014, 04:20:02 PM
Quote from: Dean on July 28, 2014, 03:23:01 PM
Don, I can replicate as seen in your video but it's the syntax,why aren't you using whole numbers. Whole numbers 1,2,3...stick. I've never used ex;0-01 in layer order.

You are right Dean, but when you sort 'order' by number 1, 10, 11 all end up at the top because they all start with 1. Same if you sort by 'name' with the layer names as numbers.

Can't you use the "name" layers for your purposes as I described above. I thought "layer order" was for graphics (draw order)  and printing purposes for displaying specifics in a drawing not designed for "grouping", as is using 'names" or layer sets> layer templates, layer filters.

No, I can't use layer names as you described because they don't reorder as required, but I can do what Tim described because in that case they do reorder as required.

I guess I misunderstood Layer Order, but there is nothing in the help files to describe this, only some warning about it not working as expected if things are on different layers. I had not used this until today when I thought it might do what I was after. Now that I know I can use layer names for what I need, I will probably never look at order layers again.
Don Cheke
My Blog: One Man's Meanderings

Dean

Quote from: Don Cheke on July 28, 2014, 04:51:16 PM
Quote from: Dean on July 28, 2014, 04:35:07 PM
Quote from: Don Cheke on July 28, 2014, 04:20:02 PM
Quote from: Dean on July 28, 2014, 03:23:01 PM
Don, I can replicate as seen in your video but it's the syntax,why aren't you using whole numbers. Whole numbers 1,2,3...stick. I've never used ex;0-01 in layer order.

You are right Dean, but when you sort 'order' by number 1, 10, 11 all end up at the top because they all start with 1. Same if you sort by 'name' with the layer names as numbers.

Can't you use the "name" layers for your purposes as I described above. I thought "layer order" was for graphics (draw order)  and printing purposes for displaying specifics in a drawing not designed for "grouping", as is using 'names" or layer sets> layer templates, layer filters.

No, I can't use layer names as you described because they don't reorder as required, but I can do what Tim described because in that case they do reorder as required.

I guess I misunderstood Layer Order, but there is nothing in the help files to describe this, only some warning about it not working as expected if things are on different layers. I had not used this until today when I thought it might do what I was after. Now that I know I can use layer names for what I need, I will probably never look at order layers again.

have you tried layer templates? You can "Group"assign different "layer orders" for the same layers in different templates. You need to double click on the template name to activate
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Don Cheke

Quote from: Dean on July 28, 2014, 05:04:21 PM
have you tried layer templates? You can "Group"assign different "layer orders" for the same layers in different templates. You need to double click on the template name to activate

I have not used layer templates, but make extensive use of layer filters. These are great when working on complex retail environments where I can hide collections of layers (i.e. Building Components, Lot Components, Vehicles,  Interiors Components, etc.)
Don Cheke
My Blog: One Man's Meanderings

John R

This is what I came up with if Layers are numbered into the hundreds. Prefix with two zeros for the single digits. Prefix with a single zero for the two digits. When I clicked on the "Name" header, they sort in numerical and alphabetical order. If you edit layer names in the Layers dialog, you may need to click on the Refresh icon in the Design Director header to activate the change.

From the Wiki:
Order: Determines the order in which layers are drawn. Order can be used to place certain categories of objects in front of others; objects drawn on higher layers will be "over" those on lower layers. The order numbers are initially set to zero. Layers that have the same order number are sorted alphanumerically. The highest layer number is 32767.
It's like you have a load of transparencies in-hand and the order is how you want them stacked. See Layer Name List in the Wiki. It shows the "Order" designed by AIA years ago.

I did notice that when I sorted by the "Order" column, the layers reverted to their creation order in the "Name" column. If I returned the changed layers in the "Order" column to zero and Refreshed inside the palette, all the layers returned to their creation order. I've seen people ask for that ability in the past.

my 2-bits
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Tim Stewart

#16
Don,

I followed your video and TC does indeed behave as illustrated.

However, if you rename layers under Order, as you have done, and, then save your file while the Order column still has the focus (i.e. do not click on the Name column)  then the renamed layers stick.

Not ideal, I know, but it does work.

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

Don Cheke

Thanks everyone for the input and ideas.
Don Cheke
My Blog: One Man's Meanderings

Alvin Gregorio

#18
I think I might have come up with something that works.  A way of getting the Layers in the Layers Palette to sort according to their numbering in the "Order" column within the Layers Palette, when using Order numbers with more than a single digit (e.g.: 1,2,3,23,35,88,123,235,etc.).

Start with 1000 being your lowest number.  Then everything is one-thousand-something, or two-thousand-something, etc.
For huge drawings with many, many Layers, perhaps start with 10000 being your lowest number; or maybe just moving on to numbers in the 2000s and so on would work.

Per the TurboCAD Wiki, "The highest layer number is 32767".  So there ought to be plenty of room using this method.

Others want to give it a try and some experimentation and Post back?

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Bobich

Alvin,

I don't know for sure but my understanding of the order column in the layers dialog is it's for layers drawing order i.e. a layer order of 1 will appear above a layer order of 0.

I use this order column with images i.e. my drawing layers have a layer order of 1 and the image a layer order of 0 that way I am able to see my image whilst adding objects which need to align with the image. Works fine as long as you remember to not click on the image as your drawing layers beneath it then disappear.

Perhaps I'm doing it backassward and hopefully those with more knowledge will straighten me out.

Best Regards
Bob
TC 14 Deluxe, TC 19 Pro
Windows 7, 64bit 8GB Ram

Alvin Gregorio

#20
Quote from: Bobich on September 22, 2014, 08:56:42 PM
Alvin,

I don't know for sure but my understanding of the order column in the layers dialog is it's for layers drawing order i.e. a layer order of 1 will appear above a layer order of 0.

I use this order column with images i.e. my drawing layers have a layer order of 1 and the image a layer order of 0 that way I am able to see my image whilst adding objects which need to align with the image. Works fine as long as you remember to not click on the image as your drawing layers beneath it then disappear.

Perhaps I'm doing it backassward and hopefully those with more knowledge will straighten me out.

Best Regards
Bob

You are correct Bob, in the intended purpose of the "Order" column in the Layers Palette.

But there have been many on these Forums that have expressed throughout the years they would also like to use sorting of the "Order" column in the Layers Palette, for reasons particular to their drawing.  One example, in the style of drawing I mostly do:

      Let's say I draw and print in Color or Grayscale-- or even print "Black Only", in some circumstances.  I am drawing 2D building construction plans.  I would have multiple Layers within the site or plot category, multiple Layers on top of that in the Foundation category, multiple Layers on top of that in the Framing category, and so on.
      Layers Ordering-- in its intended purpose as you mentioned Bob-- would keep the Objects of the drawing appearing on top of one another as they would be in the real-world.  Such that (when viewing Objects on the World Workplane, in Plan View) Objects on the "Foundation" Layer obscure Objects on the "Site" Layer, Objects on the "Framing" Layer cover up Objects on the "Foundation" Layer, and so on.  But also, by being able to accurately sort the 50-150 Layers via the "Order" column in the Layers Palette, one can see their Layers ordered in the Layers Palette in the order that a building is built in the real-world.  Just helps to visualize and to more quickly find Layers with the eye.

That's just one example of using the "Order" column of the Layers Palette-- by being able to accurately sort the Layers via the "Order" column-- for a side benefit use.  Don, in a previous Post in this thread, described another example:  Being able to sort the Layers via the "Order" column for quickly and easily creating a video accurately showing the way a bunch of boxes and palettes are to be loaded into a delivery truck.

When we are talking about a single-digit number of Layers... no big deal.  But it is when we get into anything more than a single-digit number of Layers that Users have run into the problem of being able to accurately sort-ascending-- or sort-descending-- Layers in the Layer Palette within the "Order" column.
    I believe I read in this thread others' workaround methods.  I am adding another, which seems to be very easy to implement, and is very intuitive-- just start with 1000.

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Here's another example of the method I described; it also illustrates the usefulness of using the "Order" column's "sort ascending" option.
This is from the house remodeling project I am currently drafting.

(my Layers Naming scheme and my Layers' Print Styles need some tweaking; but the image shows the gist of it)
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andrew Wylam

Big Problem with this will sort the layers out  OK
But you will have problems if you need to arrange any of the images with the  with the format tools Drawing order tools
Send back move to front Etc
This will now not do anything as everything  is sorted by the layers order!!

I had a white Block under some text and you cannot move it above the other parts of the  drawing
and i could not get the text to sit above the white block  Delete the order numbers and it all works ok!

Andrew   
 

Andrew Wylam

Be aware if you use the ordering  option
1- 9 sorted ok but 10 will show up next to the 1    A-Z works ok
you can then sort by that column

However, there is a big problem with this  if you need control over  the layer order  ie you require a block or text to be on the top layer you have no control of any of the layer orders with the other tools send back to bring to the front  when you are ready to sort out the order you require layer you need to display two options the format tools do not work with number in the drawing orders column.  Option 1 removes all the numbers. once you have sorted them out Option 2 is to set largest for items you wish to show on top
if your viewport layer is above the dimensions  and notes may not show I had a note with  a white block under them covering up part of the drawing under it did not display correctly Option .3 just drag the layer order into the order you required