Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Suppress convertpstyles warning?

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
487 Views, 4 Replies

Suppress convertpstyles warning?

We'd like to run a script for converting a bunch of drawings from .ctb to
.stb format, but can't get around the idiot warning box that comes up
everytime convertpstyles is run - EXPERT variables have no effect.

Does anyone know how we can suppress this warning so we can use
convertpstyles in a script??

Thanks - John
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Try calling it with the command function.

(command "convertpstyles")


--
Autodesk Discussion Group Facilitator


"John Schmidt" wrote in message
news:5806143@discussion.autodesk.com...

> Does anyone know how we can suppress this warning so we can use
> convertpstyles in a script??
Message 3 of 5
Anonymous
in reply to: Anonymous

'Works great - thanks!

John

"Jason Piercey" wrote in message
news:5806157@discussion.autodesk.com...
Try calling it with the command function.

(command "convertpstyles")


--
Autodesk Discussion Group Facilitator


"John Schmidt" wrote in message
news:5806143@discussion.autodesk.com...

> Does anyone know how we can suppress this warning so we can use
> convertpstyles in a script??
Message 4 of 5
Anonymous
in reply to: Anonymous

You're welcome.

--
Autodesk Discussion Group Facilitator


"John Schmidt" wrote in message
news:5806173@discussion.autodesk.com...
'Works great - thanks!
Message 5 of 5
pmascaro
in reply to: Anonymous

Can someone help me finish this lisp? It loads, but I'm still set to CTB....

 

(defun CPS (if (= (getvar "PSTYLEMODE") 1)
 (command "CONVERTPSTYLES")
 )
)
(CPS "C:\\_AutoCAD\\2013\\Config\\Plot Style (STB)\\acadstandard.stb")

 

or

(if (= (getvar "PSTYLEMODE") 1)
 (command "CONVERTPSTYLES" "C:\\_AutoCAD\\2013\\Config\\Plot Style (STB)\\acadstandard.stb")
 )

Any help would be appreceated... I just have to load this into my master lisp for everyone.... Much Thanks!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost