Jump to content

VPLAYER scope


samifox

Recommended Posts

hi

 

i want to set all Xref VP color to x. i use

 

vplayer color current *

 

and all VP set to x.

 

but i want the scope of the command to be the XREF layers only.

 

is it possible?

 

TX

Link to comment
Share on other sites

use the pipe symbol *|* to select all layers that use that symbol

 

was it made to address this requiement?

Link to comment
Share on other sites

The pipe symbol is used in the name of all xref layers, autocad adds it automatically, so using the wildcard symbol * will select all layers, whereas using *|* will select all the xref layers (unless you happen to use that symbol in your layer names)

Link to comment
Share on other sites

In the Layer Manager, use Wildcard matching in a Property Filter along with the pipe symbol "|" to show only XREFs. Here's the code:

 

~*|*

 

So, going off the Wildcards, the tilde matches anything but the pattern. The asterisks grabs everything with the Pipe Symbol "|" which only XREF layers can have. This will isolate only XREF layers, allowing you to Shift+Select and change layer properties quickly.

 

Wildcard reference:

https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-Core/files/GUID-5818FE81-B822-45AC-BAB0-3517376EA402-htm.html

Link to comment
Share on other sites

The pipe symbol is used in the name of all xref layers, autocad adds it automatically, so using the wildcard symbol * will select all layers, whereas using *|* will select all the xref layers (unless you happen to use that symbol in your layer names)

 

In the Layer Manager, use Wildcard matching in a Property Filter along with the pipe symbol "|" to show only XREFs. Here's the code:

 

~*|*

 

So, going off the Wildcards, the tilde matches anything but the pattern. The asterisks grabs everything with the Pipe Symbol "|" which only XREF layers can have. This will isolate only XREF layers, allowing you to Shift+Select and change layer properties quickly.

 

Wildcard reference:

https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-Core/files/GUID-5818FE81-B822-45AC-BAB0-3517376EA402-htm.html

TX

never notice that. nothing exist without a reason hu?

for all other fellows, macro works greate

 

^C^Cvplayer color 8 *|* Current;;

Link to comment
Share on other sites

TX

never notice that. nothing exist without a reason hu?

for all other fellows, macro works greate

 

^C^Cvplayer color 8 *|* Current;;

I actually gave you the wrong info... that was my code to NOT show Xrefs in my Layer Manager. Which, AutoCAD now does automatically. This was implemented in my template well before this was a standard function. Either way, seems like you got it figured out.
Link to comment
Share on other sites

TX

never notice that. nothing exist without a reason hu?

for all other fellows, macro works greate

 

^C^Cvplayer color 8 *|* Current;;

 

Nice to see you got it working

Link to comment
Share on other sites

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...