-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ricaun-io/develop
Deploy 0.0.7
- Loading branch information
Showing
16 changed files
with
817 additions
and
423 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,24 @@ | ||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace ricaun.Revit.UI.Example.Proprieties | ||
{ | ||
public static class Pack | ||
{ | ||
#region Private | ||
private static string Assembly => "UIFrameworkRes"; | ||
private static string BaseUri => @"pack://application:,,,/{0};component/Ribbon/images/{1}.ico"; | ||
#endregion | ||
public static string Icon([CallerMemberName] string name = null) => string.Format(BaseUri, Assembly, name.ToLower()); | ||
public static string Power => Icon("system_electrical_circuit_power_create"); | ||
public static string Communication => Icon("system_electrical_circuit_communication_create"); | ||
public static string Control => Icon("system_electrical_circuit_control_create"); | ||
public static string Data => Icon("system_electrical_circuit_data_create"); | ||
public static string Alarm => Icon("system_electrical_circuit_fire_alarm_create"); | ||
public static string Nurce => Icon("system_electrical_circuit_nurse_call_create"); | ||
public static string Security => Icon("system_electrical_circuit_security_create"); | ||
public static string Telephone => Icon("system_electrical_circuit_telephone_create"); | ||
public static string Switch => Icon("system_switch_create"); | ||
|
||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
ricaun.Revit.UI.Example/Revit/Commands/Availability/AvailableOnAnyDocument.cs
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,19 @@ | ||
using Autodesk.Revit.DB; | ||
using Autodesk.Revit.UI; | ||
|
||
namespace ricaun.Revit.UI.Example.Revit.Commands.Availability | ||
{ | ||
/// <summary> | ||
/// The Command will be available on Project and Family environment | ||
/// </summary> | ||
public class AvailableOnAnyDocument : IExternalCommandAvailability | ||
{ | ||
public bool IsCommandAvailable(UIApplication uiapp, CategorySet categorySet) | ||
{ | ||
if (uiapp.ActiveUIDocument == null) return false; | ||
if (uiapp.ActiveUIDocument.Document == null) return false; | ||
|
||
return true; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.