Selecting objects by Page and Layer

Selecting objects by Page and Layer

nicolasR6NGC
Contributor Contributor
1,902 Views
22 Replies
Message 1 of 23

Selecting objects by Page and Layer

nicolasR6NGC
Contributor
Contributor

Hi I'm trying to use ssget to select a polyline that controls a viewport and move it from one page to another. However, no matter what I do my script only selects the first viewport and copies that across all pages instead. Any ideas what is wrong with these lines?

 

 (setq min-point (list -1e9 -1e9 0)) ; Define a very large minimum point
(setq max-point (list 1e9 1e9 0)) ; Define a very large maximum point
(setq viewport-entity (ssget "C" min-point max-point '((0 . "POLYLINE") (8 . "-VPORT")))) 

0 Likes
Accepted solutions (1)
1,903 Views
22 Replies
Replies (22)
Message 21 of 23

paullimapa
Mentor
Mentor

With plines the property palette or especially the List command are great solutions to find the matching names used in lisp. But I would not rely on those for other objects like Attributes, Attribute Definitions, Blocks and etc

Best bet is still using lisp code


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 22 of 23

cadffm
Consultant
Consultant

Yes. 100%

My reply was to this question only.

"Is there a way outside of LISP to display whether something is a polyline or a LWpolyline? "

Sebastian

Message 23 of 23

Sea-Haven
Mentor
Mentor

You can get an objects name I use this (entget (car (entsel "\nPick "))) have a look at the 0 value. For VL property names use Dumpit.lsp.

 

PICK ((-1 . <Entity name: 97c2cc20>) (0 . "LWPOLYLINE")

 

A possible quick fix (0 . "*POLYLINE") will find both types.

0 Likes