Broken LISP in v18.1
We have a LISP routine we have been using to rename multiple instances of shared parts (based on one shared here: http://www.cocreateusers.org/forum/showthread.php?t=6425). It worked well in version 17, but doesn't seem to work in version 18.1. No dialog shows up in the toolbox in 18.1.
Code:
(in-package :custom) Thanks! |
Re: Broken LISP in v18.1
Hi Dan,
you have only to ad the line ":toolbox-button t" in your Lisp :dialog-title "Change names of Parts/Assemblies" :toolbox-button t ;;:dialog-control :sequential |
Re: Broken LISP in v18.1
Quote:
|
Re: Broken LISP in v18.1
Yeah, that was a change that broke a LOT of code -- I know many people (including me!) who were really confused when they made that change!
Glad it was a simple fix! |
Re: Broken LISP in v18.1
Hello there,
have a question / request to the Lisp specialists. When using this Lisps It is necessary to select all the required shared parts individually. If the parts are Spread over various assemblies and far from each other this is laborious work. Is it possible to choose only one of the shared parts and the lisp finds all other automatically? |
Re: Broken LISP in v18.1
Yes this can be done, but it takes some work. One possible solution is to put the Sys ID's of the selected parts in a hash table, and when you push the ok-button, the lisp routine should walk along your complete assy, and gather all parts with the chosen Sys ID's. Using a hash table with the Sys Id's as key values speeds up things nicely :-)
Regards, Jaap |
Re: Broken LISP in v18.1
1 Attachment(s)
Hello Jaap,
thanks for your answer, unfortunately it does not help me much further because I only can look at Lisp but can not write :rolleyes:. I am in need of help. On the site where the renaming Lisp is coming from, there is another Lisp which exchanges shared parts. This has the possibility to update all copies without individual selection. If you want to check it out: http://osd.cad.de/lisp_3d_40.htm Look for "replace_parts.lsp" You have a choice of only one, all or selection. http://ww3.cad.de/foren/ubb/uploads/friedhelm+at+work/Teile-Bgrtauschen.jpg Bedankt voorbaat Jaap :) |
Re: Broken LISP in v18.1
Hi,
I made a "Rename All Shares" years ago, is this what you are looking for?? The field "Assembly" is the main assy in which you want to do your rename acgtion, "Part/Assy" is the part or assy that you want to rename. "Basename" is the new name for this Part/Assy. All shares of the Part/Assy will also be renamed. Code:
(in-package :JAAPS_TOOLS) Jaap |
Re: Broken LISP in v18.1
Hello Jaap,
Thanks, that works excellent. Why write something new when the program is already in place. Groot BEDANKT :) uit Belgie Friedhelm |
Re: Broken LISP in v18.1
Is it the same for this lisp?
Code:
;;--------------------------------------------------------------------------* |
Re: Broken LISP in v18.1
Yes, you will need to add ":toolbox-button t" (without the quotation marks) to the top of your dialog if you want the button to appear in the toolbox.
So the top of your dialog definition could look like: Code:
(sd-defdialog 'iwg-teil-mehrfach-eigenstaendig-dialog |
Re: Broken LISP in v18.1
Quote:
|
All times are GMT -8. The time now is 01:38 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.