Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone.
I found this code on the forum and saw something interesting I didn't fully understand.
Tried googling for it but couldn't find a good example.
This is the code:
Dim oAsmCompDef As AssemblyComponentDefinition oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'Iterate through all of the occurrences Dim oOccurrence As ComponentOccurrence For Each oOccurrence In oAsmCompDef.Occurrences Dim oName As String If oOccurrence.Name.Contains("family name") And oOccurrence.Name.Contains("instance number") Then oName = oOccurrence.Name If condition Then oOccurrence.Suppress Else oOccurrence.Unsuppress End If Exit For End If Next
In the code they use "If condition Then"
Could anyone explain this in a simple code?
Ty
Solved! Go to Solution.