Kenter Posted July 26, 2010 Posted July 26, 2010 I have two scripts that run a very similar program to make panels. They are called bp47 and bp90. In both programs, I give a start location, width, length and depth and then a drawing is created. Lets just say that bp47 makes a square and bp90 makes a rectangle. I want to have a script that will use a pop up box that will look similar to the image attached. I made it quickly in paint. I have no idea where to start. Also attached is my code. Two layers must be made before running. 'plate' and x-laser' Any help is appreciated. Kent BoxPlate90.LSP BoxPlate47.LSP Quote
lpseifert Posted July 26, 2010 Posted July 26, 2010 Here's a start http://www.afralisp.net/dialog-control-language/tutorials/getting-started-part-1.php Quote
Tharwat Posted July 26, 2010 Posted July 26, 2010 I think this the second time you are posting the same request, Members and I started modifying your codes one by one, but now you are bringing it in another way. And here in your attached lisps still the same as it was before, I mean we corrected lots of things in the same Lisp last time, and you are re-posted the same wrong one ...... why is that? Please check the points that we gave you before and remodify your Lisp files accordingly. Tharwat Quote
Kenter Posted July 26, 2010 Author Posted July 26, 2010 I think this the second time you are posting the same request, Members and I started modifying your codes one by one, but nowyou are bringing it in another way. And here in your attached lisps still the same as it was before, I mean we corrected lots of things in the same Lisp last time, and you are re-posted the same wrong one ...... why is that? Please check the points that we gave you before and remodify your Lisp files accordingly. Tharwat Tharwat, I did not change it because it works in the enviroment that I am using it in. To change it would be pointless other than to clean it up a little which I can do later if I choose. The layers will never be frozen so a thaw is not needed. And the layers are already made so I do not need to create them with the script. I am not reposting the same request. I am adding to a program I have. I want to make a Dialog Definition. Before I was trying to add to Ambom. Not sure what you meant by that. I only posted my code to show how I was getting points. I only want to change it so it functions through a Dialog Definition. Sorry I did not make changes that other members wanted, but I saw no need at this time. No offence was meant. Kenter Quote
Kenter Posted July 26, 2010 Author Posted July 26, 2010 Here's a starthttp://www.afralisp.net/dialog-control-language/tutorials/getting-started-part-1.php Lol, I can't even get the first Dialog Definition to pop up. I made both files, then saved them in a folder on my desktop called DCL. I open autocad and load application of the .lsp file. run the program and I get ;error: quit/ exit abort What did I do wrong? Is it the "Oh, before I forget, please ensure that you save this file, and it's namesake AutoLisp file, into a directory that is within your AutoCAD search path." Where is that refering to. Quote
Tharwat Posted July 26, 2010 Posted July 26, 2010 No, You have to combine the tow Lisp files togather first then you load them through Autocad. I mean the .lsp and .dcl files and .vlx would be created and you will load the .vlx file only. Regards Tharwat Quote
Kenter Posted July 26, 2010 Author Posted July 26, 2010 No, You have to combine the tow Lisp files togather first then you load them through Autocad.I mean the .lsp and .dcl files and .vlx would be created and you will load the .vlx file only. Regards Tharwat This may be a dumb question. But what is the .vlx file? Are you looking at the tutorial or just in general? Quote
Tharwat Posted July 26, 2010 Posted July 26, 2010 This may be a dumb question. But what is the .vlx file? Are you looking at the tutorial or just in general? No. I am using my experience in this field and I am not guessing or imaging ... just listen carefully. First ,you should have a Lisp file with extension .lsp Second, the Dialog file which is with extension .dcl finally you will combine them ..... how? Here is the procedure... Open Visual Lisp editor. Then from menu -> file -> mak application ->New Application Wizard -> then follow the steps to upload your files lisp and dcl ... and after all of this, in the location that you selected your files from you will notice a file with extension .vlx and this is the only one that you will load it in your Autocad file. Hope that clear to you..... Tharwat Quote
lpseifert Posted July 26, 2010 Posted July 26, 2010 No, You have to combine the tow Lisp files togather first then you load them through Autocad.I mean the .lsp and .dcl files and .vlx would be created and you will load the .vlx file only. That's not entirely true. You can have two separate files- .lsp and .dcl. The .dcl file needs to be in Acad's support path (unless the dcl file's path is hard coded in the .lsp file). Quote
Tharwat Posted July 26, 2010 Posted July 26, 2010 That's not entirely true. You can have two separate files- .lsp and .dcl. The .dcl file needs to be in Acad's support path (unless the dcl file's path is hard coded in the .lsp file). So do you mean that we can put the DCL file in Acad's support path and load only the Lisp file directly from Autocad ?? And they would be connected spiritually and run normally also ? Quote
Kenter Posted July 26, 2010 Author Posted July 26, 2010 That's not entirely true. You can have two separate files- .lsp and .dcl. The .dcl file needs to be in Acad's support path (unless the dcl file's path is hard coded in the .lsp file). How/where is the support path? Quote
lpseifert Posted July 26, 2010 Posted July 26, 2010 What did I do wrong? Is it the "Oh, before I forget, please ensure that you save this file, and it's namesake AutoLisp file, into a directory that is within your AutoCAD search path." Where is that refering to. Options > Files Quote
lpseifert Posted July 26, 2010 Posted July 26, 2010 So do you mean that we can put the DCL file in Acad's support path and load only the Lisp file directly from Autocad ??And they would be connected spiritually and run normally also ? Did you try before you asked? Spiritually??? really... Quote
Tharwat Posted July 26, 2010 Posted July 26, 2010 That's not entirely true. You can have two separate files- .lsp and .dcl. The .dcl file needs to be in Acad's support path (unless the dcl file's path is hard coded in the .lsp file). Why the dcl files are hardly coded in Lisp file, since they would be as one in the .vlx file ? What do you mean by - hard coded in the .lsp file - ? Thanks Quote
lpseifert Posted July 26, 2010 Posted July 26, 2010 path hard coded (load_dialog "c:\\lisp\\test_dcl2.dcl") as opposed to (load_dialog "test_dcl2.dcl") Quote
Kenter Posted July 26, 2010 Author Posted July 26, 2010 Hey lpseifert, I got it to work. Options > files worked. Thank you so much. Makes it easy when people help. Quote
Tharwat Posted July 26, 2010 Posted July 26, 2010 path hard coded (load_dialog "c:\\lisp\\test_dcl2.dcl") as opposed to (load_dialog "test_dcl2.dcl") I tried your way of loading the Dcl and Lisp files, and it works as well as my method of combining them in .vlx file. And actually I do not use the direct load from the command line as shown in your previous examples. I create the .vlx file and load it separatly from Load Application msg box. And I still wonder why did you consider that not entirely true ??? Thanks Tharwat Quote
lpseifert Posted July 26, 2010 Posted July 26, 2010 No, You have to combine the tow Lisp files togather first then you load them through Autocad.I mean the .lsp and .dcl files and .vlx would be created and you will load the .vlx file only. You said "You have to..." "Have to' is an imperative phrase... I read it that it was necessary to combine the two files to create a .vlx file in order for it to work properly. That is not true; it is not necessary. Quote
Tharwat Posted July 26, 2010 Posted July 26, 2010 You said "You have to...""Have to' is an imperative phrase... I read it that it was necessary to combine the two files to create a .vlx file in order for it to work properly. That is not true; it is not necessary. Right . but that was a direct response to the question that was given by the thread witer. And if you tried my way also you can not say, not entirely true because it is true. And my previous question still pending with no answer. Quote
Kenter Posted July 28, 2010 Author Posted July 28, 2010 Right . but that was a direct response to the question that was given by the thread witer. And if you tried my way also you can not say, not entirely true because it is true. And my previous question still pending with no answer. I still don't know how to make this friggin thing. Don't argue over small things like that. 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.