Jump to content

Recommended Posts

Posted

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

Posted

Look into Fields. Look under 'Other' there is an option to insert formulas...

Posted

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...)

Posted

Thanks Pablo and Chulse, that should be of great use (once I figure out how it works!).

 

Maxelkat

Posted

I've got it to work, and WOW that is cool. Makes my life so much easier!

 

Thanks again guys

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

Posted

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

Posted

Ha! That would be cool! Unfortunately not that easily. It could be done with Visual Lisp or VB though...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...