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

solid color conversion layer

  • Thread starter Thread starter stefanobruno
  • Start date Start date

stefanobruno

Guest
Good morning.
I should convert the colors and layers of hundreds of dwg exported by inventor in autocad.
the manual procedure I'm doing is seen in the attached video.
Is there any automatic procedure that allows me to do so?
with all other customers, export from inventor in autocad dwg and, with the correct templates and with holy patience for tuning, I can have files responding to requests.
with this client is not there, the only way is this of the video, hours and hours to do a job at the charlot.
I'm told they already got their autodesk salesman in the past years, but they didn't get a spider out of the hole.
 

Attachments

a simple script should be enough.
using the excel sheet you find in the forum script generator - updates) you can create a script that processes all the files.
at the link I put you also find a pdf explaining the functioning of the scripts, but summarizing is nothing but the list of commands you launch while doing autocad operations.
in your case after completing the conversion, before closing the file, press f2 and you will exit the command list.
the only problem is that the command you use ,laytrans, cannot be used with the script because it is not usable directly from the command line (unreliable feature); You should hijack on other similar commands like uniscilay.

alternatively you have to wait for someone who knows how to make lisp
 
the only problem is that the command you use ,laytrans, cannot be used with the script because it is not usable directly from the command line
In fact, the problem is here.
the first button I press system, bad, ladder and then call laytrans and here it stops.
I never understood why the commands don't behave the same way.
thank you for the answer, confirming my fear.
 
I made a button, the first one I press in the movie, which does run some simple commands and takes me to laytrans, where it stops everything and forces me to continue manually.pulsa.webp
 
with custom buttons I can't help you because I've never tried to do them and I have no idea how they are managed.
the script does not require special languages and is very basic as compilation.
your problem is not specific to mechanical because it uses the same normal autocad commands, you should move the discussion (and you don't even have to ask a moderator to do it di) and probably one of the lisp sticks can come to help you
 
an example of creating and/or modifying a layer by setting color and thickness:
(command "_-layer" "_m" "noble" "_c" 4" "_lw" "0.15" "")
or colour, thickness and line type
(command "_-layer" "_m" "name" "_c" 1" "_lw" "0.15" "_lt" "center" "")

The script is a series of these commands applied to one or more dwg.
with createscript files is beyond easy to create it.
 
createfilescript is that of this discussion? I didn't have time to read it before I ventured into the conversions I have to do, I study.
thanks to the indication.
 
Last edited:
So, in my opinion, if you have inventor, you also have mechanics.
If you have mechanical there is a command that automatically generates scripts that you can launch.
and there is already one that converts the objects (after you have configured it) by moving them from one layer to another and forcing the color, the style of line, etc.. or setting from layers.
the mechanical command is _amscript
opens a window and you can generate predefined scripts below: What you need is convert.
at the end of the conversion I would also launch what is called sizemen, which makes a purge to all drawings, selected folders and zoom extension before saving them.
 
zac69 & legs, sorry if I answer only now, the mailbox where the notifications arrive is full at 99.9% and these don't come anymore.
I did some evidence on autodesk indications, but I didn't fix it.
I will try to follow your advice, unfortunately I am so busy that I can not concentrate on these things, so, finished a group, within in " monkey mode pressing keys " and I pass the time necessary to convert.
I arrive that I no longer know where I am shot and so I am ready for a new group, which will come, surely, perfect.
I hope.
 

Forum statistics

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

Members online

No members online now.
ciao
Back
Top