Generate a table of 2d lines of the combined contour of a set of geometric elements such as 3d mesh, slab, hatching, roof, zone, polyline (that is, the contours of which ARCHICAD stores as a polyline).
Call:

int ires = ac_request("get_lands_combined_contour_coords", int iElementsList, int iTablePointsXY_S);


Here:

iElementsList - number of the list of elements for which you want to create a contour;

iTablePointsXY_S - table descriptor where the list of contour points will be written.

The table structure will be generated automatically.

Columns: "x","y" - numeric 2d coordinates of the points of the combined contour;

"s" - numeric flag for tracking nested cutout contours (reserved).

If no errors, function returns 0.


Example.

Get the general contour from the selected elements of the 3d mesh type and show the points as a table in the message box.


int iTable_Coords2DTableContour;

object("create", "ts_table", iTable_Coords2DTableContour);


ac_request_special("load_elements_list_from_selection", 1, "MeshType", 2);


ac_request("get_loaded_elements_list_count", 1);

int icount = ac_getnumvalue();

cout << "Items selected for analysis = " << icount << "\n";


ac_request("get_lands_combined_contour_coords", 1, iTable_Coords2DTableContour);

string str;

ts_table(iTable_Coords2DTableContour, "print_to_str", str);

cout << "Contour\n";

coutvar << str;