• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

script per change e spostat layer

  • Thread starter Thread starter sircame
  • Start date Start date

sircame

Guest
Hello, everyone. I'm in front of a dilemma.
I have a design, a ctr for accuracy, so full layer wedge.
I have identified various types of layers, such as buildings, soil, roads, railways etc.
I would need a script that took the various layers that I managed to isolate, for example 1a1, 1b2 and moved them to the "building" layer, and so on.
I created a small script of commands, the problem is that if by chance that certain layer does not exist it makes me mistake and then it stops everything.
I don't know if I was clear, but can you do this by automating everything?

Thank you.
 
I created the script with "-uniscilay", so I can manage it completely in command line.
if I try it normally works, but when I write the name of a layer that in that specific ctr is not there, but in others you, manually bypass it and go to the other layer, but automatically from, rightly, error "no valid layer" and after I overturn the course of the script.

convlayer I didn't find options to use it online.
 
If you use scripts I deduce you have lt. write the version in the profile would all help address the suggestions. what is said and walked countless times.
Does the convlayer command work?
 
I apologize, use autocad 2016 full.
convlayer works without problems and in fact I always used it before, but I wanted to speed it up by creating a command script. Unfortunately I don't know lisp.

now the script is so created:

creates layers buildings green color
creates layers roads color red
etc. .

select layer 1a1, 1b2 etc and insert them into the building layer
select layer 2i9,2f6 etc and insert them into the layer roads
etc.

works until it finds an existing layer.
 
I apologize, use autocad 2016 full.
maybe write it in the profile too.. .

Now I can't do tests with the various commands, so I'll give you some blind hints.
test with command ytrans I don't remember.
 
Thank you!
I had fossilized myself on an automatic command line procedure, but I never realized that you could save the procedure on convlayer.
carried out the procedure, saved, then every time I have to clean a ctr I open the convlayer gui, I feed him the procedure saved and I find the design as clean as I wanted.

Thank you 1000!

p.s. updated the profile. :
 
you can see to automate everything, if you give it to you, always through script with generator found in the forum, so you feed him tot drawings and go to drink coffee. If you did not know this excel you will see how many satisfactions will give you...
updated the profile. :

ben fatta.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top