ssnamex


(ssnamex selectionSet [ index ] )

This function returns the entity selection data for the entity at the specified index in selectionSet.

Arguments

selectionSet  (pickset [ename])  the selectionset
index  (number, integer or double, >= 0, optional)  the index indicating the entity to be retrieved; index starts with 0;
if omitted, the

Return

list of 1 selection data sub-list for the specified entity (if index is specified),
or
a list of multiple selection data sub-list for the specified entity (if index is not specified);
NIL if index is negative or higher than the number of contained entities

Example

(ssnamex ss 0)

crossing selection :
( (3 <Entity name: 7ff466b05490> 0 -1) (-1 (0 (2100.0 1433.22 0.0))  (0 (2652.19 1433.22 0.0))  (0 (2652.19 521.182 0.0))  (0 (2100.0 521.182 0.0)) ) )

pick selection :
( (1 <Entity name: 7ff466b05490> 0  (0 (2293.11 991.553 0.0)) ) )

fence selection :
( (4 <Entity name: 7ff466b05490> 0  (0 (2153.22 893.022 0.0))  (0 (1872.58 683.984 0.0)) ) )

Remarks

structure of "selection data" :
(list (method ename data) (method ename data) ...)

method : 0 = non-graphical selection; 1 = Point Pick, 2 = Window/WPolygon, 3 = Crossing/CPolygon, 4 = Fence
if method contains a 4th entry, then this is a "Polygon Index); data will contain 1 or more list(s) of polygon definitions, all "Polygon Index" values are negative integers

data : specific sub-list depending on the selection method
first entry : point description : 0 = infinite line intersection, 1 = ray intersection, 2 = line segment




©  Bricsys NV. All rights reserved.