zzehr Posted July 27, 2009 Posted July 27, 2009 Hi I need to create a script that opens REFEDIT and selects the drawing. The problem is that when I run REFEDIT I cant find any wat to seletect the drawing other than clicking on it with my mouse. Is there any way that I can get the scipt to select the drawing for me? Im using Autocad 2008. Thanks Zac Quote
ReMark Posted July 27, 2009 Posted July 27, 2009 That's a stumper. Haven't come across a way to do it so far. One would think identifying the external reference by name would be an option. Quote
zzehr Posted July 27, 2009 Author Posted July 27, 2009 Is there a script that i can write, which will turn off all layers, or all layers except one? i need to change a certain layer on a lot of drawings. The faster i can do this the better. Quote
ReMark Posted July 27, 2009 Posted July 27, 2009 The script would have to open the drawing, make the layer you want to work with "current" then shut off all the other layers. You could open the drawing yourself and use the Layer Isolate command (LAYISO) found in Express Tools. How many drawings do you have to change? Are the same changes being made to each and every drawing? Quote
zzehr Posted July 27, 2009 Author Posted July 27, 2009 There are roughly 300 drawings. The same change needs to be made to each drawing. We want the script to make our door layer current and then turn off all other layers except for that door layer. Making the door layer current with the script was the easy part. Turning off all the other layers while keep the door layer on that seems to be the hard part. Quote
zzehr Posted July 27, 2009 Author Posted July 27, 2009 I created a pretty simple script to make the door layer current and isolate all layers except for the layer door. -layer M Door; -layer _off * _N; If anyone has any ideas on guess on how to solve the REFEDIT problem i would appreciate it. Quote
ReMark Posted July 27, 2009 Posted July 27, 2009 To make the Door layer current in a drawing that already contains the layer one must SET it. Change the M above for a S. 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.