M

PropertyTableEntry.Create

Description:
Creates a new PropertyTableEntry object.
Remarks:
If the input data is not valid, for example the distance is too short, or the raduis is samller than half distance. an InvalidOperationException will be thrown.
public static PropertyTableEntry Create(
	double distance,
	double bearing,
	PropertyTableEntryCurveType curveType,
	double arcRadius,
	PropertyTableEntryArcDirection arcDir,
	int id
)
  • Double
    distance
    The distance(start point to end point) of the PropertyTableEntry.
  • Double
    bearing
    The angle of the PropertyTableEntry. The value should be in [0-2*PI]
  • curveType
    The type of curve represented by this entry.
  • Double
    arcRadius
    If the curveType is Arc, this input the radius of the arc; It is not used if type is Line.
  • arcDir
    If the curveType is Arc, indicate the curve direction, either left or right. It is not used if type is Line.
  • Int32
    id
    The id of the PropertyTableEntry.
Return Value PropertyTableEntry The new PropertyTableEntry object.
  • A value passed for an enumeration argument is not a member of that enumeration
  • PropertyTableEntry is invalid - it refers to either distance is too short. Or for arc type, if the radius value is smaller than half the distance. It will also be considered as invalid. -or- Failed to create new PropertyTable object.