08-03-2018 03:00 AM
Now I want to write a locatable object' location to the output window.
The program showed as below:
TxTransformation loc = aObject.AbsoluteLocation;
TxMessageBox.Show(loc.Translation.ToString()) ;
The output for this program is:
-2671.994, -909.414, 0
How can I get the result such as :-2671.99,-909.41,0.00
Appreciate for any reply,Thanks !
Solved! Go to Solution.
08-03-2018 04:28 AM
08-03-2018 04:55 AM
Thanks a lot for your reply!
I found that "ToString("0.00") " is better.
08-03-2018 10:26 AM
Hi Simona,
You can also use ToString(2), TxVector exposes a method string ToString(int precision).
Best Regards,
DianaG
Watch Replays of Previous Topics