|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Moderator
Join Date: 2002-12
Location: Denver, CO USA
Posts: 150
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
|
|
|
|
|
#2 |
|
Vice President / Director
Join Date: 2000-09
Location: Kenosha Wisconsin
Posts: 375
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
|
|
|
|
|
#3 |
|
Moderator
Join Date: 2002-12
Location: Denver, CO USA
Posts: 150
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thank you Peter,
This has been bothering me for quite a while now. Matt |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| View Titles and Rotated Viewports | Cathy Hadley | Revit Architecture - General | 12 | 2007-10-06 11:57 PM |
| Different scales for lines in different viewports | slaidlaw | AutoCAD General | 17 | 2005-04-28 07:05 PM |
| Locking Viewports | Cad4men | AutoLISP | 3 | 2004-07-28 02:30 PM |
| overlapping viewports for presentation | Steve Jager | Revit Architecture - General | 1 | 2004-04-01 04:47 PM |
| Resizing Viewports | eter | Revit Architecture - General | 5 | 2003-09-01 07:40 PM |