Message 1 of 6
Identify Weld Occurrence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HI,
I been identifying files inside an assembly to get certain properties and data.
The problem i Have is that a Weldment Assembly identifies a Weld as an occurrence, with no filename
I need my browser to be driven by filenames so this returns an error for me.
I want to skip the Weld Occurrences but i cant find anything of the forum or other blogs how to identify a weld.
This is what i have so far:
SyntaxEditor Code Snippet
Dim oDoc As AssemblyDocument oDoc = ThisDoc.Document Dim Occurrences As ComponentOccurrences Dim oOcc_A As ComponentOccurrence Dim oCompDef As AssemblyComponentDefinition oCompDef = oDoc.ComponentDefinition For Each oOcc_A In oCompDef.Occurrences If Not TypeOf oOcc_A.Definition Is kWeldsComponentDefinitionObject Then MessageBox.Show(oOcc_A.Name, "") End If Next