Display full version of the post: Automated Styles Updates

RLory
20.04.2016, 10:38

Morning, First of all my sincere apologies for my English, since its not my main language you might find some mistakes, Second I must confess (if anyone from CADForum.cz reads this topic) that I've been using your website for tips for a long time but unfortunately I never created a topic (that I remember) so my apologies once more if I don't do anything the way it should be done. Right, going to the subject itself, I'm trying to write a Macro where when I click it updates everything to what I want. Trying to explain in a different way, the same way I created some Macros for example to run automatically PSLTSCALE and DIMSCALE I'm trying to find a way that when I open a drawing and the drawing is not according to any standards or is "all over the place" it will update dims, text, scale automatically to what I want. Does it make sense what I'm trying to explain? In other words, some sort of "update all" button. I know there's the LISP option BUT I must confess, I wrote one ages ago and I well remember that I spent around a day trying to find what was wrong with it because it wasn't working, till I found out in a certain area it was a "dot (.)" when should be a "comma (,)". So I kind of left LISP option aside for what I'm trying to achieve now. Any help on this would be brilliant. Thanks for reading even if you don't have any ideas or any answers. Best regardsRL

Vladimir Michl
20.04.2016, 12:26

There is the CAD Standards function which might help in some situations. But if you need some specific type of "automatic checks and updates", I am afraid you will need VisualLISP or some of the high level programming languages (.NET) to code exactly the functionality which you expect.

RLory
20.04.2016, 12:51
Thanks for your reply.After that situation I explained LISP feels like a nightmare.Thought I could go there with Macros which I think they're a lot simpler to work with. VisualLISP still scares the heck out of me hahahah, still, going to read more into it to find out how to carry on a VisualLISP. Thanks for you help though.

John Connor
20.04.2016, 13:34
System variables can easily be set using simple lisp routines that can be included in acaddoc.lsp and loaded via the Startup Suite.  Example:

800x600



(SETVAR "PSLTSCALE" 1)(SETVAR "DIMSCALE" 0.5)

800x600



Normal
0




false
false
false

EN-US
X-NONE
X-NONE











MicrosoftInternetExplorer4



























































































































































/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}



(princ "System variables have been reset")





Normal
0




false
false
false

EN-US
X-NONE
X-NONE











MicrosoftInternetExplorer4



























































































































































/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}


RLory
21.04.2016, 10:09

Thanks.Very much appreciated for help. Best Regards