map_topoclose

Land Desktop Development ARX CPP SDK

Up a level
map_topoclose
 
 

Converts all polygons in a topology to closed polylines.

int

map_topoclose(

char *topoName,

char *layer,

int group,

int odata,

int aselink,

ads_name ssreturn);

Returns RTNORM or RTERROR.

toponame The name of a topology. The topology must be closed.
layer The name of the layer that will contain the closed polylines. If the layer name is incorrect (for example "@@"), polylines are created on the current layer.
group Group flag for complex polygons: 1 or 0.
1 group complex polygons
0 do not group complex polygons
odata Object data flag that sets whether to copy object data on the polygon centroid to the resulting polyline: 1 or 0.
1 copy object data on the centroid
0 ignore object data on the centroid
aselink ASE link flag that sets whether to copy ASE link data on the centroid to the resulting polyline: 1 or 0.
1 copy ASE link data on the centroid
0 ignore ASE link data on the centroid
ssreturn The returned selection set containing the closed polylines.

This function passes the selection set through the ssreturn parameter. If the function returns RTNORM, you must release the returned selection set with the ads_ssfree function.