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

aiuto per macro

marcopisto

Guest
Good morning, I'm addressing you for help in an operation.
I often have to rework drawings that come out of a computing software. These designs created automatically have 6 fixed layers and objects are always assigned colors. I work with .stb so I prefer to set color from layers and separate objects in layers for logical groupings and line thickness, so every time I find myself always doing the same operations i.e.:

1. Quick selection of all objects of a layer
2. Quick selection within a color object selection group
3. check new layer to objects and color dalayer
4. I repeat operations 1.2.3 for 6-7 times on other layers
5. Quick selection of all objects of a layer
6. join me

Would you suggest a way to automate operations? I tried to record the macro but I think the quick selection command does not take it.
thanks to who can help me.
 
I throw down an idea... you could try with a script, waiting for those who know how to make the lisp intervenge
the script limit is that it cannot manage commands that require a window like qselect.
but you can bypass this limit by doing as point 1 an island of the affected layer, then a selection (and here I did not understand if you have to bring everything from layer or just a certain color) of all or color (of which you have to see if there is a specific command) and turn it into bylayer (and find here the command)
via an excel sheet that you find in the forum automate operations.

a few ideas but very lacunose :tongue:
 
I did a draft of commands through scripts. the code must be written all below without the comments and without the numbers that are only for indicative use of the sequence. the part in italics should be replaced by specific name. sending should be replaced with an empty line
*part to isolate the affected layer; as the Isolay command requires the selection of objects a way to bypass the problem is to turn off all those that do not interest1 -layer (read layer management without window opening)
2 freezes (spegne the layer)
3 nome layer (insert all names by separating them with a comma such as aces,quotes,retini)
4 sending (confirm the command
*change color in bylayer; to do this you must first be placed on the layer on which you work
5 -layer
6 corrente (attiva il layer)
7 nome layer8
*adex can bring all objects on color from layer9 caprop (change the properties of an object)
10 everything (select all objects at video)
11 sending
12 color (indicates apropriety to be changed)
13 dalayer (port all objects on layer color
 
I am pleased to point out that it is worth the common sense for which the forum:-It is not a place where a question arises (maybe even insisting) and once you get the answer you no longer feel, without even saying thank you. thank you is a form of respect and gratitude.
- It's not a place of robbery, where I just need to go and then I disappear until the need arises.
the above phrases are drawn from This is post
 

Forum statistics

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

Members online

No members online now.
Back
Top