• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    *John Schmidt

    Suppress convertpstyles warning?

    101 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
    Please use plain text.
    *Jason Piercey

    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??
    Please use plain text.
    *John Schmidt

    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??
    Please use plain text.
    *Jason Piercey

    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!
    Please use plain text.
    Valued Contributor
    Posts: 74
    Registered: ‎06-16-2008

    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 6600M
    OS | MS Windows 7 64-bit SP1
    CPU | Intel Core i7 @ 2.70GHz
    RAM | 8.00 GB DDR3 1600 MHz (Dual-Channel @ 798MHz)
    Graphics | NVIDIA Quadro 5010M (4 Gig)
    Please use plain text.