Message 1 of 7
Derived Component names
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way to change the names of the parts in the browser of a derived part? Randomly, some of them have gotten .ipt on the end of them, like filenames, but not all of them. This messes me up when I try to look up a derived component in code. For example, this code:
SyntaxEditor Code Snippet
Dim dpcs As DerivedPartComponents dpcs = ThisApplication.ActiveDocument.ComponentDefinition.ReferenceComponents.DerivedPartComponents Dim s As String Dim i As Integer = 0 For Each dpc As DerivedPartComponent In dpcs i = i + 1 If i > 1 Then s = s & Chr(10) s = s & dpc.Name Next MsgBox(s)
Produces the results in the attached screen shot: some of the parts have .ipt extensions, and some don't. Nothing I've tried has enabled me to change the names. The Name property of DerivedPartComponents is read-only, too.
Any suggestions?