Author Topic: to reuse variable for command argument  (Read 1602 times)

0 Members and 1 Guest are viewing this topic.

dussla

  • Bull Frog
  • Posts: 297
to reuse variable for command argument
« on: November 02, 2007, 05:27:50 AM »
i use p1 p2 distance coomand many time , maybe 1000-3000 times

then i will get

xdelta = p1-p2

ydelta = p1-p2


i will get other other value per each distance command
like other person  advice  , i can make that lisp

'extrude x delta
extrude y delta
exturde z delta
'move y delta
move x delta
move z delta
'offset x delta
offset y delta
arrary x delta
arrary y delta
offset x
offset y
offset z

..
..
........................ like this , i have to make many command

that is some complex in woking my plan 

only if i make 3 fuction
f1 fuction key = x delta
f2 fuction key = y delta
f3 fuction key = z delta

if command demand argumen vaule , i can;t put f1 , f2 f3 only
i don;t need make many command lisps
do you understand my word ?



daron

  • Guest
Re: to reuse variable for command argument
« Reply #1 on: November 02, 2007, 08:35:07 AM »
Not really, what exactly are you trying to accomplish? Do you want to store values within function keys? Are these values really variable or are they supposed to be static, meaning not changing? If they're variable, you shouldn't need to place them in function keys. It seems like you're trying to lump a bunch of commands into one program. Is this something you do a lot of and in the order you listed?

dussla

  • Bull Frog
  • Posts: 297
Re: to reuse variable for command argument
« Reply #2 on: November 04, 2007, 06:40:08 AM »
Not really, what exactly are you trying to accomplish? Do you want to store values within function keys? Are these values really variable or are they supposed to be static, meaning not changing? If they're variable, you shouldn't need to place them in function keys. It seems like you're trying to lump a bunch of commands into one program. Is this something you do a lot of and in the order you listed?

thank you good advice
i am 3d user
so i use  extrude command always
for that , i have to distance p1  p2
and  if i got distance value , i have to type  the valuer for extude ,  ,,, many  augument always
that is boring ~~
i am seeking  something  to store values within function keys?
that is not staic valiable
these values  is really variable
is that possible ?