Toggle xRef Scenes / xRef Objects

Hello all,

So of course i'm aware that you can just get to the xRef Scenes / xRef Objects by going through File -> Reference.

But i like to toggle the xRef Scenese / xRef Objects by using a script. I have my own "summary script" in which i like to include them.

So i'm looking for the function to toggle these two, unfortunately i couldn't find these online. Hopefully you can help me :)

Thank you.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

For xRef scene:

(
	xRefScn = xrefs.getXRefFile 1	
	--	"disable"
	xRefScn.disabled = true
	--	"enable"
-- 	xRefScn.disabled = false
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.