Identifying errors in ilogic rules

Identifying errors in ilogic rules

Anonymous
Not applicable
272 Views
1 Reply
Message 1 of 2

Identifying errors in ilogic rules

Anonymous
Not applicable

Hi All,

 

Can anyone tell me, how can Identify in the ilogic rules the line that contains the error, please?.

 

Ilogic shows a description that does not say anyting, after one error.

It does not identify the line that contains the error like the normal environments of other languages.

 

Can anyone tell me, how can I detect the error that can I do in ilogic, please?.

 

Thanks in advance.

0 Likes
273 Views
1 Reply
Reply (1)
Message 2 of 2

Sergio.D.Suárez
Mentor
Mentor

Hi, one method that I use a lot is to place a text box, like the one detailed in red that provides by default ilogic.
You place this box at the beginning of your code, if the error is at the beginning in the first lines before the box, the text box will not appear, the error will appear.
If the error is after the text box, the text box will appear and then the error when executing the rule. Then you cut the text box and place it below in your code, and you run back and you notice if the text box appears first and then the error.
you must move the dialog box below until the error appears first.
This simple method will allow you to quickly find where there is an error and which line you should retouch.
I hope it will be useful to you as it has been for me. regards

 

	Dim oSheets As Sheets
	Dim oSheet As Sheet
	Dim oViews As DrawingViews
	Dim oView As DrawingView
	oSheets = oDoc.Sheets
	
	MessageBox.Show("Message", "Title")

	For Each oSheet In oSheets
		oViews = oSheet.DrawingViews
		For Each oView In oViews
			oView.ViewStyle = DrawingViewStyleEnum.kShadedDrawingViewStyle
			oView.DisplayTangentEdges = True
		Next
	Next

 


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn