Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Set Document by location of rule

J-Camper
Advisor

Set Document by location of rule

J-Camper
Advisor
Advisor

I am setting up a part with a local ilogic rule and I want the rule to run when I update value from parent assembly rule.  How can I define the Document that the local rule is in when said document is not the active document?  I thought "ThisDoc" was supposed to do that , but it doesn't seem to work at all.

 

The way the local rule is set up, If the quantity parameter is changed it should fire.  I want to be able to change the Parameter from an assembly rule, which controls multiple parts.

 

The rule works from the part level using "ThisApplication.ActiveDocument"  but won't work if the parent assembly is changing the parameter while it is active.

0 Likes
Reply
Accepted solutions (1)
533 Views
2 Replies
Replies (2)

JelteDeJong
Mentor
Mentor
Accepted solution

Just a quick note. You are wrote that "thisdoc" does not work. did you also try "Thisdoc.Document" or just "Thisdoc"?

can you share your code?

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes

J-Camper
Advisor
Advisor

Okay, I feel stupid now.  Didn't realize I needed to say ThisDoc.Document... Thank you

0 Likes