Changing the IPart file with referencing drawing using API gets a warning when I tried to open the drawing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have 2 IPart (XTR-P2-001, XTR-P2-002 ), The XTR-P2-002 is referencing by drawing. I created a copy of the 2 IPart to a new folder and update the iPartFactory.TableRows based on the copied IPart name using the code below
Dim iPartMemberDocument As Inventor.PartDocument = invDocument
Dim iPartMember As Inventor.iPartMember = iPartMemberDocument.ComponentDefinition.iPartMember
Dim Row As Integer = iPartMember.Row.Index
Dim iPartFactory As Inventor.iPartFactory = iPartMember.ParentFactory
Dim ColumnCount As Integer = iPartFactory.TableColumns.Count
For Column As Integer = 1 To ColumnCount
Dim OriginalValue As String = iPartFactory.TableRows(Row)(Column).Value
iPartFactory.TableRows(Row)(Column).Value = OriginalValue.Replace("XTR-P2-002", "00002586-02")
Next
Now, I updated my iPart ReferencingFiles to start using the Copied IPart including the drawing. If I try to open the drawing and gets this warning
Is there a way to fix this without generating a new Ipart using API?
Thank you.