This file contains hidden or 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
using Autodesk.AutoCAD.ApplicationServices.Core; | |
using Autodesk.AutoCAD.Ribbon; | |
using Autodesk.AutoCAD.Runtime; | |
using Autodesk.Windows; | |
using System; | |
namespace ricaun.AutoCAD.UI | |
{ | |
/// <summary> | |
/// Abstract base class for implementing an AutoCAD Extension Application. |
This file contains hidden or 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<CopyBundleFiles>true</CopyBundleFiles> | |
</PropertyGroup> | |
<PropertyGroup> | |
<BundleDestinationFolder>$(AppData)\Autodesk\ApplicationPlugins\$(MSBuildProjectName).bundle</BundleDestinationFolder> | |
</PropertyGroup> |
This file contains hidden or 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<CopyAddinFiles>true</CopyAddinFiles> | |
</PropertyGroup> | |
<PropertyGroup> | |
<AddinDestinationFolder>$(AppData)\Autodesk\Revit\Addins\$(RevitVersion)\</AddinDestinationFolder> | |
</PropertyGroup> |
This file contains hidden or 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<CopyAddinFiles>true</CopyAddinFiles> | |
</PropertyGroup> | |
<PropertyGroup> | |
<AddinDestinationFolder>$(AppData)\Autodesk\Inventor $(InventorVersion)\Addins\</AddinDestinationFolder> | |
</PropertyGroup> |
This file contains hidden or 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
using ricaun.Revit.UI; | |
using System; | |
namespace RevitAddin.ToolTipVideo.Revit; | |
public static class RibbonToolTipExtension | |
{ | |
public static IRibbonItem SetTooltipVideo<IRibbonItem>(this IRibbonItem ribbonItem, string videoPath, | |
string title = null, | |
string toolTip = null, |
This file contains hidden or 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
using Autodesk.Revit.UI; | |
using System; | |
using UIFramework; | |
namespace RevitTest.UIDocument.Tests | |
{ | |
///<summary> | |
/// Provides extension methods for closing UI documents in the Revit application. | |
/// </summary> | |
public static class UIDocumentCloseExtension |
This file contains hidden or 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
bool InAddInContext(UIApplication application) | |
{ | |
// ActiveAddInId is null when invoke outside Revit Api context. | |
return application.ActiveAddInId is not null; | |
} |
This file contains hidden or 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
using Autodesk.Revit.UI; | |
using System; | |
using System.Threading.Tasks; | |
public class AsyncExternalEventHandler : IExternalEventHandler | |
{ | |
private readonly Action<UIApplication> execute; | |
private readonly ExternalEvent externalEvent; | |
private TaskCompletionSource<bool> eventCompleted; | |
public AsyncExternalEventHandler(Action<UIApplication> execute) |
This file contains hidden or 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
@echo off | |
REM Navigate to the specified directory | |
cd /d "%~1" | |
REM Loop through all .csproj files and open them | |
for %%f in (*.csproj) do ( | |
start "" "%%~f" | |
) |
This file contains hidden or 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
using Autodesk.Revit.UI; | |
using ricaun.Revit.UI; | |
namespace RevitAddin.Forum.Revit | |
{ | |
[AppLoader] | |
public class AppScale : IExternalApplication | |
{ | |
private RibbonPanel ribbonPanel; | |
public Result OnStartup(UIControlledApplication application) |
NewerOlder