- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm reciving about 50 messages that I have to press Close to each message when I open a Revit model. This is coming from linked dwg files in a linked model. It takes forever to open a model because of this.
Note: I am able to supress this message when the dwg is linked or reloaded into the host dwg model and if the model containing the dwgs is linked.
However the issue still remains when the model with the link is opened.
Note: That the dwg files are close to the base point and they display OK. It is only that some weird blocks in the dwg have origins far away that is causing the issue. I can't easily fix this, I can't explode the dwgs, I need to know how to supress this message when the Revit Model is opened.
Following is what I am using to supress the message:
Public Function OnStartup(ByVal objUIControlledApplication As Autodesk.Revit.UI.UIControlledApplication) As Autodesk.Revit.UI.Result Implements Autodesk.Revit.UI.IExternalApplication.OnStartup AddHandler objUIControlledApplication.DialogBoxShowing, AddressOf clsEventsApplication.SupressRevitMessage End Function Public Shared Sub SupressRevitMessage(ByVal sender As Object, ByVal e As Autodesk.Revit.UI.Events.DialogBoxShowingEventArgs) Dim e2 As Autodesk.Revit.UI.Events.TaskDialogShowingEventArgs = TryCast(e, Autodesk.Revit.UI.Events.TaskDialogShowingEventArgs) e2.Message.ToUpper.Contains("Some numerical data".ToUpper) Then If e2.OverrideResult(CInt(DialogResult.Cancel)) Then Exit Sub End If End Sub
Any help very much appretiated.
Kind Regards
David
Solved! Go to Solution.