- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to access the full directory path of the External Rule that is currently being executed. (Same manner as ActiveDocument.FullFileName".)
For example, if the External Rule "RuleNamePath" were executing, the access would return something like this:
"C:\...\Libraries\iLogic\Experimental Rules\RuleNamePath.txt"
I hit a dead end.
I can obtain the base file name of the current executing External Rule with:
Dim thisRuleName As String = iLogicVb.RuleName ' Added circa Inventor 2019.
I can list all the External Rule directories:
iLogicVb.Automation.FileOptions.ExternalRuleDirectories
But that does not help me resolve the (common for me) case of duplicate file names under different subdirectories.
(For example work proceeds in parallel on a new version of a rule under "\Experimental Rules\" that has been released as a stable version under "\Production Rules\".)
I had hoped that this structure would provide exactly the path I was looking for -- but it returns the same calling document (IDW, IPT, IAM) for both Internal and External Rule cases:
iLogicVb.RuleDocument.FullFileName
Is there a way to obtain this path?
Thank you.
Solved! Go to Solution.