11-02-2017
08:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-02-2017
08:57 AM
I really appreciate helping out. However, it's still not working. I attached the assembly and files.
Doing it exactly how you shown I get:
Error on Line 11 : 'oSubOccurrence1' is not declared. It may be inaccessible due to its protection level.
So if i try to declare it with the following code:
oCompDef = ThisDoc.Document.ComponentDefinition
oAssyOccurrences = ThisDoc.Document.ComponentDefinition.Occurrences
iLogicVb.RunRule("DescriptionEditor")
Dim oSubOccurrence1 As ComponentOccurrence
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAssyOccurrences
If oSubOccurrence1.DefinitionDocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
iLogicVb.RunExternalRule("DescriptionEditor")
End If
Nexti still get:
RunRule: Cannot find a rule with the name: "DescriptionEditor".
Did everything you said: