AcMapTopology::MergePolygons Method

Land Desktop Development ARX CPP SDK

AcMapTopology:: MergePolygons Method
 

Merges neighboring polygons, dissolving the boundaries between them.

AcMap::EErrCode MergePolygons(
    AcArray<long>& aPolygonIds
);
Parameters 
Description 
aPolygonIds 
Input array of IDs of the polygons to merge.  
Returns

Returns AcMap::EErrCode kOk if successful; otherwise, returns a different error code.

Remarks

If one of the specified polygons shares no boundary with the others, this function fails. After a merge succeeds, the original polygon reference apPolygons[0] becomes invalid; the caller is responsible for retrieving the new polygon reference with ID apPolygons[0]. The other (now merged) polygons also become invalid and the caller is responsible for freeing them.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].