Hide layer by clicking on object inside xref scene?

We use xref scenes a lot and I'd like a way to simply click on an object in view and hide it's layer. It's not as simple as a pickbutton because the objects in an xref scene aren't accessible like regular objects are...

So - I want the script to let me click on an object (that's inside an xref scene), get the layer name that object is on and turn off that layer. Any ideas how I'd do it?

Thanks,

Comments

Comment viewing options

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

Now that I think about it I'm

Now that I think about it I'm thinking this should be an exercise using intersectray... Definitely open to suggestions on how to implement it though.

Comment viewing options

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