Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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?

Posted

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.

Posted

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.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...