Caterpillar weld problems

Caterpillar weld problems

Anonymous
Not applicable
665 Views
2 Replies
Message 1 of 3

Caterpillar weld problems

Anonymous
Not applicable

hi, 

I have a Caterpillar weld added to an assembly in one of the views. My code (on .net) makes changes to the model and updates it to the drawing file. Also a .dwg file is generated. This process works fine on the PC where i develop the application, but when i try this out on a different PC, these weld symbols are not being reproduced. On opening the Inventor Drawing files on this new PC, the weld symbols are still missing, but if i open the view where i have added the weld and make a minor change and revert back ( say change master to default and back) and click OK, the weld symbols reappear!

 

I tried using an activeview.update(), but nothing changed.

 

In case it helps: When i run the application on the 2nd PC, i just have a copy of the Model files and the Inventor drawing files which are called by the VB.NET application, thats installed to the new PC.

 

Any way to overcome this?

0 Likes
Accepted solutions (1)
666 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

umm.. any related help please?

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

I found a workaround to this. Since it looked like the view needed a sort of a 'refresh', i made a modification to the code to enable something in the view.. for eg ThreadedFeatures, and do a save2. 

 

Private Sub modifyView(ByVal invDoc As DrawingDocument)
        Dim view_1 As DrawingView
        Dim sheet_1 As Sheet
       
        sheet_1 = invDoc.Sheets(1)
        For Each view_1 In sheet_1.DrawingViews
            If view_1.DisplayThreadFeatures = True Then
                view_1.DisplayThreadFeatures = False
            ElseIf view_1.DisplayThreadFeatures = False Then
                view_1.DisplayThreadFeatures = True
            End If
            invDoc.Save2()
        Next
    End Sub

 Poor coding practice.. but it works  😛

0 Likes