dbroada Posted June 25, 2009 Share Posted June 25, 2009 but he said he ran it on both machines, one with full AC and one with LT. Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 25, 2009 Share Posted June 25, 2009 If he ran LISP on LT then he went out overnite and bought an extender program. No way he ran LISP in LT and got even partial results. Right? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 25, 2009 Share Posted June 25, 2009 If he ran LISP on LT then he went out overnite and bought an extender program. No way he ran LISP in LT and got even partial results. Right? Not a chance. :wink: Quote Link to comment Share on other sites More sharing options...
dbroada Posted June 25, 2009 Share Posted June 25, 2009 I think Lee is becoming a more powerful programmer than we gave him credit for. He can now write LISPs that run on LT machines!!! Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 25, 2009 Share Posted June 25, 2009 All hail the great and powerful LEE! Expect a call from AutoDesk. I think you have a new career Lee. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 25, 2009 Share Posted June 25, 2009 All hail the great and powerful LEE! Expect a call from AutoDesk. I think you have a new career Lee. Haha, you flatter me too much guys Quote Link to comment Share on other sites More sharing options...
Bennymac777 Posted June 25, 2009 Author Share Posted June 25, 2009 I was not able to run the LISP on the full version because I did not know that command to start it. Now I know the command so I am going to try it. My question that I last stated was about the script. When I ran the script on the full version of AC2006 if found 74 attributes and therefore I was able to run it. But on LT2009 I ran the same exact script and it only found 31 attributes and therefore I was not able to run it. My question is...Is there a system variable that I am missing. -attedit N N * * * (Enter String to edit) (Enter New String) That is the script that I am using Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 25, 2009 Share Posted June 25, 2009 No system variable is referenced in the script. Only the command -attedit is invoked. I cannot explain why in LT the script only found 31 attributes and not the 74 you mention. I was under the impression there was only a single string that had to be found and changed and that there was only one instance of this string per drawing. The script is global so it will report back the total number of attributes found but change only the specific attribute addressed. Example: I could have a block (with attributes) called LocalInstrument. I may have 76 of these blocks inserted in the drawing. But if I say to change the specific string 2LS001 to 4LS999 and there is only one block with that value then 75 blocks do not get changed. Quote Link to comment Share on other sites More sharing options...
Bennymac777 Posted June 25, 2009 Author Share Posted June 25, 2009 Yeah I tried it on my computer with LT and did not have any luck. I tried figuring it out for about a hour. Then I went over to a different computer and it worked the first time in the full version. I was shocked because it was the same exact commands. It boggles my mind. Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 25, 2009 Share Posted June 25, 2009 I tested the script on a computer running full 2009. I don't have immediate access to LT. I'll have to look around. I think one of the engineers has LT 2004. Quote Link to comment Share on other sites More sharing options...
Bennymac777 Posted June 25, 2009 Author Share Posted June 25, 2009 Lee Mac...I would just like to thank you. I don't understand how the hell you wrote that program but thank you it worked!!!!!! Thank you to everyone else too! Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 25, 2009 Share Posted June 25, 2009 We're going to miss Lee when he gets a girlfriend. They'll be no time for CT. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 25, 2009 Share Posted June 25, 2009 Lee Mac...I would just like to thank you. I don't understand how the hell you wrote that program but thank you it worked!!!!!! Thank you to everyone else too! Yayyy! ObjectDBX is a temperamental thing, cause the coding changes from version to version - but I'm really glad it worked We're going to miss Lee when he gets a girlfriend. They'll be no time for CT. Hahahaha Quote Link to comment Share on other sites More sharing options...
TigerByTheTail Posted August 17, 2009 Share Posted August 17, 2009 I've been trying to do some custom tools that work with block attributes. Is your block in the same exact location and scale on every drawing? If it is, you could try doing a window selection to pick the attribute. When asked to select the attribute, use "W" and then 2 pairs of coordinates. This is pretty crude, but it might work. Quote Link to comment Share on other sites More sharing options...
SteveK Posted October 8, 2009 Share Posted October 8, 2009 Sorry to wake up this thread. I was just using the code Lee posted in post #10 (which is awesome by the way) and am wondering if anyone else has had a problem with one thing: When I go into a drawing that has had attributes modified, there are some attributes that have slightly shifted! To top off the strange occurrence, as soon as you edit and ok one of those attributes that have slightly moved the attribute immediately moves back to it's correct position. What could it be??? I'm thinking it's an ObjectDBX thing because there is nothing in Lee's code to make an attribute move. Such a small problem but it's ruining the use of this great program! Quote Link to comment Share on other sites More sharing options...
SteveK Posted October 9, 2009 Share Posted October 9, 2009 No replies... I can say that the bug occurs when the attribute is not aligned left. I've tried resetting and re-specifying the alignment but that doesn't work either. If someone knows of a thread where this has been noted I'd appreciate it. EDIT: Problem discussed here: http://www.theswamp.org/index.php?topic=30594.0 Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 14, 2009 Share Posted October 14, 2009 I am running AutoCAD Electrical 2010, I have not had any issues with this LISP yet. Quote Link to comment Share on other sites More sharing options...
Tommy78 Posted October 23, 2009 Share Posted October 23, 2009 Lee, just wanted to let you know that the script doesn't work on dynamic blocks that are not in their original (reset) state, when you use the dynamic functions of a block it gets an anonymous name assigned to it on top of the original block name and the script doesn't select those blocks. Ps: You don't have to change it, i have no use for the script, just tested it for fun . Quote Link to comment Share on other sites More sharing options...
SteveK Posted October 24, 2009 Share Posted October 24, 2009 (because Lee may not reply) I imagine that is because of the moment you change a dynamic block it changes the block name, which is what this lisp uses to search the drawing. ps. if you feel like testing stuff can you try this out? :wink: It is Lee's lisp but using select instead of typing in block names (cause sometimes I can't remember the block names and attributes) plus with the problem I mentioned in post #35 & 36 half sorted out. GATTE3 - Change Attribute over multiple drawings.lsp Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 24, 2009 Share Posted October 24, 2009 (because Lee may not reply) I imagine that is because of the moment you change a dynamic block it changes the block name, which is what this lisp uses to search the drawing. ps. if you feel like testing stuff can you try this out? :wink: It is Lee's lisp but using select instead of typing in block names (cause sometimes I can't remember the block names and attributes) plus with the problem I mentioned in post #35 & 36 half sorted out. If you look in the Dynamic Block Visibility Change routine I posted, it maps out how to get dynamic blocks before and after they've gone through the name change. 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.