Skip to content

Commit

Permalink
published
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed May 5, 2015
1 parent 3085680 commit a682a56
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions BuildingCoder/BuildingCoder/CmdCopyWallType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Result Execute(

// Open source project

Document docHasFamily = app.OpenDocumentFile(
Document docHasFamily = app.OpenDocumentFile(
_source_project_path );

// Find system family to copy, e.g. using a named wall type
Expand All @@ -64,7 +64,7 @@ FilteredElementCollector wallTypes
string name = wt.Name;

Debug.Print( " {0} {1}", ++i, name );

if( name.Equals( _wall_type_name ) )
{
wallType = wt;
Expand Down Expand Up @@ -113,12 +113,12 @@ FilteredElementCollector wallTypes
// Assign parameter values from source wall type:

#if COPY_INDIVIDUAL_PARAMETER_VALUE
// Example: individually copy the "Function" parameter value:
// Example: individually copy the "Function" parameter value:

BuiltInParameter bip = BuiltInParameter.FUNCTION_PARAM;
string function = wallType.get_Parameter( bip ).AsString();
Parameter p = newWallType.get_Parameter( bip );
p.Set( function );
BuiltInParameter bip = BuiltInParameter.FUNCTION_PARAM;
string function = wallType.get_Parameter( bip ).AsString();
Parameter p = newWallType.get_Parameter( bip );
p.Set( function );
#endif // COPY_INDIVIDUAL_PARAMETER_VALUE

Parameter p = null;
Expand Down Expand Up @@ -192,7 +192,6 @@ FilteredElementCollector wallTypes
// As there are no property writable for
// Walltype, I ignore this process here.
}

t.Commit();
}
return Result.Succeeded;
Expand Down

0 comments on commit a682a56

Please sign in to comment.