Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: werft60

Again...are you defining those unquoted variables (DoorName, YZFace) somewhere, or are they the names of local parameters?

Just in case I'm not thinking clearly, and the part where you create the geometry proxy doesn't need to be done from a top level component...

Try changing this:

oSubAsm.CreateGeometryProxy(oNamedFace, oNFaceProxy)

to this:

oSubComp.CreateGeometryProxy(oNamedFace, oNFaceProxy)

 and see if that helps.

Yes, you can insert a rule into a document.  There are a couple ways to do this.  One is to copy it from one document to another.  Another way is to create the rule from a text file or have the text for it directly within the rule that is injecting it into the other document.  Here is a link to one of my contribution posts that shows you how to create a rule and inject it into a document.  There are also other similar rules for copying iLogic rules from one document to another within my contribution posts, and elsewhere here on the forums.

 

As for running an external rule on a specific document, yes, it is also possible.  Look under 'iLogicVb.Automation.RunExternalRule().

Wesley Crihfield

EESignature

(Not an Autodesk Employee)