Access the iLogic log externally

Access the iLogic log externally

AlexFielder
Advisor Advisor
308 Views
2 Replies
Message 1 of 3

Access the iLogic log externally

AlexFielder
Advisor
Advisor

Clearly my search-fu on these forums is deserting me today, but say for instance I have access to the iLogic addin externally, from another application - in this case PowerShell:

 

Is it possible to read (and therefore act upon) the output from the iLogic log- watching for "handled" or "unhandled" errors etc.

 

Thanks in advance.

 

Alex.

0 Likes
309 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @AlexFielder.  I haven't messed with it much, but here are a few pointers from the iLogic side that you may or may not already be aware of.

'get or set a String
iLogicVb.Automation.LogControl.Folder

'ReadOnly String
iLogicVb.Automation.LogControl.FullFileName

'Sub, supply a String
iLogicVb.Automation.LogControl.SaveLogAs

'As Autodesk.iLogic.Interfaces.ExceptionsLog
Dim oELog As ExceptionsLog = iLogicVb.Automation.RuleExceptionsLog
oExs = oELog.Exceptions '(As IEnumerable)

WCrihfield_0-1667234851514.png

WCrihfield_1-1667234874807.png

As I'm sure you are aware, what you see after iLogicVb.Automation in an iLogic rule is similar to what will be available externally when you get the Automation object of the iLogic AddIn.  So, I'm hoping this will help a little.

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 3

AlexFielder
Advisor
Advisor

thanks @WCrihfield that looks like just the ticket. I shall report back with my findings 🙂

0 Likes