Author Topic: diesel help.  (Read 2320 times)

0 Members and 1 Guest are viewing this topic.

hudster

  • Gator
  • Posts: 2848
diesel help.
« on: March 17, 2004, 12:02:04 PM »
I have a variable, user1, when i type user1 on the command line it returns a value of 100.

how do i get that value to be inserted in a command?

i wish to use this to set the lTscale value, but don't have a clue about diesel.
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
diesel help.
« Reply #1 on: March 17, 2004, 12:58:43 PM »
You have not specified which user variable you are using. User has strings, reals and integers ...
such as
USERS1
USERR1
USERI1
For this example I will simply use x in place of the data type. For diesel it makes no dofference anyway.

Code: [Select]
$M=$(getvar, userx1)

You need to insert this into the button command, where the scale factor is requested, simply use that bit of code. For example, when you insert with a scale of 50 ...
Code: [Select]
-insert dwgname;\50;50;\

use this instead..
Code: [Select]
-insert dwgname;\$M=$(getvar, userx1);$M=$(getvar, userx1);\

Good luck
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie