Clipping Xref's Using Dynamo

I am working on a graph to clip the xref’s in model space based on a viewport boundary. Currently, I am able to extract the viewport boundary from paperspace (I can get it as points, a polyline, or a polygon in model space)

The part of this graph that I am not finding any nodes to help with is performing the xclip. Is this something that could be set up pretty easily in python to perform an xclip on multiple xref’s?

Another option I was looking at was to use @mzjensen Document.Send node to perform the xclip command. The image below shows where I got with that, but I would need to do some tinkering because that node appears to only take a string, and the xclip command needs an xref(s) and a polyline boundary to complete.

1 Like