------------------------------------------------------------------------------- -- By Yves R. Adam (yves@eqko.nl) -- v 1.00 -- Created On: may 1st 2008 -- Modified On: may 1st 2008 -- many thanks to EverZen from cgtalk for providing the basis of this script ------------------------------------------------------------------------------- macroScript toggle_xref_by_parent category:"eqko tools" toolTip: "Toggle xRef by Parent" ( --Small Script to Flick through XRefs and Find Binding Box local XCount = xrefs.getXRefFileCount() local XBinds = getcurrentselection() local XREFNames = #() for i = 1 to XCount do ( CurrXRef = xrefs.getXRefFile i append XREFNames CurrXRef.filename ) sort XREFNames for i = 1 to XCount do ( CurrXRef = xrefs.getXRefFile i for o in XBinds do ( if o == CurrXRef.parent do ( selectedXRef = CurrXRef.filename CurrXRef.disabled = not CurrXRef.disabled ) ) ) )