diff --git a/locales/ar-SA/opencadstudio.ftl b/locales/ar-SA/opencadstudio.ftl index ae55940b4b..45ae533204 100644 --- a/locales/ar-SA/opencadstudio.ftl +++ b/locales/ar-SA/opencadstudio.ftl @@ -10790,17 +10790,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/bg-BG/opencadstudio.ftl b/locales/bg-BG/opencadstudio.ftl index 63c6fcb367..dca042b70b 100644 --- a/locales/bg-BG/opencadstudio.ftl +++ b/locales/bg-BG/opencadstudio.ftl @@ -10787,17 +10787,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/cs-CZ/opencadstudio.ftl b/locales/cs-CZ/opencadstudio.ftl index 7d02523a54..1ce5d91cef 100644 --- a/locales/cs-CZ/opencadstudio.ftl +++ b/locales/cs-CZ/opencadstudio.ftl @@ -10793,17 +10793,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/de-DE/opencadstudio.ftl b/locales/de-DE/opencadstudio.ftl index fe8946bcc1..84d04050aa 100644 --- a/locales/de-DE/opencadstudio.ftl +++ b/locales/de-DE/opencadstudio.ftl @@ -10785,17 +10785,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/el-GR/opencadstudio.ftl b/locales/el-GR/opencadstudio.ftl index f034a2e1f3..e0906abf94 100644 --- a/locales/el-GR/opencadstudio.ftl +++ b/locales/el-GR/opencadstudio.ftl @@ -10787,17 +10787,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/en-US/opencadstudio.ftl b/locales/en-US/opencadstudio.ftl index 578956fb61..71c26b340c 100644 --- a/locales/en-US/opencadstudio.ftl +++ b/locales/en-US/opencadstudio.ftl @@ -10786,17 +10786,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/es-ES/opencadstudio.ftl b/locales/es-ES/opencadstudio.ftl index 8df2ed994f..3d3361d39d 100644 --- a/locales/es-ES/opencadstudio.ftl +++ b/locales/es-ES/opencadstudio.ftl @@ -10787,17 +10787,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/fi-FI/opencadstudio.ftl b/locales/fi-FI/opencadstudio.ftl index 34ce7128e2..7124543b05 100644 --- a/locales/fi-FI/opencadstudio.ftl +++ b/locales/fi-FI/opencadstudio.ftl @@ -10784,17 +10784,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/fr-FR/opencadstudio.ftl b/locales/fr-FR/opencadstudio.ftl index e2c3ad09d0..1cf58012aa 100644 --- a/locales/fr-FR/opencadstudio.ftl +++ b/locales/fr-FR/opencadstudio.ftl @@ -10787,17 +10787,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/hi-IN/opencadstudio.ftl b/locales/hi-IN/opencadstudio.ftl index db0ad7a065..71c600e6ba 100644 --- a/locales/hi-IN/opencadstudio.ftl +++ b/locales/hi-IN/opencadstudio.ftl @@ -10775,17 +10775,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/hu-HU/opencadstudio.ftl b/locales/hu-HU/opencadstudio.ftl index c954142dc5..7fb61e4570 100644 --- a/locales/hu-HU/opencadstudio.ftl +++ b/locales/hu-HU/opencadstudio.ftl @@ -10765,17 +10765,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/it-IT/opencadstudio.ftl b/locales/it-IT/opencadstudio.ftl index ce225c1531..14ea857184 100644 --- a/locales/it-IT/opencadstudio.ftl +++ b/locales/it-IT/opencadstudio.ftl @@ -10786,17 +10786,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/ja-JP/opencadstudio.ftl b/locales/ja-JP/opencadstudio.ftl index 0ea9bfce3d..ec774fc954 100644 --- a/locales/ja-JP/opencadstudio.ftl +++ b/locales/ja-JP/opencadstudio.ftl @@ -10765,17 +10765,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/ko-KR/opencadstudio.ftl b/locales/ko-KR/opencadstudio.ftl index 48e39ef6a4..56d51bb8e4 100644 --- a/locales/ko-KR/opencadstudio.ftl +++ b/locales/ko-KR/opencadstudio.ftl @@ -10776,17 +10776,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/lo-LA/opencadstudio.ftl b/locales/lo-LA/opencadstudio.ftl index 4dd1ed49c3..21ab48ef08 100644 --- a/locales/lo-LA/opencadstudio.ftl +++ b/locales/lo-LA/opencadstudio.ftl @@ -10778,17 +10778,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/nl-NL/opencadstudio.ftl b/locales/nl-NL/opencadstudio.ftl index d5e2d0de50..82124eb0bf 100644 --- a/locales/nl-NL/opencadstudio.ftl +++ b/locales/nl-NL/opencadstudio.ftl @@ -10785,17 +10785,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/pl-PL/opencadstudio.ftl b/locales/pl-PL/opencadstudio.ftl index 57c8ebdb8c..fcbe397c79 100644 --- a/locales/pl-PL/opencadstudio.ftl +++ b/locales/pl-PL/opencadstudio.ftl @@ -10789,17 +10789,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/pt-BR/opencadstudio.ftl b/locales/pt-BR/opencadstudio.ftl index e22a7b471d..5e20a6396e 100644 --- a/locales/pt-BR/opencadstudio.ftl +++ b/locales/pt-BR/opencadstudio.ftl @@ -10787,17 +10787,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/ru-RU/opencadstudio.ftl b/locales/ru-RU/opencadstudio.ftl index 15826bb97b..f32670d1ca 100644 --- a/locales/ru-RU/opencadstudio.ftl +++ b/locales/ru-RU/opencadstudio.ftl @@ -10791,17 +10791,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/tr-TR/opencadstudio.ftl b/locales/tr-TR/opencadstudio.ftl index c641afb589..e6de5b6ca5 100644 --- a/locales/tr-TR/opencadstudio.ftl +++ b/locales/tr-TR/opencadstudio.ftl @@ -10706,17 +10706,56 @@ civil-cmd = .view-frame-after = Sonraki görünüm çerçevesi .points-menu-miscellaneous = Çeşitli .points-menu-northing-easting = Kuzey/Doğu + .points-misc-resuming = CREATEPOINTMANUAL komutuna devam ediliyor. + .points-misc-northing = >>>>Kuzey değerini girin <__ocs_fmt_0__>: + .points-misc-easting = >>>>Doğu değerini girin <__ocs_fmt_0__>: .points-menu-bearing = Kerteriz + .points-misc-select-start = >>Başlangıç noktasını seçin veya [.P/.N/.G]: + .points-misc-quadrant = >>Çeyreği belirtin (1-4): + .points-misc-quadrants = Çeyrekler - KD = 1, GD = 2, GB = 3, KB = 4 + .points-misc-invalid-quadrant = Geçersiz çeyrek. Lütfen yeniden deneyin + .points-misc-bearing = >>Kerterizi belirtin: + .points-misc-distance = >>Mesafeyi belirtin: + .points-misc-direction-unit = Geçerli doğrultu birimi: derece, Giriş: DD° MM' SS.SS" (boşluklu) .points-menu-azimuth = Azimut + .points-misc-azimuth = >>Azimutu belirtin: .points-menu-deflection = Sapma Açısı + .points-misc-specify-start = >>Başlangıç noktasını belirtin veya [.P/.N/.G]: + .points-misc-select-line = >>Çizgi seçin veya [Noktalar]: + .points-misc-specify-end = >>Bitiş noktasını belirtin veya [.P/.N/.G]: + .points-misc-angle-clockwise = >>Açıyı belirtin veya [Saat yönünde]: + .points-misc-angle-counter-clockwise = >>Açıyı belirtin veya [Saat yönünün tersine]: + .points-misc-counter-clockwise = Saat yönünün tersine + .points-misc-angle-unit = Geçerli açı birimi: derece, Giriş: ondalık + .points-misc-nothing-selected = Hiçbir şey seçilmedi. .points-menu-geodetic-direct = Jeodezik Doğrudan + .points-misc-transformations = Bu komut için koordinat dönüşümleri etkinleştirilmelidir. .points-menu-resection = Geriden Kestirme + .points-misc-resection-first = Birinci (geri bakış veya başvuru) noktasını belirtin: + .points-misc-resection-third = Üçüncü noktayı belirtin: + .points-misc-resection-first-angle = Birinci ve ikinci nokta arasındaki açıyı belirtin <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Birinci ve üçüncü nokta arasındaki açıyı belirtin <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Geriden kestirme noktası çözülemiyor + .points-misc-resection-colinear-12 = 1. ve 2. noktalar doğrusal. + .points-misc-resection-colinear-13 = 1. ve 3. noktalar doğrusal. + .points-misc-resection-no-solution = Bir çözüm yok. .points-menu-station-offset-object = Kilometre/Ofset Nesnesi + .points-misc-select-object = Bir yay, çizgi, çoklu çizgi, parsel çizgisi veya öznitelik çizgisi seçin: + .points-misc-select-objects = Yayları, çizgileri, parsel çizgilerini veya öznitelik çizgilerini seçin: + .points-misc-start-station = Başlangıç kilometresi <__ocs_fmt_0__>: + .points-misc-station = İstenen kilometreyi belirtin <__ocs_fmt_0__>: + .points-misc-offset = Bir ofset belirtin <__ocs_fmt_0__>: .points-menu-along-line-curve = Çizgi/Eğri Boyunca + .points-misc-along-distance = Bir mesafe belirtin: .points-menu-on-line-curve = Çizgi/Eğri Üzerinde .points-menu-divide-object = Nesneyi Böl + .points-misc-segments = Parça sayısını girin <__ocs_fmt_0__>: .points-menu-measure-object = Nesneyi Ölç + .points-misc-end-station = Bitiş kilometresi <__ocs_fmt_0__>: + .points-misc-interval = Bir aralık girin <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Çoklu Çizgi Köşeleri - Elle + .points-misc-default-elevation = Varsayılan Kot <.>: + .points-misc-select-polyline = Bir çoklu çizgi nesnesi seçin: .points-menu-polyline-vertices-automatic = Çoklu Çizgi Köşeleri - Otomatik .points-menu-direction-direction = Doğrultu/Doğrultu .points-menu-distance-distance = Mesafe/Mesafe diff --git a/locales/uz-UZ/opencadstudio.ftl b/locales/uz-UZ/opencadstudio.ftl index e28eb33300..ec647b2a07 100644 --- a/locales/uz-UZ/opencadstudio.ftl +++ b/locales/uz-UZ/opencadstudio.ftl @@ -10786,17 +10786,56 @@ civil-cmd = .view-frame-after = Keyingi köriniş ramkasi .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/vi-VN/opencadstudio.ftl b/locales/vi-VN/opencadstudio.ftl index df483ff9af..3f659f30c8 100644 --- a/locales/vi-VN/opencadstudio.ftl +++ b/locales/vi-VN/opencadstudio.ftl @@ -10784,17 +10784,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/zh-CN/opencadstudio.ftl b/locales/zh-CN/opencadstudio.ftl index 153a2d3cf8..e31a335ba1 100644 --- a/locales/zh-CN/opencadstudio.ftl +++ b/locales/zh-CN/opencadstudio.ftl @@ -10760,17 +10760,56 @@ civil-cmd = .view-frame-after = View frame after .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/locales/zh-TW/opencadstudio.ftl b/locales/zh-TW/opencadstudio.ftl index b688b83780..b62a588bad 100644 --- a/locales/zh-TW/opencadstudio.ftl +++ b/locales/zh-TW/opencadstudio.ftl @@ -10772,17 +10772,56 @@ civil-cmd = .view-frame-after = 後方視圖框 .points-menu-miscellaneous = Miscellaneous .points-menu-northing-easting = Northing/Easting + .points-misc-resuming = Resuming CREATEPOINTMANUAL command. + .points-misc-northing = >>>>Enter northing <__ocs_fmt_0__>: + .points-misc-easting = >>>>Enter easting <__ocs_fmt_0__>: .points-menu-bearing = Bearing + .points-misc-select-start = >>Select starting point or [.P/.N/.G]: + .points-misc-quadrant = >>Specify quadrant (1-4): + .points-misc-quadrants = Quadrants - NE = 1, SE = 2, SW = 3, NW = 4 + .points-misc-invalid-quadrant = Invalid quadrant. Please try again + .points-misc-bearing = >>Specify bearing: + .points-misc-distance = >>Specify distance: + .points-misc-direction-unit = Current direction unit: degree, Input: DD° MM' SS.SS" (spaced) .points-menu-azimuth = Azimuth + .points-misc-azimuth = >>Specify azimuth: .points-menu-deflection = Deflection + .points-misc-specify-start = >>Specify starting point or [.P/.N/.G]: + .points-misc-select-line = >>Select line or [Points]: + .points-misc-specify-end = >>Specify ending point or [.P/.N/.G]: + .points-misc-angle-clockwise = >>Specify angle or [Clockwise]: + .points-misc-angle-counter-clockwise = >>Specify angle or [Counter-clockwise]: + .points-misc-counter-clockwise = Counter-clockwise + .points-misc-angle-unit = Current angle unit: degree, Input: decimal + .points-misc-nothing-selected = Nothing selected. .points-menu-geodetic-direct = Geodetic Direct + .points-misc-transformations = Coordinate transformations must be enabled for this command. .points-menu-resection = Resection + .points-misc-resection-first = Specify first (backsight or reference) point: + .points-misc-resection-third = Specify third point: + .points-misc-resection-first-angle = Specify the angle between the first and second point <__ocs_fmt_0__ (d)>: + .points-misc-resection-second-angle = Specify the angle between the first and third point <__ocs_fmt_0__ (d)>: + .points-misc-resection-unsolvable = Resection point is unsolvable + .points-misc-resection-colinear-12 = Points 1 and 2 are colinear. + .points-misc-resection-colinear-13 = Points 1 and 3 are colinear. + .points-misc-resection-no-solution = A solution does not exist. .points-menu-station-offset-object = Station/Offset Object + .points-misc-select-object = Select an arc, line, polyline, lot line, or feature line: + .points-misc-select-objects = Select arcs, lines, lot lines, or feature lines: + .points-misc-start-station = Starting station <__ocs_fmt_0__>: + .points-misc-station = Specify a desired station <__ocs_fmt_0__>: + .points-misc-offset = Specify an offset <__ocs_fmt_0__>: .points-menu-along-line-curve = Along Line/Curve + .points-misc-along-distance = Specify a distance: .points-menu-on-line-curve = On Line/Curve .points-menu-divide-object = Divide Object + .points-misc-segments = Enter the number of segments <__ocs_fmt_0__>: .points-menu-measure-object = Measure Object + .points-misc-end-station = Ending station <__ocs_fmt_0__>: + .points-misc-interval = Enter an interval <__ocs_fmt_0__>: .points-menu-polyline-vertices-manual = Polyline Vertices - Manual + .points-misc-default-elevation = Default Elevation <.>: + .points-misc-select-polyline = Select a polyline object: .points-menu-polyline-vertices-automatic = Polyline Vertices - Automatic .points-menu-direction-direction = Direction/Direction .points-menu-distance-distance = Distance/Distance diff --git a/src/app/civil.rs b/src/app/civil.rs index 46d7840ddc..39e095e80a 100644 --- a/src/app/civil.rs +++ b/src/app/civil.rs @@ -1046,10 +1046,11 @@ impl OpenCADStudio { /// A point of CREATEPOINTMANUAL: written at once on the layer the drawing's /// point creation settings name (else the current layer), then its /// northing and easting echoed. The command's points are one undo step. - pub(super) fn add_created_cogo_point(&mut self, at: glam::DVec3, description: Option, elevation: Option) { + pub(super) fn add_created_cogo_point(&mut self, at: glam::DVec3, description: Option, elevation: Option, echo: bool) { let i = self.active_tab; if self.tabs[i].history.pending.is_none() { - self.push_undo_snapshot(i, "CREATEPOINTMANUAL"); + let label = self.tabs[i].active_cmd.as_ref().map_or("CREATEPOINTMANUAL", |c| c.name()); + self.push_undo_snapshot(i, label); } let current = self.tabs[i].active_layer.clone(); let doc = &mut self.tabs[i].scene.document; @@ -1066,7 +1067,9 @@ impl OpenCADStudio { let (n, e) = (format!("{:.4}{unit}", at.y), format!("{:.4}{unit}", at.x)); self.tabs[i].dirty = true; self.tabs[i].scene.bump_entities(&[(point, ChangeKind::Added)]); - self.command_line.push_output(&crate::tf!("N: {} E: {}", n, e)); + if echo { + self.command_line.push_output(&crate::tf!("N: {} E: {}", n, e)); + } } Err(document::error::DxfError::Parse(message)) => self.command_line.push_error(&message), Err(e) => self.command_line.push_error(&e.to_string()), diff --git a/src/app/command_driver/mod.rs b/src/app/command_driver/mod.rs index b251707ddb..329e0b08e2 100644 --- a/src/app/command_driver/mod.rs +++ b/src/app/command_driver/mod.rs @@ -1271,8 +1271,11 @@ impl OpenCADStudio { CmdResult::Done => { self.handle_done(); } - CmdResult::AddCogoPoint { position, description, elevation } => { - self.add_created_cogo_point(position, description, elevation); + CmdResult::AddCogoPoint { position, description, elevation, echo, then } => { + self.add_created_cogo_point(position, description, elevation, echo); + if let Some(line) = then { + self.command_line.push_output(&line); + } let _ = self.handle_need_point(); } cancel @ (CmdResult::Cancel | CmdResult::CancelForSpaceChange) => { diff --git a/src/app/commands/display.rs b/src/app/commands/display.rs index 471d5b0636..3f63ff1713 100644 --- a/src/app/commands/display.rs +++ b/src/app/commands/display.rs @@ -2669,8 +2669,28 @@ impl OpenCADStudio { "ULAYERS" => self.open_underlay_layers_dialog(i), crate::ui::points_menu::OPEN_COMMAND => self.points_menu.open = !self.points_menu.open, - "CREATEPOINTMANUAL" => { - let c = crate::modules::civil::point_manual::CreatePointManualCommand::new(); + "CREATEPOINTMANUAL" | "CREATEPOINTNORTHINGEASTING" | "CREATEPOINTBEARING" | "CREATEPOINTAZIMUTH" | "CREATEPOINTANGLE" | "CREATEPOINTDEFLECTION" => { + use crate::modules::civil::point_manual::{CreatePointManualCommand, Mode}; + let mode = match cmd { + "CREATEPOINTNORTHINGEASTING" => Mode::NorthingEasting, + "CREATEPOINTBEARING" => Mode::Bearing, + "CREATEPOINTAZIMUTH" => Mode::Azimuth, + "CREATEPOINTANGLE" => Mode::Angle, + "CREATEPOINTDEFLECTION" => Mode::Deflection, + _ => Mode::Manual, + }; + let c = CreatePointManualCommand::with_mode(mode); + self.command_line.push_info(&c.prompt()); + self.tabs[i].active_cmd = Some(Box::new(c)); + } + // The drawing has no coordinate transformation settings, which + // the command needs (the reference refuses the same way). + "CREATEPTGEODETICDIR" => { + self.command_line.push_error(&crate::t!("Coordinate transformations must be enabled for this command.")); + } + cmd if crate::modules::civil::point_object::Kind::of(cmd).is_some() => { + let kind = crate::modules::civil::point_object::Kind::of(cmd).unwrap(); + let c = crate::modules::civil::point_object::ObjectPointCommand::new(kind); self.command_line.push_info(&c.prompt()); self.tabs[i].active_cmd = Some(Box::new(c)); } diff --git a/src/command.rs b/src/command.rs index 8a58670fd7..f0022bb372 100644 --- a/src/command.rs +++ b/src/command.rs @@ -2087,6 +2087,10 @@ pub enum CmdResult { position: DVec3, description: Option, elevation: Option, + /// Echo the point's northing and easting (the manual commands do). + echo: bool, + /// A line shown before the command's next prompt. + then: Option, }, /// Update the committed-segment wire (normal colour) and keep collecting points. InterimWire(WireModel), diff --git a/src/locale_catalog.rs b/src/locale_catalog.rs index 2304c60ade..f834e4db41 100644 --- a/src/locale_catalog.rs +++ b/src/locale_catalog.rs @@ -203,17 +203,56 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static "N: {} E: {}" => Some(("civil-cmd", "points-manual-echo")), "Miscellaneous" => Some(("civil-cmd", "points-menu-miscellaneous")), "Northing/Easting" => Some(("civil-cmd", "points-menu-northing-easting")), + "Resuming CREATEPOINTMANUAL command." => Some(("civil-cmd", "points-misc-resuming")), + ">>>>Enter northing <{:.3}>:" => Some(("civil-cmd", "points-misc-northing")), + ">>>>Enter easting <{:.3}>:" => Some(("civil-cmd", "points-misc-easting")), "Bearing" => Some(("civil-cmd", "points-menu-bearing")), + ">>Select starting point or [.P/.N/.G]:" => Some(("civil-cmd", "points-misc-select-start")), + ">>Specify quadrant (1-4):" => Some(("civil-cmd", "points-misc-quadrant")), + "Quadrants - NE = 1, SE = 2, SW = 3, NW = 4" => Some(("civil-cmd", "points-misc-quadrants")), + "Invalid quadrant. Please try again" => Some(("civil-cmd", "points-misc-invalid-quadrant")), + ">>Specify bearing:" => Some(("civil-cmd", "points-misc-bearing")), + ">>Specify distance:" => Some(("civil-cmd", "points-misc-distance")), + "Current direction unit: degree, Input: DD° MM' SS.SS\" (spaced)" => Some(("civil-cmd", "points-misc-direction-unit")), "Azimuth" => Some(("civil-cmd", "points-menu-azimuth")), + ">>Specify azimuth:" => Some(("civil-cmd", "points-misc-azimuth")), "Deflection" => Some(("civil-cmd", "points-menu-deflection")), + ">>Specify starting point or [.P/.N/.G]:" => Some(("civil-cmd", "points-misc-specify-start")), + ">>Select line or [Points]:" => Some(("civil-cmd", "points-misc-select-line")), + ">>Specify ending point or [.P/.N/.G]:" => Some(("civil-cmd", "points-misc-specify-end")), + ">>Specify angle or [Clockwise]:" => Some(("civil-cmd", "points-misc-angle-clockwise")), + ">>Specify angle or [Counter-clockwise]:" => Some(("civil-cmd", "points-misc-angle-counter-clockwise")), + "Counter-clockwise" => Some(("civil-cmd", "points-misc-counter-clockwise")), + "Current angle unit: degree, Input: decimal" => Some(("civil-cmd", "points-misc-angle-unit")), + "Nothing selected." => Some(("civil-cmd", "points-misc-nothing-selected")), "Geodetic Direct" => Some(("civil-cmd", "points-menu-geodetic-direct")), + "Coordinate transformations must be enabled for this command." => Some(("civil-cmd", "points-misc-transformations")), "Resection" => Some(("civil-cmd", "points-menu-resection")), + "Specify first (backsight or reference) point:" => Some(("civil-cmd", "points-misc-resection-first")), + "Specify third point:" => Some(("civil-cmd", "points-misc-resection-third")), + "Specify the angle between the first and second point <{:.4} (d)>:" => Some(("civil-cmd", "points-misc-resection-first-angle")), + "Specify the angle between the first and third point <{:.4} (d)>:" => Some(("civil-cmd", "points-misc-resection-second-angle")), + "Resection point is unsolvable" => Some(("civil-cmd", "points-misc-resection-unsolvable")), + "Points 1 and 2 are colinear." => Some(("civil-cmd", "points-misc-resection-colinear-12")), + "Points 1 and 3 are colinear." => Some(("civil-cmd", "points-misc-resection-colinear-13")), + "A solution does not exist." => Some(("civil-cmd", "points-misc-resection-no-solution")), "Station/Offset Object" => Some(("civil-cmd", "points-menu-station-offset-object")), + "Select an arc, line, polyline, lot line, or feature line:" => Some(("civil-cmd", "points-misc-select-object")), + "Select arcs, lines, lot lines, or feature lines:" => Some(("civil-cmd", "points-misc-select-objects")), + "Starting station <{:.3}>:" => Some(("civil-cmd", "points-misc-start-station")), + "Specify a desired station <{:.3}>:" => Some(("civil-cmd", "points-misc-station")), + "Specify an offset <{:.3}>:" => Some(("civil-cmd", "points-misc-offset")), "Along Line/Curve" => Some(("civil-cmd", "points-menu-along-line-curve")), + "Specify a distance:" => Some(("civil-cmd", "points-misc-along-distance")), "On Line/Curve" => Some(("civil-cmd", "points-menu-on-line-curve")), "Divide Object" => Some(("civil-cmd", "points-menu-divide-object")), + "Enter the number of segments <{}>:" => Some(("civil-cmd", "points-misc-segments")), "Measure Object" => Some(("civil-cmd", "points-menu-measure-object")), + "Ending station <{:.3}>:" => Some(("civil-cmd", "points-misc-end-station")), + "Enter an interval <{:.3}>:" => Some(("civil-cmd", "points-misc-interval")), "Polyline Vertices - Manual" => Some(("civil-cmd", "points-menu-polyline-vertices-manual")), + "Default Elevation <.>:" => Some(("civil-cmd", "points-misc-default-elevation")), + "Select a polyline object:" => Some(("civil-cmd", "points-misc-select-polyline")), "Polyline Vertices - Automatic" => Some(("civil-cmd", "points-menu-polyline-vertices-automatic")), "Direction/Direction" => Some(("civil-cmd", "points-menu-direction-direction")), "Distance/Distance" => Some(("civil-cmd", "points-menu-distance-distance")), diff --git a/src/modules/civil/mod.rs b/src/modules/civil/mod.rs index c777e13bb2..355bd45848 100644 --- a/src/modules/civil/mod.rs +++ b/src/modules/civil/mod.rs @@ -6,6 +6,7 @@ use crate::modules::surface::command::{Filter, Opt, OptKind, Step}; use crate::modules::{CadModule, IconKind, ModuleEvent, RibbonGroup, RibbonItem, ToolDef}; pub mod point_manual; +pub mod point_object; pub struct CivilModule; diff --git a/src/modules/civil/point_manual.rs b/src/modules/civil/point_manual.rs index 72aa3a1250..934552525d 100644 --- a/src/modules/civil/point_manual.rs +++ b/src/modules/civil/point_manual.rs @@ -2,26 +2,153 @@ //! location, description and elevation and written as soon as it is //! complete; Enter at the location ends the command, Esc drops only the //! point in progress. The whole run is one undo step. +//! +//! The location can come from a direction mode typed at its prompt (or +//! started by the menu): `'NE` northing and easting, `'PBD` bearing and +//! distance, `'ZD` azimuth and distance, `'AD` angle and distance and `'DD` +//! deflection and distance. A mode stays on for the next points (each from +//! the last one) until Enter at its first prompt ('NE: Esc) hands the +//! location prompt back. -use crate::command::{CadCommand, CmdResult, InputKind}; +use crate::command::{CadCommand, CmdOption, CmdResult, InputKind}; use glam::DVec3; +#[derive(Clone, Copy, PartialEq)] +pub enum Mode { + Manual, + NorthingEasting, + Bearing, + Azimuth, + Angle, + Deflection, +} + +impl Mode { + fn of(word: &str) -> Option { + Some(match word.trim().trim_start_matches('\'').to_ascii_uppercase().as_str() { + "NE" => Mode::NorthingEasting, + "PBD" => Mode::Bearing, + "ZD" => Mode::Azimuth, + "AD" => Mode::Angle, + "DD" => Mode::Deflection, + _ => return None, + }) + } +} + enum Step { Location, + Northing, + Easting(f64), + /// The starting point of a bearing, azimuth, angle or deflection run. + Start, + /// Angle and deflection: a line, or `Points`. + Line, + End, + Quadrant, + Bearing(u8), + Azimuth, + Angle, + /// Distance along the direction (degrees, measured from north for a + /// bearing or azimuth, from east for an angle or deflection). + Distance(f64), Description(DVec3), Elevation(DVec3, Option), } pub struct CreatePointManualCommand { step: Step, + mode: Mode, /// The description the next point offers: the last one given, none /// (".") at first. description: Option, + /// Northing and easting the 'NE prompts offer. + ne: (f64, f64), + /// Where the next direction run starts: the last point written. + from: Option, + /// The other end of the angle or deflection's reference line. + to: Option, + counter_clockwise: bool, + /// A line picked at the line prompt (its two ends). + picked: Option<(DVec3, DVec3)>, +} + +const RESUMING: &str = "Resuming CREATEPOINTMANUAL command."; +const QUADRANTS: &str = "Quadrants - NE = 1, SE = 2, SW = 3, NW = 4"; +const DIRECTION_UNIT: &str = "Current direction unit: degree, Input: DD° MM' SS.SS\" (spaced)"; +const ANGLE_UNIT: &str = "Current angle unit: degree, Input: decimal"; + +fn t(s: &'static str) -> String { + crate::t!(s).into_owned() +} + +/// A direction typed as degrees, minutes and seconds, spaced ("45 30 15.5"). +fn dms(text: &str) -> Option { + let parts: Vec = text.split_whitespace().map(|p| p.parse::().ok().filter(|v| v.is_finite())).collect::>()?; + match parts[..] { + [d] => Some(d), + [d, m] => Some(d + m / 60.0), + [d, m, s] => Some(d + m / 60.0 + s / 3600.0), + _ => None, + } +} + +fn number(text: &str) -> Option { + text.trim().parse::().ok().filter(|v| v.is_finite()) } impl CreatePointManualCommand { pub fn new() -> Self { - Self { step: Step::Location, description: None } + Self::with_mode(Mode::Manual) + } + + /// The command started by a menu entry in a direction mode. + pub fn with_mode(mode: Mode) -> Self { + let mut c = Self { step: Step::Location, mode: Mode::Manual, description: None, ne: (0.0, 0.0), from: None, to: None, counter_clockwise: false, picked: None }; + c.enter_mode(mode); + c + } + + fn enter_mode(&mut self, mode: Mode) { + self.mode = mode; + self.step = match mode { + Mode::Manual => Step::Location, + Mode::NorthingEasting => Step::Northing, + Mode::Bearing | Mode::Azimuth => Step::Start, + Mode::Angle | Mode::Deflection => Step::Line, + }; + } + + /// The first prompt of the mode's next point, chained from the last one. + fn next_location(&mut self) { + self.step = match self.mode { + Mode::Manual => Step::Location, + Mode::NorthingEasting => Step::Northing, + Mode::Bearing if self.from.is_some() => Step::Quadrant, + Mode::Azimuth if self.from.is_some() => Step::Azimuth, + Mode::Angle | Mode::Deflection if self.from.is_some() => Step::End, + _ => { + self.enter_mode(self.mode); + return; + } + }; + } + + /// Leaves the direction mode: the plain location prompt again. + fn resume(&mut self) -> CmdResult { + self.mode = Mode::Manual; + self.step = Step::Location; + CmdResult::ReportMessage(t(RESUMING)) + } + + /// The location found: the point's description is asked next. + fn located(&mut self, at: DVec3) -> CmdResult { + self.step = Step::Description(DVec3::new(at.x, at.y, 0.0)); + if self.mode == Mode::Manual { + CmdResult::NeedPoint + } else { + CmdResult::ReportMessage(t(RESUMING)) + } } fn shown(d: &Option) -> &str { @@ -37,6 +164,71 @@ impl CreatePointManualCommand { t => Some(t.to_string()), } } + + /// The point `distance` along the direction (`degrees`; from north, + /// clockwise, for bearings and azimuths). + fn travel(&self, degrees: f64, distance: f64) -> Option { + let from = self.from?; + let (dx, dy) = match self.mode { + Mode::Bearing | Mode::Azimuth => { + let a = degrees.to_radians(); + (a.sin(), a.cos()) + } + _ => { + // Angle: turned from the start→end direction; deflection: from + // the line's extension back through the start. Clockwise unless + // Counter-clockwise was chosen. + let to = self.to?; + let base = if self.mode == Mode::Deflection { from - to } else { to - from }; + let turn = if self.counter_clockwise { degrees } else { -degrees }; + let a = base.y.atan2(base.x) + turn.to_radians(); + (a.cos(), a.sin()) + } + }; + Some(from + DVec3::new(dx, dy, 0.0) * distance) + } + + fn invalid() -> Option { + Some(CmdResult::ReportError(t("Invalid input"))) + } + + fn numeric() -> Option { + Some(CmdResult::ReportError(t("Requires numeric value."))) + } + + /// A point given at a prompt that takes one. + fn point_at(&mut self, pt: DVec3) -> CmdResult { + let pt = DVec3::new(pt.x, pt.y, 0.0); + match self.step { + Step::Location => self.located(pt), + Step::Start => { + self.from = Some(pt); + self.step = match self.mode { + Mode::Bearing => Step::Quadrant, + Mode::Azimuth => Step::Azimuth, + _ => Step::End, + }; + self.unit_line() + } + Step::End => { + self.to = Some(pt); + self.step = Step::Angle; + CmdResult::ReportMessage(t(ANGLE_UNIT)) + } + Step::Elevation(..) => CmdResult::ReportError(t("Invalid input")), + _ => CmdResult::NeedPoint, + } + } + + /// The unit line shown before a direction prompt. + fn unit_line(&self) -> CmdResult { + match self.step { + Step::Quadrant => CmdResult::ReportMessage(t(QUADRANTS)), + Step::Azimuth => CmdResult::ReportMessage(t(DIRECTION_UNIT)), + Step::Angle => CmdResult::ReportMessage(t(ANGLE_UNIT)), + _ => CmdResult::NeedPoint, + } + } } impl Default for CreatePointManualCommand { @@ -52,18 +244,70 @@ impl CadCommand for CreatePointManualCommand { fn prompt(&self) -> String { match &self.step { - Step::Location => crate::t!("Please specify a location for the new point:").into_owned(), + Step::Location => t("Please specify a location for the new point:"), + Step::Northing => crate::tf!(">>>>Enter northing <{:.3}>:", self.ne.0).into_owned(), + Step::Easting(_) => crate::tf!(">>>>Enter easting <{:.3}>:", self.ne.1).into_owned(), + Step::Start if matches!(self.mode, Mode::Bearing | Mode::Azimuth) => t(">>Select starting point or [.P/.N/.G]:"), + Step::Start => t(">>Specify starting point or [.P/.N/.G]:"), + Step::Line => t(">>Select line or [Points]:"), + Step::End => t(">>Specify ending point or [.P/.N/.G]:"), + Step::Quadrant => t(">>Specify quadrant (1-4):"), + Step::Bearing(_) => t(">>Specify bearing:"), + Step::Azimuth => t(">>Specify azimuth:"), + Step::Angle if self.counter_clockwise => t(">>Specify angle or [Clockwise]:"), + Step::Angle => t(">>Specify angle or [Counter-clockwise]:"), + Step::Distance(_) => t(">>Specify distance:"), Step::Description(_) => crate::tf!("Enter a point description <{}>:", Self::shown(&self.description)).into_owned(), - Step::Elevation(..) => crate::t!("Specify a point elevation <.>:").into_owned(), + Step::Elevation(..) => t("Specify a point elevation <.>:"), + } + } + + fn options(&self) -> Vec { + match self.step { + Step::Line => vec![CmdOption::new("Points", "P")], + Step::Angle if self.counter_clockwise => vec![CmdOption::new("Clockwise", "C")], + Step::Angle => vec![CmdOption::new("Counter-clockwise", "C")], + _ => Vec::new(), } } fn input_kind(&self) -> InputKind { match self.step { - Step::Location => InputKind::Point, - // Raw text: the elevation takes a number only, not an expression - // or a point (measured: both are "Invalid input"). - Step::Description(_) | Step::Elevation(..) => InputKind::FreeText, + Step::Location | Step::Start | Step::End | Step::Line => InputKind::Point, + // Raw text: a number only, not an expression or a point (measured: + // both are refused). + _ => InputKind::FreeText, + } + } + + fn point_step_accepts_keywords(&self) -> bool { + matches!(self.step, Step::Location | Step::Line) + } + + fn needs_entity_pick(&self) -> bool { + matches!(self.step, Step::Line) + } + + fn inject_before_entity_pick(&self) -> bool { + matches!(self.step, Step::Line) + } + + fn inject_picked_entity(&mut self, entity: document::EntityType) { + self.picked = match entity { + document::EntityType::Line(l) => Some((DVec3::new(l.start.x, l.start.y, 0.0), DVec3::new(l.end.x, l.end.y, 0.0))), + _ => None, + }; + } + + fn on_entity_pick(&mut self, _handle: document::Handle, _pt: DVec3) -> CmdResult { + match self.picked.take() { + Some((start, end)) => { + self.from = Some(start); + self.to = Some(end); + self.step = Step::Angle; + CmdResult::ReportMessage(t(ANGLE_UNIT)) + } + None => CmdResult::ReportError(t("Nothing selected.")), } } @@ -72,49 +316,218 @@ impl CadCommand for CreatePointManualCommand { } fn on_point(&mut self, pt: DVec3) -> CmdResult { - match self.step { - // The elevation is asked for: the point's own z is not used. - Step::Location => { - self.step = Step::Description(DVec3::new(pt.x, pt.y, 0.0)); - CmdResult::NeedPoint - } - Step::Elevation(..) => CmdResult::ReportError(crate::t!("Invalid input").into_owned()), - Step::Description(_) => CmdResult::NeedPoint, - } + self.point_at(pt) } fn on_text_input(&mut self, text: &str) -> Option { + let typed = text.trim(); match std::mem::replace(&mut self.step, Step::Location) { - Step::Location => None, + Step::Location => { + let mode = Mode::of(typed).filter(|_| typed.starts_with('\''))?; + self.enter_mode(mode); + return Some(self.unit_line()); + } + Step::Line => { + self.step = Step::Line; + if typed.eq_ignore_ascii_case("P") || typed.eq_ignore_ascii_case("Points") { + self.step = Step::Start; + return Some(CmdResult::NeedPoint); + } + return Some(CmdResult::ReportError(t("Nothing selected."))); + } + Step::Northing => match if typed.is_empty() { Some(self.ne.0) } else { number(typed) } { + Some(n) => { + self.ne.0 = n; + self.step = Step::Easting(n); + } + None => { + self.step = Step::Northing; + return Self::numeric(); + } + }, + Step::Easting(n) => match if typed.is_empty() { Some(self.ne.1) } else { number(typed) } { + Some(e) => { + self.ne.1 = e; + return Some(self.located(DVec3::new(e, n, 0.0))); + } + None => { + self.step = Step::Easting(n); + return Self::numeric(); + } + }, + Step::Quadrant => { + if typed.is_empty() { + return Some(self.resume()); + } + match typed.parse::() { + Ok(q @ 1..=4) => { + self.step = Step::Bearing(q); + return Some(CmdResult::ReportMessage(t(DIRECTION_UNIT))); + } + _ => { + self.step = Step::Quadrant; + return Some(CmdResult::ReportError(format!("{}\n{}", t("Invalid quadrant. Please try again"), t(QUADRANTS)))); + } + } + } + Step::Bearing(q) => match dms(typed).filter(|b| (0.0..=90.0).contains(b)) { + // The bearing turns from north or south toward east or west. + Some(b) => self.step = Step::Distance([b, 180.0 - b, 180.0 + b, 360.0 - b][usize::from(q) - 1]), + None => { + self.step = Step::Bearing(q); + return Self::invalid(); + } + }, + Step::Azimuth => { + if typed.is_empty() { + return Some(self.resume()); + } + match dms(typed) { + Some(a) => self.step = Step::Distance(a), + None => { + self.step = Step::Azimuth; + return Self::invalid(); + } + } + } + Step::End => { + if typed.is_empty() { + return Some(self.resume()); + } + self.step = Step::End; + return Self::invalid(); + } + Step::Angle => { + if typed.is_empty() { + return Some(self.resume()); + } + if typed.eq_ignore_ascii_case("C") { + self.counter_clockwise = !self.counter_clockwise; + self.step = Step::Angle; + return Some(CmdResult::NeedPoint); + } + match number(typed) { + Some(a) => self.step = Step::Distance(a), + None => { + self.step = Step::Angle; + return Self::invalid(); + } + } + } + Step::Distance(direction) => match number(typed).and_then(|d| self.travel(direction, d)) { + Some(at) => { + self.from = Some(at); + return Some(self.located(at)); + } + None => { + self.step = Step::Distance(direction); + return Self::numeric(); + } + }, + Step::Start => { + self.step = Step::Start; + return Self::invalid(); + } Step::Description(at) => { let d = self.description_of(text); self.description = d.clone(); self.step = Step::Elevation(at, d); - Some(CmdResult::NeedPoint) } Step::Elevation(at, d) => { - let t = text.trim(); - let elevation = match t { + let elevation = match typed { "" | "." => None, - _ => match t.parse::() { - Ok(z) if z.is_finite() => Some(z), - _ => { + _ => match number(typed) { + Some(z) => Some(z), + None => { self.step = Step::Elevation(at, d); - return Some(CmdResult::ReportError(crate::t!("Invalid input").into_owned())); + return Self::invalid(); } }, }; - Some(CmdResult::AddCogoPoint { position: at, description: d, elevation }) + // The mode's next point starts where this one is. + if self.mode != Mode::Manual { + self.from = Some(at); + } + self.next_location(); + let then = match self.unit_line() { + CmdResult::ReportMessage(m) => Some(m), + _ => None, + }; + return Some(CmdResult::AddCogoPoint { position: at, description: d, elevation, echo: true, then }); } } + Some(self.unit_line()) } fn on_enter(&mut self) -> CmdResult { match self.step { Step::Location => CmdResult::Done, + Step::Start | Step::Line => self.resume(), _ => self.on_text_input("").unwrap_or(CmdResult::NeedPoint), } } + + fn on_escape(&mut self) -> CmdResult { + // Esc in a direction mode drops back to the location prompt. + match (self.mode, &self.step) { + (Mode::Manual, _) | (_, Step::Description(_) | Step::Elevation(..)) => CmdResult::Cancel, + _ => self.resume(), + } + } } -inventory::submit!(crate::command::CommandRegistration { names: &["CREATEPOINTMANUAL"] }); +inventory::submit!(crate::command::CommandRegistration { + names: &["CREATEPOINTMANUAL", "CREATEPOINTNORTHINGEASTING", "CREATEPOINTBEARING", "CREATEPOINTAZIMUTH", "CREATEPOINTANGLE", "CREATEPOINTDEFLECTION"] +}); + +#[cfg(test)] +mod tests { + use super::*; + + fn run(c: &mut CreatePointManualCommand, inputs: &[&str]) -> Vec { + inputs.iter().map(|i| c.on_text_input(i).unwrap()).collect() + } + + fn added(r: &CmdResult) -> DVec3 { + match r { + CmdResult::AddCogoPoint { position, .. } => *position, + _ => panic!("no point"), + } + } + + #[test] + fn direction_modes_land_where_measured() { + // 'ZD from (10,20): azimuth 1°, 45 → (10.7854, 64.9931). + let mut c = CreatePointManualCommand::with_mode(Mode::Azimuth); + c.on_point(DVec3::new(10.0, 20.0, 0.0)); + let r = run(&mut c, &["1", "45", "", ""]); + let p = added(&r[3]); + assert!((p.x - 10.7854).abs() < 1e-4 && (p.y - 64.9931).abs() < 1e-4); + // 'PBD from (10,20): quadrant 1, 45°, 30 → (31.2132, 41.2132). + let mut c = CreatePointManualCommand::with_mode(Mode::Bearing); + c.on_point(DVec3::new(10.0, 20.0, 0.0)); + let r = run(&mut c, &["1", "45", "30", "", ""]); + let p = added(&r[4]); + assert!((p.x - 31.2132).abs() < 1e-4 && (p.y - 41.2132).abs() < 1e-4); + // 'AD on (0,0)-(10,0): 30°, 20 → (17.3205, -10); then end (40,40): 30°, 20 → (33.5822, 1.6429). + let mut c = CreatePointManualCommand::with_mode(Mode::Angle); + c.on_text_input("P"); + c.on_point(DVec3::ZERO); + c.on_point(DVec3::new(10.0, 0.0, 0.0)); + let r = run(&mut c, &["30", "20", "", ""]); + let p = added(&r[3]); + assert!((p.x - 17.3205).abs() < 1e-4 && (p.y + 10.0).abs() < 1e-4); + c.on_point(DVec3::new(40.0, 40.0, 0.0)); + let r = run(&mut c, &["30", "20", "", ""]); + let p = added(&r[3]); + assert!((p.x - 33.5822).abs() < 1e-4 && (p.y - 1.6429).abs() < 1e-4); + // 'DD on (0,0)-(10,0): 90°, 20 → (0, 20). + let mut c = CreatePointManualCommand::with_mode(Mode::Deflection); + c.on_text_input("P"); + c.on_point(DVec3::ZERO); + c.on_point(DVec3::new(10.0, 0.0, 0.0)); + let r = run(&mut c, &["90", "20", "", ""]); + let p = added(&r[3]); + assert!(p.x.abs() < 1e-9 && (p.y - 20.0).abs() < 1e-9); + } +} diff --git a/src/modules/civil/point_object.rs b/src/modules/civil/point_object.rs new file mode 100644 index 0000000000..5726eada23 --- /dev/null +++ b/src/modules/civil/point_object.rs @@ -0,0 +1,641 @@ +//! The point creation commands that place COGO points from objects: each +//! picks an object (Automatic a set), works out locations from it, and asks +//! every point's description and elevation as CREATEPOINTMANUAL does before +//! writing it. Esc goes back one prompt; at the object prompt it ends. + +use crate::command::{CadCommand, CmdResult, InputKind, SelectionEntity}; +use crate::entities::curve::entity_curve; +use document::{EntityType, Handle}; +use glam::DVec3; +use ocs_geom::space::PlanarCurve; +use std::collections::VecDeque; + +#[derive(Clone, Copy, PartialEq, Debug)] +pub enum Kind { + /// A station and offset along the object. + StationOffset, + /// A distance along the object. + Along, + /// The object's two ends. + OnObject, + /// The ends (and an arc's centre) of every selected line and arc. + Automatic, + /// Equal segments along the object. + Divide, + /// An interval along the object between two stations. + Measure, + /// A polyline's vertices at one elevation asked first. + PolylineManual, + /// A polyline's vertices at the polyline's own elevation. + PolylineAuto, + /// The station seeing three known points under two measured angles. + Resection, +} + +impl Kind { + fn name(self) -> &'static str { + match self { + Kind::StationOffset => "CREATEPTSTATIONOFFSETOBJ", + Kind::Along => "CREATEPTALONGLNCURVESPIR", + Kind::OnObject => "CREATEPTONLINECURVESPIRAL", + Kind::Automatic => "CREATEPOINTAUTOMATIC", + Kind::Divide => "CREATEPOINTDIVIDEOBJECT", + Kind::Measure => "CREATEPOINTMEASUREOBJECT", + Kind::PolylineManual => "CREATEPTPLYLINECTRVERTMAN", + Kind::PolylineAuto => "CREATEPTPLYLNCTRVERTAUTO", + Kind::Resection => "CREATEPOINTRESECTION", + } + } + + pub fn of(command: &str) -> Option { + Some(match command { + "CREATEPTSTATIONOFFSETOBJ" => Kind::StationOffset, + "CREATEPTALONGLNCURVESPIR" => Kind::Along, + "CREATEPTONLINECURVESPIRAL" => Kind::OnObject, + "CREATEPOINTAUTOMATIC" => Kind::Automatic, + "CREATEPOINTDIVIDEOBJECT" => Kind::Divide, + "CREATEPOINTMEASUREOBJECT" => Kind::Measure, + "CREATEPTPLYLINECTRVERTMAN" => Kind::PolylineManual, + "CREATEPTPLYLNCTRVERTAUTO" => Kind::PolylineAuto, + "CREATEPOINTRESECTION" => Kind::Resection, + _ => return None, + }) + } +} + +/// The picked object's curve, read from its end nearest the pick. +struct Path { + curve: PlanarCurve, + reversed: bool, +} + +impl Path { + fn length(&self) -> f64 { + self.curve.length() + } + + /// The point `d` along the path, moved `offset` to the right of the + /// direction of travel; past either end the path runs on straight. + fn at(&self, d: f64, offset: f64) -> DVec3 { + let len = self.length(); + let inner = d.clamp(0.0, len); + let raw = if self.reversed { len - inner } else { inner }; + let p = DVec3::from_array(self.curve.point_at_distance(raw)); + let mut t = DVec3::from_array(self.curve.tangent_at(self.curve.parameter_at_distance(raw))); + t.z = 0.0; + let mut t = t.normalize_or_zero(); + if self.reversed { + t = -t; + } + let p = p + t * (d - inner) + DVec3::new(t.y, -t.x, 0.0) * offset; + DVec3::new(p.x, p.y, 0.0) + } +} + +#[derive(Clone)] +enum Step { + DefaultElevation, + Object, + StartStation, + EndStation, + Station, + Segments, + Offset, + Interval, + Distance, + Description, + Elevation(Option), + /// Resection: the second and third known points, then the two angles. + Second(DVec3), + Third(DVec3, DVec3), + FirstAngle([DVec3; 3]), + SecondAngle([DVec3; 3]), +} + +pub struct ObjectPointCommand { + kind: Kind, + step: Step, + picked: Option, + picked_set: Vec<(Handle, EntityType)>, + path: Option, + start_station: f64, + end_station: f64, + station: f64, + segments: u32, + offset: f64, + interval: f64, + /// Points worked out and waiting for their description (and elevation + /// when it is not known yet). + queue: VecDeque<(DVec3, Option)>, + /// Polyline vertices - manual: the elevation every vertex takes. + default_elevation: f64, + /// Resection: the angles offered, the last ones given. + angles: (f64, f64), + description: Option, +} + +fn t(s: &'static str) -> String { + crate::t!(s).into_owned() +} + +fn number(text: &str) -> Option { + text.trim().parse::().ok().filter(|v| v.is_finite()) +} + +/// Three-point resection: the station from which the first known point turns +/// clockwise by `a` degrees to the second and by `b` to the third. The +/// station lies on the circle through 1 and 2 seeing them under `a` and on +/// the one through 1 and 3 seeing them under `b`; it is point 1 mirrored in +/// the line joining the two centres. +fn resection(p: [DVec3; 3], a: f64, b: f64) -> Result { + use glam::DVec2; + let mul = |x: DVec2, y: DVec2| DVec2::new(x.x * y.x - x.y * y.y, x.x * y.y + x.y * y.x); + let div = |x: DVec2, y: DVec2| mul(x, DVec2::new(y.x, -y.y)) / y.length_squared(); + let colinear = |deg: f64| (deg.rem_euclid(180.0)).min(180.0 - deg.rem_euclid(180.0)) < 1e-9; + if colinear(a) { + return Err("Points 1 and 2 are colinear."); + } + if colinear(b) { + return Err("Points 1 and 3 are colinear."); + } + let [p1, p2, p3] = p.map(|v| DVec2::new(v.x, v.y)); + // The centre seeing `p`–`q` under the clockwise angle `deg`. + let centre = |q: DVec2, deg: f64| { + let e = DVec2::from_angle((-2.0 * deg).to_radians()); + div(mul(e, p1) - q, e - DVec2::X) + }; + let (c2, c3) = (centre(p2, a), centre(p3, b)); + let u = (c3 - c2).normalize_or_zero(); + if u == DVec2::ZERO { + return Err("A solution does not exist."); + } + let r = p1 - c2; + let s = c2 + 2.0 * u * r.dot(u) - r; + // The circles also hold the station seeing the pair under the angle + // plus 180°: only a station matching both angles is a solution. + let az = |q: DVec2| (q.x - s.x).atan2(q.y - s.y).to_degrees(); + let same = |x: f64, y: f64| ((x - y).rem_euclid(360.0) + 1e-6).rem_euclid(360.0) < 2e-6; + if s.distance(p1) < 1e-9 || !same(az(p2) - az(p1), a) || !same(az(p3) - az(p1), b) { + return Err("A solution does not exist."); + } + Ok(DVec3::new(s.x, s.y, 0.0)) +} + +fn flat(p: [f64; 3]) -> DVec3 { + DVec3::new(p[0], p[1], 0.0) +} + +impl ObjectPointCommand { + pub fn new(kind: Kind) -> Self { + Self { + kind, + step: if kind == Kind::PolylineManual { Step::DefaultElevation } else { Step::Object }, + picked: None, + picked_set: Vec::new(), + path: None, + start_station: 0.0, + end_station: 0.0, + station: 0.0, + segments: 1, + offset: 0.0, + interval: 10.0, + queue: VecDeque::new(), + default_elevation: 0.0, + angles: (0.0, 0.0), + description: None, + } + } + + /// Asks the next queued point, or goes back to where more are made. + fn next(&mut self) -> CmdResult { + self.step = if !self.queue.is_empty() { + Step::Description + } else { + match self.kind { + Kind::StationOffset => Step::Station, + Kind::Along => Step::Distance, + _ => Step::Object, + } + }; + CmdResult::NeedPoint + } + + fn queue_and_ask(&mut self, points: Vec) -> CmdResult { + self.queue.extend(points.into_iter().map(|p| (p, None))); + self.next() + } + + /// A polyline's vertices with the elevation each point takes: the one + /// asked first (manual) or the polyline's own (automatic). + fn polyline_vertices(&self, e: &EntityType) -> Option)>> { + let points: Vec = match e { + EntityType::LwPolyline(p) => p.vertices.iter().map(|v| DVec3::new(v.location.x, v.location.y, p.elevation)).collect(), + EntityType::Polyline2D(p) => p.vertices.iter().map(|v| DVec3::new(v.location.x, v.location.y, p.elevation)).collect(), + EntityType::Polyline3D(p) => p.vertices.iter().map(|v| DVec3::new(v.position.x, v.position.y, v.position.z)).collect(), + _ => return None, + }; + let manual = self.kind == Kind::PolylineManual; + Some(points.into_iter().map(|p| (DVec3::new(p.x, p.y, 0.0), Some(if manual { self.default_elevation } else { p.z }))).collect()) + } + + /// The ends of a line and an arc's end, start and centre, in the order + /// the reference writes them. + fn automatic_points(e: &EntityType) -> Vec { + match e { + EntityType::Line(l) => vec![DVec3::new(l.start.x, l.start.y, 0.0), DVec3::new(l.end.x, l.end.y, 0.0)], + EntityType::Arc(a) => { + let at = |angle: f64| DVec3::new(a.center.x + a.radius * angle.cos(), a.center.y + a.radius * angle.sin(), 0.0); + vec![at(a.end_angle), at(a.start_angle), DVec3::new(a.center.x, a.center.y, 0.0)] + } + _ => Vec::new(), + } + } + + /// Divide: the `segments + 1` points from end to end. + fn divided(&self) -> Vec { + let Some(path) = &self.path else { return Vec::new() }; + let n = self.segments.max(1); + (0..=n).map(|i| path.at(path.length() * f64::from(i) / f64::from(n), self.offset)).collect() + } + + /// Measure: every interval from the starting station up to the ending + /// one; the starting station is the path's start. + fn measured(&self) -> Vec { + let Some(path) = &self.path else { return Vec::new() }; + let mut out = Vec::new(); + let mut s = self.start_station; + while s <= self.end_station + 1e-9 && out.len() < 100_000 { + out.push(path.at(s - self.start_station, self.offset)); + s += self.interval; + } + out + } + + /// A value typed at a numbered prompt (Enter keeps `default`). + fn value(typed: &str, default: f64) -> Option { + if typed.is_empty() { + Some(default) + } else { + number(typed) + } + } +} + +impl CadCommand for ObjectPointCommand { + fn name(&self) -> &'static str { + self.kind.name() + } + + fn prompt(&self) -> String { + match self.step { + Step::DefaultElevation => t("Default Elevation <.>:"), + Step::Object if self.kind == Kind::Resection => t("Specify first (backsight or reference) point:"), + Step::Second(_) => t("Specify second point:"), + Step::Third(..) => t("Specify third point:"), + Step::FirstAngle(_) => crate::tf!("Specify the angle between the first and second point <{:.4} (d)>:", self.angles.0).into_owned(), + Step::SecondAngle(_) => crate::tf!("Specify the angle between the first and third point <{:.4} (d)>:", self.angles.1).into_owned(), + Step::Object if self.kind == Kind::Automatic => t("Select arcs, lines, lot lines, or feature lines:"), + Step::Object if matches!(self.kind, Kind::PolylineManual | Kind::PolylineAuto) => t("Select a polyline object:"), + Step::Object => t("Select an arc, line, polyline, lot line, or feature line:"), + Step::StartStation => crate::tf!("Starting station <{:.3}>:", self.start_station).into_owned(), + Step::EndStation => crate::tf!("Ending station <{:.3}>:", self.end_station).into_owned(), + Step::Station => crate::tf!("Specify a desired station <{:.3}>:", self.station).into_owned(), + Step::Segments => crate::tf!("Enter the number of segments <{}>:", self.segments).into_owned(), + Step::Offset => crate::tf!("Specify an offset <{:.3}>:", self.offset).into_owned(), + Step::Interval => crate::tf!("Enter an interval <{:.3}>:", self.interval).into_owned(), + Step::Distance => t("Specify a distance:"), + Step::Description => crate::tf!("Enter a point description <{}>:", self.description.as_deref().unwrap_or(".")).into_owned(), + Step::Elevation(_) => t("Specify a point elevation <.>:"), + } + } + + fn input_kind(&self) -> InputKind { + match self.step { + Step::Object | Step::Second(_) | Step::Third(..) => InputKind::Point, + _ => InputKind::FreeText, + } + } + + fn groups_undo(&self) -> bool { + true + } + + fn needs_entity_pick(&self) -> bool { + matches!(self.step, Step::Object) && !matches!(self.kind, Kind::Automatic | Kind::Resection) + } + + fn inject_before_entity_pick(&self) -> bool { + self.needs_entity_pick() + } + + fn inject_picked_entity(&mut self, entity: EntityType) { + self.picked = Some(entity); + } + + fn is_selection_gathering(&self) -> bool { + matches!(self.step, Step::Object) && self.kind == Kind::Automatic + } + + fn selection_entity_filter(&self) -> Option bool> { + if self.kind == Kind::Automatic { + Some(|e| matches!(e, EntityType::Line(_) | EntityType::Arc(_))) + } else { + None + } + } + + fn inject_selection_entities(&mut self, entities: Vec) { + self.picked_set = entities.into_iter().map(|e| (e.handle, e.entity)).collect(); + } + + fn on_selection_complete(&mut self, _handles: Vec) -> CmdResult { + // The set keeps growing until Enter, as the reference's does. + CmdResult::NeedPoint + } + + fn on_entity_pick(&mut self, _handle: Handle, pick: DVec3) -> CmdResult { + if matches!(self.kind, Kind::PolylineManual | Kind::PolylineAuto) { + if let Some(points) = self.picked.take().and_then(|e| self.polyline_vertices(&e)) { + self.queue.extend(points); + } + return self.next(); + } + let Some(curve) = self.picked.take().and_then(|e| entity_curve(&e)) else { + return CmdResult::NeedPoint; + }; + let len = curve.length(); + let start = flat(curve.point_at_distance(0.0)); + let end = flat(curve.point_at_distance(len)); + let pick = DVec3::new(pick.x, pick.y, 0.0); + // Stations run from the end nearest the pick (the end on a tie). + let reversed = pick.distance(start) >= pick.distance(end); + if self.kind == Kind::OnObject { + return self.queue_and_ask(vec![start, end]); + } + self.path = Some(Path { curve, reversed }); + self.end_station = len; + self.step = match self.kind { + Kind::Along => Step::Distance, + Kind::Divide => Step::Segments, + _ => Step::StartStation, + }; + CmdResult::NeedPoint + } + + fn on_point(&mut self, pt: DVec3) -> CmdResult { + let pt = DVec3::new(pt.x, pt.y, 0.0); + match self.step { + Step::Object if self.kind == Kind::Resection => { + self.step = Step::Second(pt); + CmdResult::NeedPoint + } + Step::Second(a) => { + self.step = Step::Third(a, pt); + CmdResult::NeedPoint + } + Step::Third(a, b) => { + self.step = Step::FirstAngle([a, b, pt]); + CmdResult::NeedPoint + } + Step::Object => CmdResult::NeedPoint, + _ => CmdResult::ReportError(t("Invalid input")), + } + } + + fn on_text_input(&mut self, text: &str) -> Option { + let typed = text.trim(); + let bad = Some(CmdResult::ReportError(t("Invalid input"))); + match self.step.clone() { + Step::Object | Step::Second(_) | Step::Third(..) => return None, + Step::FirstAngle(p) => match Self::value(typed, self.angles.0) { + Some(a) => { + self.angles.0 = a; + self.step = Step::SecondAngle(p); + } + None => return bad, + }, + Step::SecondAngle(p) => match Self::value(typed, self.angles.1) { + Some(b) => { + self.angles.1 = b; + return Some(match resection(p, self.angles.0, b) { + Ok(at) => self.queue_and_ask(vec![at]), + Err(why) => { + self.step = Step::Object; + CmdResult::ReportError(format!("{} +{}", t("Resection point is unsolvable"), t(why))) + } + }); + } + None => return bad, + }, + // "." or Enter: no elevation given, the vertices take 0 (measured). + Step::DefaultElevation => match typed { + "" | "." => { + self.default_elevation = 0.0; + self.step = Step::Object; + } + _ => match number(typed) { + Some(z) => { + self.default_elevation = z; + self.step = Step::Object; + } + None => return bad, + }, + }, + Step::StartStation => match Self::value(typed, self.start_station) { + Some(s) => { + self.start_station = s; + // The ending station offered is the path's far end. + self.end_station = s + self.path.as_ref().map_or(0.0, Path::length); + self.step = if self.kind == Kind::Measure { Step::EndStation } else { Step::Station }; + } + None => return bad, + }, + Step::EndStation => match Self::value(typed, self.end_station) { + Some(s) => { + self.end_station = s; + self.step = Step::Offset; + } + None => return bad, + }, + Step::Station => match Self::value(typed, self.station) { + Some(s) => { + self.station = s; + self.step = Step::Offset; + } + None => return bad, + }, + Step::Segments => match if typed.is_empty() { Some(self.segments) } else { typed.parse::().ok().filter(|n| *n > 0) } { + Some(n) => { + self.segments = n; + self.step = Step::Offset; + } + None => return bad, + }, + Step::Offset => match Self::value(typed, self.offset) { + Some(o) => { + self.offset = o; + let points = match self.kind { + Kind::Divide => self.divided(), + Kind::Measure => { + self.step = Step::Interval; + return Some(CmdResult::NeedPoint); + } + _ => vec![self.path.as_ref()?.at(self.station - self.start_station, o)], + }; + return Some(self.queue_and_ask(points)); + } + None => return bad, + }, + Step::Interval => match Self::value(typed, self.interval).filter(|v| *v > 0.0) { + Some(v) => { + self.interval = v; + let points = self.measured(); + return Some(self.queue_and_ask(points)); + } + None => return bad, + }, + Step::Distance => match number(typed) { + Some(d) => { + let p = self.path.as_ref()?.at(d, 0.0); + return Some(self.queue_and_ask(vec![p])); + } + None => return bad, + }, + Step::Description => { + let d = match typed { + "" => self.description.clone(), + "." => None, + t => Some(t.to_string()), + }; + self.description = d.clone(); + // A polyline vertex already has its elevation. + if let Some(&(at, Some(z))) = self.queue.front() { + self.queue.pop_front(); + self.next(); + return Some(CmdResult::AddCogoPoint { position: at, description: d, elevation: Some(z), echo: false, then: None }); + } + self.step = Step::Elevation(d); + } + Step::Elevation(d) => { + let elevation = match typed { + "" | "." => None, + _ => match number(typed) { + Some(z) => Some(z), + None => return bad, + }, + }; + let (at, _) = self.queue.pop_front()?; + self.next(); + return Some(CmdResult::AddCogoPoint { position: at, description: d, elevation, echo: false, then: None }); + } + } + Some(CmdResult::NeedPoint) + } + + fn on_enter(&mut self) -> CmdResult { + match self.step { + Step::Object if self.kind == Kind::Automatic && !self.picked_set.is_empty() => { + // The drawing's order: the reference writes older objects first. + let mut set = std::mem::take(&mut self.picked_set); + set.sort_by_key(|(h, _)| h.value()); + let points = set.iter().flat_map(|(_, e)| Self::automatic_points(e)).collect(); + self.queue_and_ask(points) + } + Step::Object => CmdResult::Done, + _ => self.on_text_input("").unwrap_or(CmdResult::NeedPoint), + } + } + + fn on_escape(&mut self) -> CmdResult { + // Each Esc goes back one prompt (measured: desired station → + // starting station → object, distance → object); the points in + // progress are dropped. + self.queue.clear(); + self.step = match (self.kind, &self.step) { + (_, Step::Object | Step::DefaultElevation) => return CmdResult::Cancel, + (Kind::StationOffset, Step::Station) => Step::StartStation, + (Kind::StationOffset, Step::Offset | Step::Description | Step::Elevation(_)) => Step::Station, + (Kind::Along, Step::Description | Step::Elevation(_)) => Step::Distance, + _ => Step::Object, + }; + CmdResult::ReportMessage(t("*Cancel*")) + } +} + +inventory::submit!(crate::command::CommandRegistration { + names: &[ + "CREATEPTSTATIONOFFSETOBJ", + "CREATEPTALONGLNCURVESPIR", + "CREATEPTONLINECURVESPIRAL", + "CREATEPOINTAUTOMATIC", + "CREATEPOINTDIVIDEOBJECT", + "CREATEPOINTMEASUREOBJECT", + "CREATEPTPLYLINECTRVERTMAN", + "CREATEPTPLYLNCTRVERTAUTO", + "CREATEPOINTRESECTION", + ] +}); + +#[cfg(test)] +mod tests { + use super::*; + use document::entities::Line; + use document::types::Vector3; + + fn line() -> EntityType { + EntityType::Line(Line::from_points(Vector3::new(0.0, 0.0, 0.0), Vector3::new(100.0, 0.0, 0.0))) + } + + fn points(c: &mut ObjectPointCommand, inputs: &[&str]) -> Vec { + inputs + .iter() + .filter_map(|i| match c.on_text_input(i) { + Some(CmdResult::AddCogoPoint { position, .. }) => Some(position), + _ => None, + }) + .collect() + } + + fn picked(kind: Kind, at: f64) -> ObjectPointCommand { + let mut c = ObjectPointCommand::new(kind); + c.inject_picked_entity(line()); + c.on_entity_pick(Handle::NULL, DVec3::new(at, 0.0, 0.0)); + c + } + + #[test] + fn resection_finds_the_measured_station() { + // Measured: (0,0), (100,0), (50,70) under 223.602819° and + // 111.801409° (clockwise from the first) → (50,20); the + // counter-clockwise pair has no solution. + let p = [DVec3::ZERO, DVec3::new(100.0, 0.0, 0.0), DVec3::new(50.0, 70.0, 0.0)]; + let s = resection(p, 223.602819, 111.801409).unwrap(); + assert!((s.x - 50.0).abs() < 1e-4 && (s.y - 20.0).abs() < 1e-4); + assert_eq!(resection(p, 136.397181, 248.198591), Err("A solution does not exist.")); + assert_eq!(resection(p, 0.0, 0.0), Err("Points 1 and 2 are colinear.")); + } + + #[test] + fn object_points_land_where_measured() { + // Station/offset picked at the middle (a tie: from the end): 25, 5 → + // (75,5); 60, -5 → (40,-5). + let mut c = picked(Kind::StationOffset, 50.0); + assert_eq!(points(&mut c, &["", "25", "5", "", "", "60", "-5", "", ""]), vec![DVec3::new(75.0, 5.0, 0.0), DVec3::new(40.0, -5.0, 0.0)]); + // Along from the end nearest the pick. + let mut c = picked(Kind::Along, 10.0); + assert_eq!(points(&mut c, &["30", "", "", "60", "", ""]), vec![DVec3::new(30.0, 0.0, 0.0), DVec3::new(60.0, 0.0, 0.0)]); + // Divide in 4: five points end to end. + let mut c = picked(Kind::Divide, 10.0); + let p = points(&mut c, &["4", "", "", "", "", "", "", "", "", "", "", ""]); + assert_eq!(p.iter().map(|p| p.x).collect::>(), vec![0.0, 25.0, 50.0, 75.0, 100.0]); + // Measure every 30 from 0 to 100: 0, 30, 60, 90. + let mut c = picked(Kind::Measure, 10.0); + let p = points(&mut c, &["", "", "", "30", "", "", "", "", "", "", "", ""]); + assert_eq!(p.iter().map(|p| p.x).collect::>(), vec![0.0, 30.0, 60.0, 90.0]); + // From the far end: stations 10..70 every 25, offset 2 → x 100, 75, 50 at y 2. + let mut c = picked(Kind::Measure, 90.0); + let p = points(&mut c, &["10", "70", "2", "25", "", "", "", "", "", ""]); + assert_eq!(p, vec![DVec3::new(100.0, 2.0, 0.0), DVec3::new(75.0, 2.0, 0.0), DVec3::new(50.0, 2.0, 0.0)]); + } +} diff --git a/src/ui/points_menu.rs b/src/ui/points_menu.rs index 66890af6f3..2d7c2a99b8 100644 --- a/src/ui/points_menu.rs +++ b/src/ui/points_menu.rs @@ -148,7 +148,26 @@ pub const TOOLS: &[Entry] = &[ // ponytail: entries answer "not yet implemented" until their command lands; // drop each from here as it does. pub fn is_pending(cmd: &str) -> bool { - !matches!(cmd, "CREATEPOINTMANUAL" | "CREATEPOINTGROUP") + !matches!( + cmd, + "CREATEPOINTMANUAL" + | "CREATEPOINTGROUP" + | "CREATEPOINTNORTHINGEASTING" + | "CREATEPOINTBEARING" + | "CREATEPOINTAZIMUTH" + | "CREATEPOINTANGLE" + | "CREATEPOINTDEFLECTION" + | "CREATEPTSTATIONOFFSETOBJ" + | "CREATEPOINTAUTOMATIC" + | "CREATEPTALONGLNCURVESPIR" + | "CREATEPTONLINECURVESPIRAL" + | "CREATEPOINTDIVIDEOBJECT" + | "CREATEPOINTMEASUREOBJECT" + | "CREATEPTPLYLINECTRVERTMAN" + | "CREATEPTPLYLNCTRVERTAUTO" + | "CREATEPOINTRESECTION" + | "CREATEPTGEODETICDIR" + ) && (GROUPS.iter().flat_map(|g| g.entries.iter().flatten()).any(|e| e.command == cmd) || TOOLS.iter().any(|e| e.command == cmd)) }