auto_xyz_CrossSectionXY¶
auto_xyz_CrossSectionXY berechnet einen Kennfeldschnitt entlang einer gegebenen 2D-Kurve.
-
hDataNew = auto_xyz_CrossSectionXY(hData, hData2, nType)
-
hDataNew = auto_xyz_CrossSectionXY(hData_Layer, hData2, nType)
Returnwert
hDataNew ist die Zugriffsnummer des neu erzeugten 3D-Datensatzes.
Parameter
-
hData
hData ist die Zugriffsnummer (Handle) des 3D Datensatzes auf den die Funktion angewendet werden soll. Der erzeugte Datensatz hDataNew wird dem Diagramm zugefügt, in dem sich hData befindet.
-
hData_Layer
hData_Layer ist ein Vektor von Zugriffsnummern. Das erste Element ist die Zugriffsnummer (Handle) des Datensatzes auf den die Funktion angewendet werden soll. Das zweite Element ist die Zugriffsnummer (Handle) des Diagramms, dem der neue Datensatz zugefügt werden soll.
-
hData2
hData2 ist die Zugriffsnummer (Handle) eines 2D-Datensatzes.
-
nType
nType ist einer der folgenden Werte:
Wert Bedeutung 1 x-Koordinaten sind die Projektion auf die x-Achse. 2 x-Koordinaten sind die Projektion auf die y-Achse. 3 x-Koordinaten sind die Kurvenlänge.
Beispiel
Example
The following example will creates a cross section at the specified coordinates:
auto_AddToUI("Examples", "Example 1: Map Cross Section", "RS_Example_CS");
def RS_Example_CS()
{
MessageBox("In the following dialog please select the file map-data.xls");
auto_SetFileNameDialogInit("*.xls", GetRootDirectory() + "samples/");
svFile = auto_GetFileNameDialog(1);
if (svFile[1] == "DLG_CANCEL") {
return;
}
hPage = auto_LoadTemplate(GetRootDirectory() + "samples/automate/Example.ipw");
auto_ImportData(svFile[1]);
hData1 = auto_LoadDataset("Diagramm 1", "N", "EWGMOM", "BEEWG");
hLayer1 = PageGetLayerHandle(hPage, "Diagramm 1");
rmXY = [1200, 20; 1600, 50; 2200, 30; 2600, 80];
hDataXY = auto_xy_CreateDataset(hLayer1, "Curve", rmXY[;1],rmXY[;2]);
hLayer1 = PageGetLayerHandle(hPage, "Diagramm 2");
hDataNew = auto_xyz_CrossSectionXY([hData1, hLayer1], hDataXY, 1)
auto_ScaleAxes();
auto_UpdatePage(TRUE);
}
History
Version | Beschreibung |
---|---|
5.70.6 | Dokumentation zugefügt. |
id-122829