Message 1 of 3
Using iLogic to Copy a Design and Purge iLogic after creation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've got a code that currently copies my design over and gives it a specific file name and I'm trying to run an iLogic Purge Rule after it has been created. See below:
Sub main Dim oDoc As Inventor.Document = ThisApplication.ActiveDocument Dim oPath As String = "C:\Custom Path\" 'Save Path Dim oNewName As String = Custom_PN 'Pre-Configured Part Number Dim oType As String = ".iam" Dim newDocPath As String = oPath & oNewName & oType oDoc.SaveAs(newDocPath, True) iLogicAuto.RunExternalRule(newDocPath, "iLogicPurge") End Sub
Both codes work by themselves already, however I don't know how to run an iLogic Rule that exists in an external component. I will likely never open this external assembly as it simply exists to drive design configurations within drawings.
Is there a way to do this? Or would I need to set up some sort of trigger in the new assembly? Not exactly sure what the best avenue to go down is...Any advice would be great.
Thanks!