Adding view rep breaks browser display

Adding view rep breaks browser display

CadUser46
Collaborator Collaborator
261 Views
0 Replies
Message 1 of 1

Adding view rep breaks browser display

CadUser46
Collaborator
Collaborator

When creating a new view rep in an assembly, it creates the rep fine but it seems to mess up the graphic alignment of the active tick box in the browser.

For instance i can see:

Reps

   View: Status

      Primary (Padlocked)

      Default (Ticked)

      Status (Unticked)

 

No amount of clicking through activating the reps gets them to fix themselves.  The reps also work fine, just the browser is messed up.  Im on 2023.4.1 Build 418 

Also, closing the model and reopening it seems to fix it but i'd rather not have to do that programmatically.

 

Dim oViewRep As DesignViewRepresentation
On Error Resume Next
Set oViewRep = odoc.ComponentDefinition.RepresentationsManager.DesignViewRepresentations.Item("Status")
'Debug.Print Err.Number
If Err.Number <> 0 Then
  Set oViewRep = odoc.ComponentDefinition.RepresentationsManager.DesignViewRepresentations.Add("Status", False)
odoc.BrowserPanes("Model").Refresh
  oViewRep.Activate
Else
  oViewRep.Activate
End If
oViewRep.ShowAll
DoEvents
Err.Clear
On Error GoTo 0

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes
262 Views
0 Replies
Replies (0)