iLogic - Rule fails when in a sub-assembly

iLogic - Rule fails when in a sub-assembly

Anonymous
Not applicable
374 Views
2 Replies
Message 1 of 3

iLogic - Rule fails when in a sub-assembly

Anonymous
Not applicable

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.

0 Likes
Accepted solutions (1)
375 Views
2 Replies
Replies (2)
Message 2 of 3

LukeDavenport
Collaborator
Collaborator
Accepted solution
HI BenNeb43,
You want ThisApplication.ActiveEditDocument for that I think.
Hope this helps,
Luke
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks Luke!

 

I think this solves my issue!

 

Cheers

0 Likes