AIberto Posted May 4, 2015 Share Posted May 4, 2015 (edited) Hi Dear lisp guru. I want replace two dialog. like this: http://www.cadtutor.net/forum/attachment.php?attachmentid=54082&d=1430736314 I want change "button Dialogbox" to "image_button Dialogbox" , mean: Merge this two lisp (Tolerance band [Hole].lisp and Tolerance band [shaft].LSP ) to "gccx.lsp" , and remove "selectk:dialog" & "selectz:dialog" from gongcha.dcl . I'm in trouble. Details please see "PS.pdf" and "Replace Like This.pdf" in attachments. about attachments: gccx.lsp , gongcha.dcl and GB1800.DAT is a complete routine. tt.gif is demo gif . Tolerance band [Hole].lisp and Tolerance band [shaft].LSP is two image_button Dialogbox. Additional : Currently, my 'gccx.lsp' calls the 'gongcha.dcl' where are defined three dialogs, the 'gongcha' the 'selectk', were I get the 'Tolerance band [Hole]', and the 'selectz' dialog, were I get the "Tolerance band [shaft]' value. Everything works properly. My problem start when I try to replace the 'selectk' and 'selectz' dialogs, for the new ones defined in 'Tolerance band [Hole].LSP' and 'Tolerance band [shaft].LSP' respectively. I can't put the 'gccx.lsp' working with the new dialogs... Can somebody points me the right way please... Thanks to all future responses. PS.pdf Edited August 7, 2015 by AIberto Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 4, 2015 Share Posted May 4, 2015 Hi Alberto . Which button you want to replace with image_button ? is the Allowed band ? And may I know what is the wisdom behind that ? Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 4, 2015 Author Share Posted May 4, 2015 Hi Alberto . Which button you want to replace with image_button ? is the Allowed band ? And may I know what is the wisdom behind that ? Dear Tharwat . Nice to see you. What is " wisdom behind " mean ? Replace Like This.pdf Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 4, 2015 Share Posted May 4, 2015 I mean why you want to change a normal button to image button ? Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 4, 2015 Author Share Posted May 4, 2015 I mean why you want to change a normal button to image button ? Dear Tharwat. Because the normal button can't change colour. BTW. The instructions are in the PS.pdf file Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 4, 2015 Share Posted May 4, 2015 Which button that you want to replace ? Allowed band ? Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 4, 2015 Author Share Posted May 4, 2015 Which button that you want to replace ? Allowed band ? Dear Tharwat. Not replace "Allowed band" , can you see " Replace Like This.pdf " at #3 ? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 4, 2015 Share Posted May 4, 2015 Alberto , I don't want to let this thread to go with many pages , so just be straight to the point and explain what you are after in details otherwise I can't keep on guessing what you have in mind . Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 4, 2015 Author Share Posted May 4, 2015 Alberto , I don't want to let this thread to go with many pages , so just be straight to the point and explain what you are after in details otherwise I can't keep on guessing what you have in mind . Sorry , my mean is Replace 2 dialog , details explain in PS.pdf & Replace Like This.pdf , How can I explain? You ask, I answer , OK ? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 4, 2015 Share Posted May 4, 2015 You ask, I answer , OK ? Okay The two dialogues are in image buttons Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 4, 2015 Author Share Posted May 4, 2015 Okay The two dialogues are in image buttons The two dialogues (image buttons) in two different lisp (Tolerance band [Hole].LSP & Tolerance band [shaft].LSP) I want merge this two lisp to "gccx.lsp" , and remove "selectk:dialog" & "selectz:dialog" from gongcha.dcl . Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 4, 2015 Share Posted May 4, 2015 The gccx.lsp did not work for me and it gives me an error message of the string ; error: bad argument type: stringp nil Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 4, 2015 Author Share Posted May 4, 2015 The gccx.lsp did not work for me and it gives me an error message of the string The gccx.lsp , gongcha.dcl and GB1800.dat file must in the same folder . this folder must in "support file search path" . ignore the DAT file??? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 4, 2015 Share Posted May 4, 2015 I know that Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 4, 2015 Author Share Posted May 4, 2015 I know that ignore the DAT file??? Now ? is ok ? Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 5, 2015 Author Share Posted May 5, 2015 Dear Tharwat. I'm sorry. gccx.lsp can run normally? Quote Link to comment Share on other sites More sharing options...
AIberto Posted May 7, 2015 Author Share Posted May 7, 2015 Currently, my 'gccx.lsp' calls the 'gongcha.dcl' where are defined three dialogs, the 'gongcha' the 'selectk', were I get the 'Tolerance band [Hole]', and the 'selectz' dialog, were I get the "Tolerance band [shaft]' value. Everything works properly. My problem start when I try to replace the 'selectk' and 'selectz' dialogs, for the new ones defined in 'Tolerance band [Hole].LSP' and 'Tolerance band [shaft].LSP' respectively. I can't put the 'gccx.lsp' working with the new dialogs... Can somebody points me the right way please... Thanks to all future responses. Quote Link to comment Share on other sites More sharing options...
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.