Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
*John Schmidt
Message 1 of 5 (221 Views)

Suppress convertpstyles warning?

221 Views, 4 Replies
12-20-2007 10:48 AM
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
*Jason Piercey
Message 2 of 5 (221 Views)

Re: Suppress convertpstyles warning?

12-20-2007 10:59 AM in reply to: *John Schmidt
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??
*John Schmidt
Message 3 of 5 (221 Views)

Re: Suppress convertpstyles warning?

12-20-2007 11:13 AM in reply to: *John Schmidt
'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??
*Jason Piercey
Message 4 of 5 (221 Views)

Re: Suppress convertpstyles warning?

12-20-2007 11:15 AM in reply to: *John Schmidt
You're welcome.

--
Autodesk Discussion Group Facilitator


"John Schmidt" wrote in message
news:5806173@discussion.autodesk.com...
'Works great - thanks!
Valued Contributor
pmascaro
Posts: 95
Registered: ‎06-16-2008
Message 5 of 5 (148 Views)

Re: Suppress convertpstyles warning?

02-16-2013 05:49 AM in reply to: *John Schmidt

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!!

Paul R. Mascaro
CAD Supervisor | Engineering Design
ENVIRON International Corporation
-----------
System: Dell 6800M, OS | MS Windows 7 64-bit SP1, CPU | Intel Core i7 Gen4 @ 3.00GHz Haswell 22nm, RAM | 32.00 GB DDR3 1600 MHz, Graphics | NVIDIA Quadro K5100M (8 Gig), HD | SSD Master, SS Hybrid Secondary
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.