I was trying to detach a bunch of xrefs with similar names. here's my try
(defun c:xrdetach ()
(setq sset
(ssget
"x"
'((2 . "*SiteandStream*"))
)
)
(if sset
(repeat (sslength sset)
(command "_.xref" "detach" sset)
)
)
)
I was hoping that the asteric would dork similar with xrefs as it does with layers.
Here is a few examples of xrefs I'm trying to detach
IMP-DrawingSheet-AS-108-PARKINGPLANS-IMPSiteandStream.rvt-1.dwg
IMP-DrawingSheet-AS-104-OVERALLLEVEL2FLOOR-GRIDPLAN-IMPSiteandStream.rvt-1.dwg
IMP-DrawingSheet-AH-104-BUILDINGHLEVEL1REFLCEILINGPLAN-IMPSiteandStream.rvt-1.dwg
You can see that they all have different names, but are similar by having "SiteandStream"