Message 1 of 3

Not applicable
08-16-2015
03:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
To iLogic experts out there,
I'm having trouble getting the reference to the assembly using iLogic.
Example
Door.iam - Rule
A rule in the "Door.iam" that uses this command:
Set oAsmDoc = ThisApplication.ActiveDocument
When the Door.iam assembly is opened directly the rule works fine.
House.iam
- Door.iam:1 (sub assembly)
However when "Door.iam" is a sub-component within a parent assembly (eg; House.iam), the rule fails.
Suspected problem
I suspect this is because ThisApplication.ActiveDocument references the parent assembly "House.iam".
How can I make this work in both situations?
Please let me know if you require clarification, I can post an example assembly if necessary.
Solved! Go to Solution.