Tharwat Posted July 28, 2010 Posted July 28, 2010 I still don't know how to make this friggin thing. Don't argue over small things like that. Who is arguing ? Quote
Tharwat Posted July 28, 2010 Posted July 28, 2010 I will answer your question although your last reply was very rude ..... The path of the support folder is as the following; C:\Program Files\AutoCAD 2010\Support so in the support folder you will put the DCL file and from autocad you will load the LISP file ..... is it clear ? If not follow the steps. command line:ap and select your lisp file --- > load ---> close. Finally in the command line type the name of your lisp program ...... that's all. Is it OK . Quote
Kenter Posted July 28, 2010 Author Posted July 28, 2010 I already got that part. I meant in making the program itself. I don't know DCL language. I wasn't trying to be rude, but rather tell you the truth on why I didn't change it. LOL and I was half joking about the arguing, it just seemed that way between you and lpseifert. Quote
Tharwat Posted July 28, 2010 Posted July 28, 2010 Here are the codes of dcl file and the approved image. I hope you will be happy with it. Kenter : dialog { label = "Tharwat to Kenter"; : toggle { key = "BP1"; label = "BP47"; value = "0"; alignment = right; } : text { label = "Script:"; } : toggle { key = "BP2"; label = "BP90"; value = "0"; alignment = right; } : column { : row { : boxed_column {label = "Insertion Point"; : toggle { key = "scr"; label = "Specify on-screen"; value = "1"; } : edit_box { key = "nameX"; label = "&X"; edit_width = 10; value = ""; alignment = right; } : edit_box { key = "nameY"; label = "&Y"; edit_width = 10; value = ""; alignment = right;} }}} : column { : edit_box { key = "wid"; label = "Width"; edit_width = 10; value = ""; } : edit_box { key = "len"; label = "Length"; edit_width = 10; value = ""; } : edit_box { key = "dip"; label = "Dipth"; edit_width = 10; value = ""; } } :row{ : button { key = "ok"; label = "Accept"; is_default = true; is_cancel = true; } : button { key = "esc"; label = "Cancel"; is_cancel = true; } } } Best regards Tharwat Quote
The Buzzard Posted July 28, 2010 Posted July 28, 2010 (edited) I already got that part. I meant in making the program itself. I don't know DCL language. I wasn't trying to be rude, but rather tell you the truth on why I didn't change it. LOL and I was half joking about the arguing, it just seemed that way between you and lpseifert. Kenter Here is your DCL file with coding to operate. Program will make the layers also and has mode_tile for insertion point. You can mingle this code with yours if you want or do a re-write if you wish. Or I can finish it. Its up to you. Here is an image of the DCL. BP.dcl BP.lsp Edited July 28, 2010 by The Buzzard Quote
Tharwat Posted July 28, 2010 Posted July 28, 2010 Thanks Buzzard, it is much tidy than mine, Frankly. Regards. Tharwat Quote
The Buzzard Posted July 28, 2010 Posted July 28, 2010 Kenter, I just want to point out to you that you should use radio buttons for your top selection instead of toggles. You want the choice to be one or the other. Also I am not sure why you want insertion point. Your functions do not request it. You need to clarify here. Finally you may want to give values other than 0 for the Width, Length, and Depth, Otherwise you will need to error trap this if you select enter without a good value. In any event it is best to error trap also if the user hits escape. Saving and restoring user setting may also be needed here as well. These are just some things you should consider. Quote
Kenter Posted July 29, 2010 Author Posted July 29, 2010 I was trying out a few things, using both your codes as guides as well as some of my limited knowledge, and this is the program I came up with that includes error trapping. I followed how you made the radio buttons (that was a good suggestion Buzzard) but when I tried to add a third one called bp multi, it would not appear. I am unsure what I am doing wrong. I also do not know how to merge this code to interact with my three applications. Any help is appreciated. Kenter BoxPlate47.LSP BoxPlateMulti.lsp BoxPlate90.LSP Makeplate.lsp Quote
The Buzzard Posted July 29, 2010 Posted July 29, 2010 I was trying out a few things, using both your codes as guides as well as some of my limited knowledge, and this is the program I came up with that includes error trapping. I followed how you made the radio buttons (that was a good suggestion Buzzard) but when I tried to add a third one called bp multi, it would not appear. I am unsure what I am doing wrong. I also do not know how to merge this code to interact with my three applications. Any help is appreciated. Kenter I see all these lsp files, But where is the dcl file? Quote
The Buzzard Posted July 29, 2010 Posted July 29, 2010 I was trying out a few things, using both your codes as guides as well as some of my limited knowledge, and this is the program I came up with that includes error trapping. I followed how you made the radio buttons (that was a good suggestion Buzzard) but when I tried to add a third one called bp multi, it would not appear. I am unsure what I am doing wrong. I also do not know how to merge this code to interact with my three applications. Any help is appreciated. Kenter I assume you are having the program create the dcl for you. I do not have any background with that type of dcl. My dcl files are written separate. I supplied you with a lisp to go with the dcl I supplied you with. There were variables in there to get your values to use with your programs. I am sorry, But I will have to back out of this one. I am not versed in writing the DCL the way you have it. Quote
Kenter Posted July 29, 2010 Author Posted July 29, 2010 Alright, I appreciate your help just the same Buzzard. Kenter -Till next time Quote
Tharwat Posted July 30, 2010 Posted July 30, 2010 I am happy that you got it worked .after the hard work on it without appreciation. Tharwat Quote
The Buzzard Posted July 30, 2010 Posted July 30, 2010 I am happy that you got it worked .after the hard work on it without appreciation. Tharwat Tharwat, Kenter does not have it working yet. More work still needs to be done. I only mentioned that I was not able to help out here. Quote
Se7en Posted July 30, 2010 Posted July 30, 2010 ADVANCED TOPIC: Why dont you just make the dialog "on the fly"? I use either the file: "$vld$.dcl" or the function: "vl-filename-mktemp". Quote
Kenter Posted July 30, 2010 Author Posted July 30, 2010 I am happy that you got it worked .after the hard work on it without appreciation. Tharwat Hi Tharwat, I am sorry I did not thank you aswell. But it was not a general thank you, only a thank you for trying even though it was beyond personal ability. I do thank you though Tharwat. And I appreciate this forum and all its members as well for helping when they can. Forgive me for not thinking. p.s. I did get it fully working. Just needed a bit more tweaking. Thanks again all! Quote
Recommended Posts
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.