clovis
2006-07-18, 04:49 PM
hello,
I'd like to improve the code of the following
(if (not echelle)(setq echelle (getvar "dimscale")))
(if (tblsearch "dimstyle" "1-1")
(progn
(command "-dimstyle" "r" "1-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 1)
(command "dim1" "save" "1-1" "y")
)
)
(if (tblsearch "dimstyle" "2-1")
(progn
(command "-dimstyle" "r" "2-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.5)
(command "dim1" "save" "2-1" "y")
)
)
(if (tblsearch "dimstyle" "4-1")
(progn
(command "-dimstyle" "r" "4-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.25)
(command "dim1" "save" "4-1" "y")
)
)
(if (tblsearch "dimstyle" "5-1")
(progn
(command "-dimstyle" "r" "5-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.2)
(command "dim1" "save" "5-1" "y")
)
)
(if (tblsearch "dimstyle" "10-1")
(progn
(command "-dimstyle" "r" "10-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.1)
(command "dim1" "save" "10-1" "y")
)
)
Any idea's
Thanks
[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]
I'd like to improve the code of the following
(if (not echelle)(setq echelle (getvar "dimscale")))
(if (tblsearch "dimstyle" "1-1")
(progn
(command "-dimstyle" "r" "1-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 1)
(command "dim1" "save" "1-1" "y")
)
)
(if (tblsearch "dimstyle" "2-1")
(progn
(command "-dimstyle" "r" "2-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.5)
(command "dim1" "save" "2-1" "y")
)
)
(if (tblsearch "dimstyle" "4-1")
(progn
(command "-dimstyle" "r" "4-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.25)
(command "dim1" "save" "4-1" "y")
)
)
(if (tblsearch "dimstyle" "5-1")
(progn
(command "-dimstyle" "r" "5-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.2)
(command "dim1" "save" "5-1" "y")
)
)
(if (tblsearch "dimstyle" "10-1")
(progn
(command "-dimstyle" "r" "10-1")
(setvar "dimscale" echelle)
(setvar "dimlfac" 0.1)
(command "dim1" "save" "10-1" "y")
)
)
Any idea's
Thanks
[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]