Restrict decimal precision to 2 decimals

Hi Team,

Software using microstation v8iss3

Programming using visual stuido C#.Net

We have a requirement to restrict each and every vertex to 2 decimals (ex: XYZ = 123.45000,745.75000,100.12000).

Irrespective of accuracy value in Working units, in the above example accuracy value is 5 but rounded to 2 decimals. 

Is there any way to do this ?

Is there any settings in microstation to restrict decimal precision ?

Thank you,

B Daniel.

Parents
  • Hi Danie,

    Unknown said:
    Is there any settings in microstation to restrict decimal precision ?

    In my opinion it's not possible to restrict precision. Coordinates are always stored using double precision floating point numbers.

    It's possible to use grid lock, so cursor is limited to the grid, but when snapped (e.g. to lines intersection), it is calculated for real coordinates ignoring the grid.

    Unknown said:
    We have a requirement to restrict each and every vertex to 2 decimals (ex: XYZ = 123.45000,745.75000,100.12000).

    Question: How lines constructed using snap (e.g. to intersections) will be processed? When rounded to 2 decimals, they will not represent the intersection anymore.

    Unknown said:
    Is there any way to do this ?

    I guess using MDL you can monitor MicroStation input queue or to hook design file change saving process and to round every saved coordinates as you need.

    With regards,

      Jan

  • Thank jan,

    When user trying to capture using place smartline we need to restrict those vertices to 2 decimals irrespective to the accuracy value.

    Thank you,

  • Unknown said:
    When user trying to capture using place smartline we need to restrict those vertices to 2 decimals irrespective to the accuracy value.

    It seems to me you want to change how MicroStation tools work, which is not possible.

    AccuDraw (and all other tools) display coordinates in precision defined by Coordinate readout setting. It does not define the precision how coordinates are processed and stored and a user can enter four decimal digits number when readout is set to two and it will be valid input.

    For data point precision, you can use Grid Lock or Unit Lock to define basic grid how any data point will be placed. But snap will always win (and will be placed between this grid) and also the user can always enter any coordinates manually.

    With regards,

      Jan

Reply
  • Unknown said:
    When user trying to capture using place smartline we need to restrict those vertices to 2 decimals irrespective to the accuracy value.

    It seems to me you want to change how MicroStation tools work, which is not possible.

    AccuDraw (and all other tools) display coordinates in precision defined by Coordinate readout setting. It does not define the precision how coordinates are processed and stored and a user can enter four decimal digits number when readout is set to two and it will be valid input.

    For data point precision, you can use Grid Lock or Unit Lock to define basic grid how any data point will be placed. But snap will always win (and will be placed between this grid) and also the user can always enter any coordinates manually.

    With regards,

      Jan

Children
No Data