PDA

View Full Version : Polygon Viewports


ronsarlo
2009-07-13, 08:02 PM
I am trying to figure out the dxf codes so I can select and control polygonal viewports.

Problem is that I am not too sure how they are different. I haven't really figured out too much, just that the polygonal viewport does not have a dxf group type as "viewport".
It also seems to be recognized as 2 objects in the properties palette when I select it with a left-click. From my experience, this is the only entity in AutoCAD that behaves with a 1-click-select-2 function.


Doing an entget on a regular viewport, this is the return..
((-1 . <Entity name: -4014fc50>) (0 . "VIEWPORT") (5 . "1B6") (102 . "{ACAD_XDICTIONARY") (360 . <Entity name: -4014fc48>) (102 . "}") (330 . <Entity name: -40151130>) (100 . "AcDbEntity") (67 . 1) (410 . "Layout1") (8 . "_ANNO_NPLT") (100 . "AcDbViewport") (10 500.0 250.0 0.0) (40 . 1000.0) (41 . 500.0) (68 . 3) (69 . 2) (12 973.861 462.063 0.0) (13 0.0 0.0 0.0) (14 10.0 10.0 0.0) (15 10.0 10.0 0.0) (16 0.0 0.0 1.0) (17 0.0 0.0 0.0) (42 . 50.0) (43 . 0.0) (44 . 0.0) (45 . 1028.08) (50 . 0.0) (51 . 0.0) (72 . 1000) (90 . 573536) (281 . 0) (71 . 1) (74 . 0) (110 0.0 0.0 0.0) (111 1.0 0.0 0.0) (112 0.0 1.0 0.0) (79 . 0) (146 . 0.0) (170 . 0) (61 . 5) (348 . <Entity name: -40151058>) (292 . 1) (282 . 1) (141 . 0.0) (142 . 0.0) (63 . 250) (421 . 3355443))

Doing an entget on a polygonal viewport, this is the return..
((-1 . <Entity name: -4014fa70>) (0 . "LWPOLYLINE") (5 . "1EA") (102 . "{ACAD_REACTORS") (330 . <Entity name: -4014fa60>) (102 . "}") (330 . <Entity name: -40151130>) (100 . "AcDbEntity") (67 . 1) (410 . "Layout1") (8 . "_ANNO_NPLT") (100 . "AcDbPolyline") (90 . 4) (70 . 1) (43 . 0.0) (38 . 0.0) (39 . 0.0) (10 2.27374e-013 500.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 1000.0 500.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 1000.0 0.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 0.0 0.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (210 0.0 0.0 1.0))

Both viewports are from coordinates (0,0) to (1000,500).

I kinda hate asking these questions, but it seems the Developer Documentation in help only tells me so much... :?
I have been using this list (http://www.jefferypsanders.com/autolispintr_dxftbl.html).
Is there a more extensive list so hopefully I can ask dumb questions less?

thank you so much....

rkmcswain
2009-07-13, 11:27 PM
The 340 group of a viewport contains the entity name of the polyline that serves as the clipping boundary. This is found in the DXF reference.