VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Selection set of Xrefs in the current DWG to screen layer.....

1 REPLY 1
Reply
Message 1 of 2
dug262sn
182 Views, 1 Reply

Selection set of Xrefs in the current DWG to screen layer.....

Does anyone have a suggestion/code for listing all the x-refs in the current drawing and allowing you to individually or mass selecting the desired x-ref's and send them to a screened layer to simulate a consultants "base plan". (possibly with xdata) This is a major request that I am getting from our in-house landscape and structural departments that want to have the architect's x-refs screened for output so that thier information "POP'S" out when they plot thier output sheets.

D.Williams
dwilliams@theprestonpartnership.com
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: dug262sn

Here's the process we used to do a similar thing:

Display a dialog asking the user to select the xrefs that he wants to
screen. You can find the xrefs attached by looping through the
modelspace collection and searching for xrefs.

For each layer in the layers collection that begins with the xref name
and "|", grab the original color and attach it to the layer with xdata.
Then, change it's color to 252. You could also change the plotstyle here.

To unscreen it, just read the xdata on each layer, and set the color
back to it's original.

There are several error checks you'll also need to do, but that should
get you going.

HTH,
-Danny Polkinhorn
Perkins & Will
Atlanta


dug262sn wrote:
> Does anyone have a suggestion/code for listing all the x-refs in the
> current drawing and allowing you to individually or mass selecting the
> desired x-ref's and send them to a screened layer to simulate a
> consultants "base plan". (possibly with xdata) This is a major request
> that I am getting from our in-house landscape and structural departments
> that want to have the architect's x-refs screened for output so that
> thier information "POP'S" out when they plot thier output sheets.
>
> D.Williams
> dwilliams@theprestonpartnership.com
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost