Jump to content

Diesel basis


Recommended Posts

hi

 

can someone please explain what the dollar sign means?

 

 

$M=$(if,$(and,$(getvar,CleanScreenState),1),^C^C_CleanScreenOFF,^C^C_CleanScreenON) 

Link to comment
Share on other sites

Yes, I use GETVAR in DIESEL expressions within command macros in LT regularly.

 

(But you cannot use the "USERR1", "USERS1" etc variables that are available by default as temporary variables in full version.)

 

GETVAR and SETVAR in LT can only act on existing System Variables, as far as I know.

 

One thing you can use in LT that is not in the ful version is GETENV and SETENV which can get and set "Environment Variables". You can give them any name you want and they are set at the installation level (as opposed to the session or the drawing file level). That is, if you

SETENV;Name;Example;

then a variable called "Name" is created and given a value of "Example". It will be accessible from any drawing on that Windows user profile on that machine.

Link to comment
Share on other sites

(But you cannot use the "USERR1", "USERS1" etc variables that are available by default as temporary variables in full version.)

You can use USERR1-5 and USERI1-5 (but for some reason not USERS1-5), but I donùt use them much because the SETENV and GETENV is available.

Link to comment
Share on other sites

why
^C^Cfiledia open C:\Dropbox\Cloud\Autocad\Blocks\Database\sbg000.dwg

wont work?

 

Try

^C^Cfiledia [color="red"]0[/color] open C:\Dropbox\Cloud\Autocad\Blocks\Database\sbg000.dwg

Link to comment
Share on other sites

You can use USERR1-5 and USERI1-5 (but for some reason not USERS1-5), but I donùt use them much because the SETENV and GETENV is available.

 

 

What?! I did not know that! I tried so many times, maybe just got the syntax wrong. Thanks steven-g!

Link to comment
Share on other sites

What?! I did not know that! I tried so many times, maybe just got the syntax wrong. Thanks steven-g!

8) I thought you might like that.

Link to comment
Share on other sites

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