PropertyTableEntry.Create
Description:
Creates a new PropertyTableEntry object.
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.
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
)
-
DoubledistanceThe distance(start point to end point) of the PropertyTableEntry.
-
DoublebearingThe angle of the PropertyTableEntry. The value should be in [0-2*PI]
-
curveTypeThe type of curve represented by this entry.
-
DoublearcRadiusIf the curveType is Arc, this input the radius of the arc; It is not used if type is Line.
-
arcDirIf the curveType is Arc, indicate the curve direction, either left or right. It is not used if type is Line.
-
Int32idThe id of the PropertyTableEntry.
-
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.