- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The batch of code I'm working in is its own separate sub, so the DoorName and YZFace variables are defined elsewhere and then passed to it in the arguments.
I tried what you suggested and it worked however I just get an unspecified error when I try to add the mate.
What did work was just injecting the rule into the assembly file after I copy it! Seems like this solved all the reference issues and allows me to just revert to my original code.
There is also a simple way to cheat it if you don't have too many template files (my code copies a base template to start from). If you only have a couple of template files then you can just paste the rule into the originals and it will get copied with the whole document and you can just run it as an internal rule. Only downfall to this is that if the rule needs to be updated for any reason you have to update it at each template file which could tedious and tricky if you have more then a couple.
Best solution is to insert the rule after the base file is copied.
Thanks again for all your help I really appreciate it.