Newbie question about convertpstyles

Newbie question about convertpstyles

Anonymous
Not applicable
355 Views
4 Replies
Message 1 of 5

Newbie question about convertpstyles

Anonymous
Not applicable
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 Likes
356 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
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 Likes
Message 3 of 5

Anonymous
Not applicable
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 Likes
Message 4 of 5

Anonymous
Not applicable
Hi

thanks alot. knew it was easy.

much appriciated

dean
0 Likes
Message 5 of 5

Anonymous
Not applicable
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 Likes