Point

  • FPoint(Type, Definition)

Type Options
  • agc.FPointConstruction: Construction Point

Definition Options
  • agc.FPointCoordinateFile: From Coordinate File

Properties
  • Name: Allows the feature to be named; for example, "BoxPoints"

  • CoordinateFile : Allows the Coordinate File to be set; for example, "D:\\Samples\\Box.txt"

  • BasePlane : Allows the base plane to be set when generating from a coordinate file. The XY plane will be used by default; for example, agb.GetZXPlane()

Functions
  • GetPoint(Group, Id): Allows access to a point defined by the Point feature. (See the Line from Points feature for an example of its use)


Note:  Only a single Type and Definition are supported in script. This allows creation of a Point feature from a Coordinate File. The format of the coordinate file is described in the standard documentation for this feature. The required sequence is to define the feature, set its coordinate file, and then do a Regen(). Naming it is optional.


Example
  var PF1 = agb.FPoint(agc.FPointConstruction, agc.FPointCoordinateFile);
	PF1.Name = "BoxPoints";  //This is not required
	PF1.CoordinateFile = "D:\\Samples\\Box.txt";
	PF1.BasePlane = agb.GetZXPlane();
	agb.Regen();
	//Here is how to get the coordinates of one of the points
	var pt1 = GetPoint(1,1);
	var x = agb.GetPointX(pt1);
	var y = agb.GetPointY(pt1);
	var z = agb.GetPointZ(pt1);