Message 1 of 5

Not applicable
08-14-2018
11:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I got the following code from
if( null == family ) { // It is not present, so check for // the file to load it from: if( !File.Exists( FamilyPath ) ) { Util.ErrorMsg( string.Format( "Please ensure that the sample table " + "family file '{0}' exists in '{1}'.", FamilyName, _family_folder ) ); return Result.Failed; } // Load family from file: using( Transaction tx = new Transaction( doc ) ) { tx.Start( "Load Family" ); doc.LoadFamily( FamilyPath, out family ); tx.Commit(); } }
SharpDevelop in Revit gives an error when building that it does not know Util.
Should I load a class for this? See the screen shot
Thank you,
Hadi
Solved! Go to Solution.