I'm trying to run a iLogic rule from an assembly to cycle through all the parts and SetTitleBlock based off of input boxes at the beginning of the rule. We are doing this so we can standardize the output on TitleBlocks when releasing a file using old parts and new parts. The problem is I have to use "ActiveSheet" when using this rule and I get an error saying that the assembly is not a drawing. I am currently opening the drawing and running an external rule within that drawing but it still doesn't work no matter what I'm trying. Does anyone know how to get around the "ActiveSheet" requirement in "SetTitleBlock" or how to get the rule to run from the Assembly?
Thanks for the help,
Mehran
Solved! Go to Solution.
Solved by Garrett.SudickyADMIN. Go to Solution.
Hi,
It sounds you ran your iLogic code in an assembly, but you assumed the ThisDoc is a drawing? Could you copy some codes to let us know what you are doing?
Thank you for the reply. I resolved this problem by deleting the titleblock out of the .idw I am opening and then using "AddTitleBlock" instead of "SetTitleBlock."