2016-07-25 12:05 PM
2016-08-05 09:29 AM
2016-08-14 08:43 AM
2016-08-17 10:46 PM
2016-08-18 11:33 PM
2016-08-19 07:55 AM
SumA1 = 0 !! initialize. FOR i=1 to points if i < points then A1 = x*y[i+1] if i = points then A1 = x*y[1] SumA1 = SumA1 + A1 NEXT i SumA2 = 0 FOR i=1 to points if i = 1 then A2 = x*y[points] if i > 1 and i < points then A2 = x*y[i-1] SumA2 = SumA2 + A2 NEXT i !Text2 1.2, 1.2, "A1: " + str(SumA1, 4,2) + "m2" !Text2 1.2, 1.1, "A2: " + str(SumA2, 4,2) + "m2" Summe = (SumA1 - SumA2)/2 !!! Calculate Text2 0, 0, "Area: " + str(Summe, 4,2) + "m2"
2016-08-19 01:24 PM
!!This is at the end of the code after the polygone code for i = 1 to points-1 !! give the points from the Code from Esteban Ramos to the stack put x, y next i call "PolygonOperations", !! http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/15/Window-Macros/PolygonOperations.html parameters opcode = 2, !! Point inside Polygone srcPolygon1 = 2, !! Input from the GDL stack result = 2, !! 1 = Output to a parameter (returned_parameter) 2 = to stack pntX = Tx, !! Eingabe Koordinaten pntY = Ty !! Eingabe Koordinaten Ret = get(1) if Ret = 1 then circle2 Tx, Ty, 0.3 Text2 Tx, Ty, "inner" endif if ret = 2 then circle2 Tx, Ty, 0.3 Text2 Tx, Ty, "outer" endif
2016-08-19 02:48 PM
!!This is at the end of the code after the polygone code for i = 1 to points-1 !! give the points from the Code from Esteban Ramos to the stack put x, y, put 1 !!!! HERE 3 Values has to be inserted !!!! next i call "PolygonOperations", !! http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/15/Window-Macros/PolygonOperations.html parameters opcode = 2, !! Point inside Polygone srcPolygon1 = 2, !! Input from the GDL stack result = 2, !! 1 = Output to a parameter (returned_parameter) 2 = to stack pntX = Tx, !! Eingabe Koordinaten pntY = Ty !! Eingabe Koordinaten Ret = get(1) if Ret = 1 then circle2 Tx, Ty, 0.3 Text2 Tx, Ty, "inner" endif if ret = 2 then circle2 Tx, Ty, 0.3 Text2 Tx, Ty, "outer" endif
2016-08-19 07:09 PM