命名优化,达芬奇字体修改工具
This commit is contained in:
@@ -137,7 +137,7 @@ public class DrawingViewApp
|
||||
// IsCheckable = true,
|
||||
// Orientation = System.Windows.Controls.Orientation.Vertical,
|
||||
//};
|
||||
tog.CheckStateChanged += (s, e) =>
|
||||
tog.CheckStateChanged += (_, _) =>
|
||||
{
|
||||
zoomElementHandler.Raise(
|
||||
uiapp =>
|
||||
|
||||
@@ -37,9 +37,9 @@ public class RvApp : ExternalApplication
|
||||
var doc = app.ActiveUIDocument.Document;
|
||||
#if REVIT2018
|
||||
|
||||
if (doc.IsModified && !string.IsNullOrEmpty(doc.PathName))
|
||||
if (doc.IsModified && !string.IsNullOrEmpty(doc.PathName) && !doc.IsReadOnlyFile)
|
||||
#else
|
||||
if (!doc.IsBackgroundCalculationInProgress() && doc.IsModified && !string.IsNullOrEmpty(doc.PathName))
|
||||
if (!doc.IsBackgroundCalculationInProgress() && doc.IsModified && !string.IsNullOrEmpty(doc.PathName)&&!doc.IsReadOnlyFile)
|
||||
#endif
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user