In drawing, changing from one content center part to another content center part causes iPart factory warning

In drawing, changing from one content center part to another content center part causes iPart factory warning

shastu
Advisor Advisor
139 Views
0 Replies
Message 1 of 1

In drawing, changing from one content center part to another content center part causes iPart factory warning

shastu
Advisor
Advisor

I have a VBA routine that opens up a drawing of a content center part and then updates the view to look at a different content center part.  See below code:

 

Set DDoc = oApp.ActiveDocument
File = oName
response = oName3
For Each oRefFileDesc In oApp.ActiveEditDocument.File.ReferencedFileDescriptors
If Right(oRefFileDesc.FullFileName, 4) = ".ipt" Or _
Right(oRefFileDesc.FullFileName, 4) = ".IPT" Then
oRefFileDesc.ReplaceReference (File)
End If
Next
DDoc.update

 

As soon as the update happens, I see the iPart factory error telling me that the part "has been modified so that it is no longer a factory.  Views that referenced the factory will update to reference the part."  First off, content center parts are no longer iParts.  They were iParts when created, but once published they are no longer used the same way as an iPart.  So I don't understand why I am seeing this message.  I have done this before for other content center parts and never see this message so I don't know what is different about this one.  How can I avoid seeing this warning message?

0 Likes
140 Views
0 Replies
Replies (0)