-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iimplementing and testing custom exporter OnPolymesh method
- Loading branch information
Jeremy Tammik
committed
May 17, 2014
1 parent
4f32148
commit 3fa1a1e
Showing
7 changed files
with
976 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Autodesk.Revit.DB; | ||
using System; | ||
|
||
namespace RvtVa3c | ||
{ | ||
class Util | ||
{ | ||
/// <summary> | ||
/// Return a string for a real number | ||
/// formatted to two decimal places. | ||
/// </summary> | ||
public static string RealString( double a ) | ||
{ | ||
return a.ToString( "0.##" ); | ||
} | ||
|
||
/// <summary> | ||
/// Return a string for an XYZ point | ||
/// or vector with its coordinates | ||
/// formatted to two decimal places. | ||
/// </summary> | ||
public static string PointString( XYZ p ) | ||
{ | ||
return string.Format( "({0},{1},{2})", | ||
RealString( p.X ), | ||
RealString( p.Y ), | ||
RealString( p.Z ) ); | ||
} | ||
} | ||
} |
Oops, something went wrong.