iLogic Message Box Scroll?

iLogic Message Box Scroll?

mwighton
Collaborator Collaborator
498 Views
1 Reply
Message 1 of 2

iLogic Message Box Scroll?

mwighton
Collaborator
Collaborator

I have an iLogic code that scans my assembly and creates a list of parts and the number of occurances for each. The assembly's I usually work with are very large, 1000+ parts, and the message box that appears does not have a scroll on it. The results in the window go below where I can see.

 

Is there a way to add a scroll to the message box?

Is there a way for me to see these retults?

 

Thanks,

Did this post help out? Hope it did.
If so please use the 'Accept as Solution' or 'Kudos' Button below.
God Bless

Mwighton
0 Likes
499 Views
1 Reply
Reply (1)
Message 2 of 2

jingyi.liu
Alumni
Alumni

Hi Mwighton

I don't think messagebox support to add scroll bar. If you want to output more content, it would be better to export as a text file. Below is a sample for your reference, it will create a text file in the folder where you save the Inventor file.

Name=CStr(ThisDoc.PathAndFileName(False))
oWrite = System.IO.File.CreateText(CStr(Name)& ".txt")

i=1
While i<=100
SMessage=SMessage+"Hello Inventor"+"  "+CStr(i)+"  "+vbCrLf
i=i+1
End While

ThisDoc.Launch(CStr(Name)& ".txt")
oWrite.WriteLine("Output to Notepad")
oWrite.WriteLine(SMessage)
oWrite.Close()

  

Regards,



Jingyi Liu

Inventor Product Manager
0 Likes