Also, can I select and change all the layers in multiple blocks without Editing the Blocks individually?
Registered forum members do not see this ad.
I want to be able to select all my viewports in all my layouts at the same time. Is this possible?
Qselect only catches objects in the current tab.
I don't have a catchy signature
Also, can I select and change all the layers in multiple blocks without Editing the Blocks individually?
I don't have a catchy signature
As far as I know, you can achieve that only programmatically:
But any further operation on that selection set will filter out the entities that doesn't belong to active space.Code:(ssget "_X")
Regards,
Mircea
Building on Msasu's post:
Code:(sssetfirst nil (ssget "_x" '((0 . "VIEWPORT") (8 . "<LayerName>"))))
"Potential has a shelf life." - Margaret Atwood
I think it selected them, then filtered out all the objects that weren't in the current space as Msasu said.
I don't have a catchy signature
I think you're mistaken....
It does select all of them, exactly as requested.
Additionally, once the viewports are selected, you can change color, layer, etc. just like any other selected objects... and no, viewports on the other layout(s) are NOT filtered out (I've tested it).
"Potential has a shelf life." - Margaret Atwood
This is what my command line said.
Code:Command: (sssetfirst nil (ssget "_x" '((0 . "VIEWPORT") (8 . "defpoints")))) (nil <Selection set: 4f37>) Command: ch CHANGE 46 found 45 were not in current space. Specify change point or [Properties]: p Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/TRansparency/Material/Annotati ve]: la Enter new layer name <Defpoints>: s-non-plot Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/TRansparency/Material/Annotati ve]:
I don't have a catchy signature
Qball,
If the suggestion(s) offered are ineffective when adding steps not listed in the OP, then we didn't have enough information to begin with.
Separately, use the code I posted again, and instead of issuing the CHANGE command, use the Properties Palette (Ctrl+1 if not already open), and with all 46 Viewports selected, change the layer from the Properties Palette... as this example shows:
Before:
CT_viewport.before.png
After:
CT_viewport.after.png
... All 46 Viewports WILL change layers as your command line output attempted to do.
*IF* your goal is to programmatically change the layer for each Viewport Entity throughout all tabs of a given Drawing, then you need to specify that, in addition to any other steps you want accomplished. I'd be happy to help, but I need complete information.
Hope this helps!
"Potential has a shelf life." - Margaret Atwood
Yes, the properties palette worked. My apologies for not providing enough info.
Thanks!
I don't have a catchy signature
Bookmarks