PDA

View Full Version : Polygonal Viewports



matt.worland
2004-07-30, 01:27 PM
Hello Everyone,

I am trying to change the layer of the viewport, which I have done, but I am stuck on polygonal viewports. Is there an easy way to select both the viewport and polyline that is associated with it? I have looked through the properties of both and nothing has jumped out at me.

Thanks,
Matt

peter
2004-07-30, 04:11 PM
If you select the viewport and get its entity name entViewPort

(cdr (assoc 340 (reverse (entget entViewport))))

will return the corrusponding polyline that goes with it.

The 330 code in the polyline points back to the viewport

(cdr (assoc 340 (reverse (entget entPolyline))))

Peter Jamtgaard

matt.worland
2004-07-30, 05:12 PM
Thank you Peter,

This has been bothering me for quite a while now.

Matt