Author Topic: Layer Chronical Letter Suffix  (Read 1751 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Layer Chronical Letter Suffix
« on: June 15, 2020, 01:44:53 PM »
I saw this post somewhat on another site. Curious on this. How hard is it to have a command place a letter or number as a suffix? It was for copying items to a new layer.

So if the first layer is Test, then the command would copy the items onto a new layer Test1. Then if you do it again to Test1, it would go to Test2.

I don't know if the copytolayer command has the ability to do that?

Civil3D 2020

ribarm

  • Gator
  • Posts: 3274
  • Marko Ribar, architect
Re: Layer Chronical Letter Suffix
« Reply #1 on: June 15, 2020, 02:12:30 PM »
Sure it's possible... You'll have to write custom copy command in LISP form...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

JohnK

  • Administrator
  • Seagull
  • Posts: 10638
Re: Layer Chronical Letter Suffix
« Reply #2 on: June 15, 2020, 02:46:23 PM »
What happens when you pick something on layer "Test" but already have a layer called "Test1"?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Layer Chronical Letter Suffix
« Reply #3 on: June 15, 2020, 03:41:58 PM »
I would think it would go to the Test1 Layer.
Civil3D 2020

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Layer Chronical Letter Suffix
« Reply #4 on: June 15, 2020, 04:39:10 PM »
Just curious but why would you need something like this?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

JohnK

  • Administrator
  • Seagull
  • Posts: 10638
Re: Layer Chronical Letter Suffix
« Reply #5 on: June 15, 2020, 05:12:44 PM »
I would think it would go to the Test1 Layer.
Now it's getting interesting (more complicated, but interesting).

What happens when you pick something (the only thing) on layer "test" -i.e. items would get moved to layer "test1" but then the layer "test" would be empty. Does that layer get deleted or just renamed or even moved to the "test1" layer? Also, what mechanism would you use to move items from "test1" back to "test"? And, do you support a selection set for input?

Just curious but why would you need something like this?

My point behind the question; this program has a very high chance of being a big pain to code and on the operation (iteration upon iteration of the layer table--over and over again--[as in the case of the selection set] for something not really necessary).
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Layer Chronical Letter Suffix
« Reply #6 on: June 15, 2020, 06:10:47 PM »
Lets say, that the default layer name would be a "Test-1". The user could select the items that are on "Test-1" then it would copy the items to a new layer "Test-2". Then the command is done?
http://www.theswamp.org/index.php?board=2.0
If the user selects "Test-1" its again, then it would place it on "Test-2" Layer that is already there.

I must be thinking to simplistic lol.
Civil3D 2020

huiz

  • Swamp Rat
  • Posts: 917
  • Certified Prof C3D
Re: Layer Chronical Letter Suffix
« Reply #7 on: June 16, 2020, 03:11:36 AM »
If you have Civil 3D and you copy an Alignment with the name "ALM - (1)" then the copy is named "ALM - (1)(1)". That's also an interesting number system.



The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.