This content has been marked as final. Show 4 replies
This does seem to happen more with drawings created in 08 then opened in 09. The following macro will hide, then show all views on the active drawing sheet.
Dim swApp As SldWorks.SldWorks
Dim swDwg As SldWorks.DrawingDoc
Dim vViews As Variant
Dim vView As Variant
Dim myView As SldWorks.View
Dim sLinkedBom As String
Dim Msg As String
Set swApp = Application.SldWorks
If swApp.ActiveDoc.GetType <> swDocDRAWING Then
MsgBox "Active document is not a drawing."
Set swDwg = swApp.ActiveDoc
Msg = "Forced update for views on " & swDwg.GetCurrentSheet.GetName & vbCrLf
vViews = swDwg.GetCurrentSheet.GetViews
For Each vView In vViews
Set myView = vView
If Not (Left(myView.GetName2, 1) = "*") Then
myView.SetVisible False, False
myView.SetVisible True, False
Are both computers using the same graphics card?
Do you have the latest recommended drivers from SW?
Josh, Thanks for the macro!
Troy, both computers have nVidia cards, but different models. I have the current driver, we are working on geting the current for him.
Today I had a drawing that had the same problem- empty view with only dimensions showing. The hide/show trick didn't work to get the assembly to re-appear. I traced the problem back to a part that I retrieved from a display vendor's web site (Advantech). If I suppressed that part in the assembly, the view would re-appear. I replaced the part with a SolidWorks model, rather than the converted Step file, and the view problem went away.
Interesting side note- If I change the view display to Shaded rather than Hidden Line, the view will re-appear with the old part.
SolidWorks 2008 and holding...