Maxelkat Posted August 9, 2010 Posted August 9, 2010 I have been using AutoCAD for over ten years and never come across this, so it probably isn't possible (although there are doubtless dark corners of AutoCAD of which I am ignorant), but it would be very useful if I could set up some text (be it as an attribute or whatever) that could be driven by an equation, based upon certain variables which I could set up. Yours Maxelkat Quote
Pablo Ferral Posted August 9, 2010 Posted August 9, 2010 Look into Fields. Look under 'Other' there is an option to insert formulas... Quote
chulse Posted August 9, 2010 Posted August 9, 2010 Yep, fields and Diesel can go a long way. For example: on my titleblock, I use a field with $(getvar, ctab) to display the layout tab name as the sheet number. But you can do a good bit more than that. You might also find use in the "USER" variables (USERS1, USERI1, etc...) Quote
Maxelkat Posted August 10, 2010 Author Posted August 10, 2010 Thanks Pablo and Chulse, that should be of great use (once I figure out how it works!). Maxelkat Quote
Maxelkat Posted August 10, 2010 Author Posted August 10, 2010 I've got it to work, and WOW that is cool. Makes my life so much easier! Thanks again guys Quote
Maxelkat Posted August 10, 2010 Author Posted August 10, 2010 What specifically do you want to do? I needed to specify two variables, one an integer, and one real, multiply them, add a constant, round down to an integer, and display it in the middle of a string of text. It works like a charm! Quote
Maxelkat Posted August 10, 2010 Author Posted August 10, 2010 Just a quick follow up question. Can I get AutoCAD to change a block based on User Variables (or more specifically the result of a Diesel expression using User Variables)? Eg if the output is less than 60, show one form of the block, between 60 and 80 another form, between 80 and 125 another, etc. Thanks Maxelkat Quote
Pablo Ferral Posted August 10, 2010 Posted August 10, 2010 Ha! That would be cool! Unfortunately not that easily. It could be done with Visual Lisp or VB though... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.