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

change command line quota text color with a script

  • Thread starter Thread starter andrea mani
  • Start date Start date

andrea mani

Guest
Bye to all,
First of all, the usual thanks, with your help I solved several problems... .
Now I'm asking you a little special.
I have to export to wmf about 400 drawings and to each of these I have to set the color of all elements in black\white (these files will go to a catalog).
technically it is not a big problem, with a script it is possible to do so (also export); the only problem is that all the texts and quotas have as setting of the color "cian" and not "dalayer". and then changing layers the color remains the same... --
here is my problem:

How can I, from command line, assign another color to the texts? ?

I banged my head a whole day without riding a spider from the hole...
I trust you and in advance thank you.

Andrea
 
add these lines to the script:
dimclrt
256
dim1
update
everything
if you are sure that the color of the text in the style of quota is "dalayer" enough the last three lines.

:smile:
 
great! ! !
thank you so much gp. I had already found this variable but I didn't know I had to make the last three steps.... .
tomorrow I try for sure!! !
I owe you a beer.
 
good morning to all and good morning gp..

It works! ! ! ! ! ! !

My script is as follows:
cmd
0
filed
0
zoom
and
Rigen
_
-layer.
C
?
0.0.0
0.1,2,3,4,5,7,8

dimclrt
256
dim1
update
?

zoom
and
Rigen
wmfout
" file name that automatically puts

_
No


and everything works here. :finger::finger:

But now I have another problem... :frown:
I should be able to do the same on simple lines of text (testom) and on lines... who did the design, years ago, did not think to change layers to the objects but only acted on the color and therefore I am point and head.. .

How could I do that?

Andrea
 
Guys,
who needed a possible solution.
I learned to use the command "xplode" as normal explosions didn't explode all the odds making the command suggested by gp unusable (dimclrt and the necessary upgrade went to restore even the arrows and lines of suppressed extension). the _chprop command allows you to change colors much more easily and effectively than "-layer". I also found that it is enough to insert "dabloc" to have everything in white (which on the wmf will become black)

_
<percorso che="" convertire="" del="" file="" intende="" si="">zoom
and
Rigen
_
xplode
g
C
fromblock
_
_
C
fromblock
?


zoom
and
Rigen
_
wmfout


_


the s at the end does not save the file, so it remains "original"

I hope you can serve someone! !

Hello and thank you all! !

bye:36_1_11::36_1_11:
Thank you very much cmq, you put me on the "right away"! ! !

Hello everyone again</percorso>
 

Forum statistics

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

Members online

No members online now.
Back
Top