Update browser after replace reference in Presentation file

Update browser after replace reference in Presentation file

j_steenbergen
Enthusiast Enthusiast
376 Views
2 Replies
Message 1 of 3

Update browser after replace reference in Presentation file

j_steenbergen
Enthusiast
Enthusiast

I've made a little vba code which replaces the model reference in a Presentation file and it works like a charm.

 

But there's one small issue, which is that the name of the referenced model in the browser isn't updated until you reopen the document. If you expand the model you see the right children though.

 

The model name can't be manually changed so I was wondering if there's any possibility to update the model browser in a Presentation file through VBA?

0 Likes
377 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor

in some cases it helps to reset the display name. that can be done be setting the displayname to an emty string. something like this:

Dim oDoc As PresentationDocument
oDoc.DisplayName = ""

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

j_steenbergen
Enthusiast
Enthusiast

Thanks but it doesn't concern the displayname of the file in the model brower (filename.ipn). It's about the name of the referenced model (filename.iam), which you see if you expand the explosion in the model browser. It can be reached through:

 

ThisApplication.ActiveDocument.File.ReferencedFileDescriptors(1)

But using displayname for the item returns an error, and if I look at the locals window it's because the item doesn't have a displayname property. It does have a "RelativeFileName" property though, but that's read-only.

0 Likes