PDA

View Full Version : Adding a lip to a Sheet Metal part programatically


sstaabs
12-05-2005, 11:16 PM
Hello All,

I would like to combine two functions in one command.

Create a sheet metal part and then add a lip to it.

I have provided a file that does not work. I am sure that there are lots of lisp errors in it. I just want to be able to get it to work.

If I separate these commands into two separate files and load them and run them as two dialogs I can get this to work. This is not practical though.

Thanks,

Steve Staabs

dorothea
12-05-2005, 11:44 PM
Hello Steve,

I don't have the solution for your problem, just some notes:

in dialog 'cr_load_rh_lip you specify the local functions but don't provide a name for a local function. You just call sd-call-cmds. This is wrong.
You are struggling with the units. Just leave this up to the dialog generator. If you have a variable of value type :distance then the system converts the value from user units to internal units. The internal units are mm. Internally when calling other dialogs with sd-call-cmds you must work with internal units. This means just specify the correct value type and then only work with internal units. No conversion is necessary anymore.
For :ok-action you only have to specify once the quote ('). All following lisp forms start without a quote!


Regards,
Dorothea