map_topostat

AutoCAD Map 3D AutoLISP

Up a level
map_topostat
 
 

Gets statistics for a topology.

(map_topostat tpm_id)

Returns a list containing the statistics for the specified topology, or nil.

tpm_id Unique ID for a topology (real). Topology must be open for read

This function returns a list a list of dotted pairs or nil.

The following dotted pairs apply to all topology types:

(node_count . #nodes)
(link_count . #links)
(polygon_count . #polygons)
((min_x . #n) (min_y . #n))
((max_x . #n) (max_y . #n))

Note  This function is not designed to count polygons in a partial topology. If the topology in question is partial, the polygon_count statistic may be overstated. This is because map_topostat counts not only the polygons in the partial topology, but also any polygons that share common edges with them in the complete topology, even if the adjacent polygons are not actually present in the current drawing.

The following dotted pairs apply to network topologies:

(length_total . #n)
(length_average . #n)
(length_min . #n)
(length_max . #n)
(length_variance . #n)
(length_deviation . #n)

The following dotted pairs apply to polygon topologies:

(area_total . #n)
(area_average . #n)
(area_min . #n)
(area_max . #n)
(area_variance . #n)
(area_deviation . #n)
(perimeter_total . #n)
(perimeter_average . #n)
(perimeter_min . #n)
(perimeter_max . #n)
(perimeter_variance . #n)
(perimeter_deviation . #n)