Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this rule to copy file name to description for all parts and subassemblies in an assembly. However, at the end of the description I also get the occurrence number, such as ":2" if the part is used twice in an assembly. How can I copy only the filename?
Thank you!
'For each occurence in an assembly copy file name to description Dim oAsmCompDef As AssemblyComponentDefinition oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'Iterate through all of the occurrences in the assembly Dim oOccurrence As ComponentOccurrence For Each oOccurrence In oAsmCompDef.Occurrences Dim oName As String oName = oOccurrence.Name 'Fill in part Description from File Name iProperties.Value(oOccurrence.Name, "Project", "Description") = oName Next
Solved! Go to Solution.