-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRevitJournalTemplates.cs
More file actions
282 lines (249 loc) · 10.5 KB
/
RevitJournalTemplates.cs
File metadata and controls
282 lines (249 loc) · 10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
namespace dosymep.Revit.Journaling {
/// <summary>
/// Revit journal templates.
/// </summary>
internal class RevitJournalTemplates {
/// <summary>
/// Initialization template Revit.
/// </summary>
/// <param name="{0}">Date journal initialization.</param>
public static readonly string Init
= @"' Revit {0} Journal by dosymep
' 0:< 'C {1};
Dim Jrn
Set Jrn = CrsJournalScript";
/// <summary>
/// Initialization debug mode template.
/// </summary>
public static readonly string InitDebug
= @"
' Initialization debug mode
Jrn.Directive ""DebugMode"", ""PermissiveJournal"", True
Jrn.Directive ""DebugMode"", ""PerformAutomaticActionInErrorDialog"", True";
/// <summary>
/// Exit revit application template.
/// </summary>
public static readonly string ExitApplication
= @"
' Exit revit application
Jrn.Command ""SystemMenu"" , ""Quit the application; prompts to save projects , ID_APP_EXIT""";
/// <summary>
/// Template automatically selects the "Do not save the project" option.
/// </summary>
public static readonly string PromptDoNotSaveFileWhenExit
= @"
' Prompt does not save the file when exit
Jrn.Data ""TaskDialogResult"", _
""You have made changes to model that have not been saved. What do you want to do?"", _
""Do not save the project"", ""IDNO""";
/// <summary>
/// Purge unused elements template.
/// </summary>
public static readonly string PurgeUnused
= @"
' Purge unused elements
Jrn.Command ""Ribbon"" , ""Purge(delete) unused families and types, ID_PURGE_UNUSED""
Jrn.PushButton ""Modal , Purge unused , Dialog_Revit_PurgeUnusedTree"", ""OK, IDOK""";
/// <summary>
/// Ignore missing links template.
/// </summary>
public static readonly string IgnoreMissingLinks
= @"
' Ignore missing links
Jrn.Data ""TaskDialogResult"", _
""Revit could not find or read 1 references. What do you want to do?"", _
""Ignore and continue opening the project"", ""1002""";
/// <summary>
/// Continue working with the file.
/// </summary>
public static readonly string PromptUpdaterContinueWorkingWithFile
= @"
' Continue working with the file
Jrn.Data ""TaskDialogResult"", _
""The file {0} was modified by the third-party updater RevitJournals Plugin : JournalUpdate which is not currently installed."" & vbLf & """" & vbLf & ""If you continue to edit the file, data maintained by RevitJournals Plugin : JournalUpdate will not be updated properly. This may create problems when {0} is later opened when RevitJournals Plugin : JournalUpdate is present."", _
""Continue working with the file."", ""1001""";
/// <summary>
/// Do not warn about this updater again and continue working with the file.
/// </summary>
public static readonly string PromptUpdaterDoNotWarnAgain
= @"
' Do not warn about this updater again and continue working with the file
Jrn.Data ""TaskDialogResult"", _
""The file {0} was modified by the third-party updater RevitJournals Plugin : JournalUpdate which is not currently installed."" & vbLf & """" & vbLf & ""If you continue to edit the file, data maintained by RevitJournals Plugin : JournalUpdate will not be updated properly. This may create problems when {0} is later opened when RevitJournals Plugin : JournalUpdate is present."", _
""Do not warn about this updater again and continue working with the file."", ""1002""";
/// <summary>
/// Open central model template.
/// </summary>
public static readonly string CentralOpen
= @"
' Open central model
Jrn.Command ""Ribbon"" , ""Open an existing project , ID_REVIT_FILE_OPEN""";
/// <summary>
///
/// </summary>
public static readonly string CentralModelName = @"
' Set Central file name
Jrn.Data ""File Name"" , ""IDOK"", ""{0}""";
/// <summary>
///
/// </summary>
public static readonly string CentralWorksetConfig = @"
' Set workset config
Jrn.Data ""WorksetConfig"" , ""{0}"", {1}";
/// <summary>
///
/// </summary>
public static readonly string CentralAcceptCustomWorksets = @"
' Confirm open worksets dialog
Jrn.PushButton ""Modal , Opening Worksets , Dialog_Revit_Partitions"", ""OK, IDOK""";
/// <summary>
/// Create local file template.
/// </summary>
public static readonly string CentralOpenAsLocalCheckBox
= @"
' Central open as local file template
Jrn.Data ""FileOpenSubDialog"", ""OpenAsLocalCheckBox"", ""True""";
/// <summary>
/// Central open with detach.
/// </summary>
public static readonly string CentralOpenDetachCheckBox
= @"
' Central open with detach
Jrn.Data ""FileOpenSubDialog"", ""DetachCheckBox"", ""True""";
/// <summary>
/// Central open with audit template.
/// </summary>
public static readonly string CentralOpenAuditCheckBox
= @"
' Central open with audit
Jrn.Data ""FileOpenSubDialog"", ""AuditCheckBox"", ""True""";
/// <summary>
/// Save as file command template.
/// </summary>
public static readonly string SaveAsFile
= @"
' Save as file command
Jrn.Command ""Ribbon"", ""Save the active project with a new name , ID_REVIT_FILE_SAVE_AS""";
/// <summary>
/// Save as file options template.
/// </summary>
public static readonly string SaveAsFileOptions
= @"
' Save as file options
Jrn.Data ""SaveOptionsData"", {0}, {1}, {2}, {3}, ""{4}""";
/// <summary>
/// Save as file name option.
/// </summary>
public static readonly string SaveAsFileNameOption
= @"
' Save as file name option
Jrn.Data ""File Name"", ""IDOK"" , ""{0}""";
/// <summary>
/// Save as make this a Central Model after save template
/// </summary>
public static readonly string SaveAsMakeThisFileCentalModel
= @"
' Make this a Central Model after save
Jrn.Data ""BecomeCentralProject"", {0}";
/// <summary>
/// Save as enable worksharing template
/// </summary>
public static readonly string SaveAsEnableWorksharing
= @"
' Enable worksharing
Jrn.Data ""BecomeMultiUser"", {0}";
/// <summary>
/// Replace central file template (replace on revit server)
/// </summary>
public static readonly string SaveAsReplaceCentralFile
= @"
' Apply replace central file
Jrn.Data ""TaskDialogResult"", _
""{0} already exists. What do you want to do?"", ""Replace the original central model"", ""1002""";
/// <summary>
/// Replace workshring file template (replace on file system)
/// </summary>
public static readonly string SaveAsReplaceWorksharingFile
= @"
' Apply replace worksharing
Jrn.Data ""TaskDialogResult"", _
""The file {0} already exists. If you replace it, you will lose all of its backup versions. Do you want to replace the existing file?"", _
""Yes"", ""IDYES""";
/// <summary>
/// Synchronization central model template.
/// </summary>
public static readonly string FileSync
= @"
' Synchronization central model
Jrn.Command ""Ribbon"" , ""Save the active project back to the Central Model , ID_FILE_SAVE_TO_CENTRAL""";
/// <summary>
/// Sync comment.
/// </summary>
public static readonly string FileSyncComment = @"
' Comments
Jrn.Edit ""Modal , Synchronize with Central , Dialog_Revit_PartitionsSaveToCentral"", _
""Control_Revit_Comment"", ""ReplaceContents"" , ""{0}""";
/// <summary>
/// Accept sync.
/// </summary>
public static readonly string FileSyncAccept = @"
' Assign synchronize with central dialog
Jrn.PushButton ""Modal , Synchronize with Central , Dialog_Revit_PartitionsSaveToCentral"", _
""OK, IDOK""";
/// <summary>
/// Compact central model template.
/// </summary>
public static readonly string FileSyncCompactFile
= @"
' Compact central model
Jrn.CheckBox ""Modal , Synchronize with Central , Dialog_Revit_PartitionsSaveToCentral"", _
""Compact Central Model (slow), Control_Revit_ForceCompactCentralModel"", True";
/// <summary>
/// Release borrowed elements template.
/// </summary>
public static readonly string FileSyncBorrowedElements
= @"
' Release borrowed elements
Jrn.CheckBox ""Modal , Synchronize with Central , Dialog_Revit_PartitionsSaveToCentral"", _
""Borrowed Elements, Control_Revit_ReturnBorrowedElements"", True";
/// <summary>
/// Release borrowed worksets template.
/// </summary>
public static readonly string FileSyncUserСreatedWorksets
= @"
' Release borrowed worksets
Jrn.CheckBox ""Modal , Synchronize with Central , Dialog_Revit_PartitionsSaveToCentral"", _
""User-created Worksets, Control_Revit_RelinqUserCreatedPartitions"", True";
/// <summary>
/// Saving local file when sync template.
/// </summary>
public static readonly string FileSyncSaveLocalFile
= @"
' Saving local file when sync
Jrn.CheckBox ""Modal , Synchronize with Central , Dialog_Revit_PartitionsSaveToCentral"", _
""Save Local File before and after synchronizing with central, Control_Revit_SavePartitionsToLocal"", True";
/// <summary>
/// Execute external command template.
/// </summary>
public static readonly string ExecuteExternalCommand =
@"
' Execute external command
Jrn.RibbonEvent ""TabActivated:Add-Ins""
Jrn.RibbonEvent ""Execute external command:{0}:{1}""";
/// <summary>
/// Execute external command journal data template.
/// </summary>
public static readonly string ExternalCommandJournalData =
@"
' External command JournalData
Jrn.Data ""APIStringStringMapJournalData"" _";
/// <summary>
/// Dynamo command execute template.
/// </summary>
public static readonly string DynamoCommandExecute =
@"
' Launch dynamo
Jrn.RibbonEvent ""TabActivated:Manage""
Jrn.Command ""Ribbon"" , ""Launch Dynamo, ID_VISUAL_PROGRAMMING_DYNAMO""";
}
}