Print Page | Close Window

Automated Styles Updates

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11775
Printed Date: 31.May.2026 at 20:09


Topic: Automated Styles Updates
Posted By: RLory
Subject: Automated Styles Updates
Date Posted: 20.Apr.2016 at 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 regards
RL



Replies:
Posted By: Vladimir Michl
Date Posted: 20.Apr.2016 at 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.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: RLory
Date Posted: 20.Apr.2016 at 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.


Posted By: John Connor
Date Posted: 20.Apr.2016 at 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:

(SETVAR "PSLTSCALE" 1)

(SETVAR "DIMSCALE" 0.5)

(princ "System variables have been reset")




-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: RLory
Date Posted: 21.Apr.2016 at 10:09
Thanks.
Very much appreciated for help.
 
Best Regards



Print Page | Close Window