Newbie question about convertpstyles

Newbie question about convertpstyles

Anonymous
No aplicable
361 Vistas
4 Respuestas
Mensaje 1 de 5

Newbie question about convertpstyles

Anonymous
No aplicable
Hi

I have lots of drawings set up with STB. I wanna convert them all into using CTB.

I tried using a script, and it works fine as long as all the files i have selected is set up with STB. But when it found files that allready had CTB, scriptpro used almost a minute before it quit AutoCAD and moved on to the next drawing...

So i guess a small vb program will solve this, so that all the files with CTB files allready are ignored.

Or maybe a way to just change the read only PSTYLEMODE variable...

Hope some of you can help me with this issue.

Dean
0 Me gusta
362 Vistas
4 Respuestas
Respuestas (4)
Mensaje 2 de 5

Anonymous
No aplicable
No VBA program is needed. In the script file, first examine the PStyleMode
system variable and execute the command only if it is equal to 0.

(if (= (getvar "PStyleMode") 0) (command "._ConvertPStyles"))

--
R. Robert Bell


wrote in message news:5312031@discussion.autodesk.com...
Hi

I have lots of drawings set up with STB. I wanna convert them all into using
CTB.

I tried using a script, and it works fine as long as all the files i have
selected is set up with STB. But when it found files that allready had CTB,
scriptpro used almost a minute before it quit AutoCAD and moved on to the
next drawing...

So i guess a small vb program will solve this, so that all the files with
CTB files allready are ignored.

Or maybe a way to just change the read only PSTYLEMODE variable...

Hope some of you can help me with this issue.

Dean
0 Me gusta
Mensaje 3 de 5

Anonymous
No aplicable
You're going backwards.

wrote in message news:5312031@discussion.autodesk.com...
Hi

I have lots of drawings set up with STB. I wanna convert them all into using
CTB.

I tried using a script, and it works fine as long as all the files i have
selected is set up with STB. But when it found files that allready had CTB,
scriptpro used almost a minute before it quit AutoCAD and moved on to the
next drawing...

So i guess a small vb program will solve this, so that all the files with
CTB files allready are ignored.

Or maybe a way to just change the read only PSTYLEMODE variable...

Hope some of you can help me with this issue.

Dean
0 Me gusta
Mensaje 4 de 5

Anonymous
No aplicable
Hi

thanks alot. knew it was easy.

much appriciated

dean
0 Me gusta
Mensaje 5 de 5

Anonymous
No aplicable
Well, _I_ didn't want to say that... glad you did! ;^)

--
R. Robert Bell


"Tony Burba" wrote in message
news:5313237@discussion.autodesk.com...
You're going backwards.
0 Me gusta