Jump to content

PCM - inquireList size


Recommended Posts

Yes, but No.

So i have a couple programs that i've used and learned a TON from, but they are customer supplied so i had no hand in their creation, but i did do a whole bunch of adding onto the back end.
When you start the program it launches a box that asks for you to select a part number from a dropdown, then it populates about 20 variables, deletes the old cad model, loads the new cad model, and sets which miniplan to use, as well as a host of other things.
It gets its data from n Excel file instead of a parafile, and the pop up box is an EXE.
I always thought the guys at customer site were genius for coming up with this system, but I just now realize that its either a prefab (boxed) program from Ellison, or possibly Ellison wrote the program.
So yes its possible to make a much larger box, i just wouldn't know the first step in how to do it.

Ok, so i just googled "Ellison technologies PCM Interface", and i see its a program they provide. Looks pricey......
https://www.ellisontechnologies.com/sit ... rview1.pdf

jhkghfghfgdsfd.JPG

Link to comment
https://qualityforum.zeiss.com/topic/6800-pcm-inquirelist-size/#findComment-27566
Share on other sites

Try to Combine Calypso with other Software:
Normally we use sharpDevelop to increase our possibilities; After to generate the *.exe you can call it with
systemCallWithWait()
Normally with these *.exe applications we generate text files as output and the results go to Calpyso by:
readPCMFile() 
or
readListFile()
SharpDevelop is a Freeware portable software (does not require Installation or administrator rights) and it has several program languages to select.

1375_b4748794ab6bfd227dac3c6c1d57d248.png
Link to comment
https://qualityforum.zeiss.com/topic/6800-pcm-inquirelist-size/#findComment-27570
Share on other sites

Please sign in to view this quote.


I wrote this example (maybe this is not the ideal application but it helps to demonstrate how easy is to combine calypso with other software):
part_num=""
VQuestion="Which part number would you like to run?"
VOptions="8mm" + cr() + "10mm" + cr() +"12mm" + cr() +"14mm" + cr() +"16mm" + cr() +"18mm" + cr() +"20mm" + cr() +"22mm"  + cr() +"24mm"  + cr() +"34mm" + cr() +"46mm" + cr() +"44mm" + cr() +"46mm" + cr() +"48mm" + cr() +"49mm" + cr() +"50mm" + cr() +"51mm" + cr() +"53mm"  //separated by cr()

deleteFile(getActualInspectionDir() + "\Qestion.txt")
addToFile(getActualInspectionDir() + "\Qestion.txt",VQuestion)

deleteFile(getActualInspectionDir() + "\Options.txt")
addToFile(getActualInspectionDir() + "\Options.txt",VOptions)


systemCallWithWait(getActualInspectionDir() + "\Combo.exe")
readPCMFile(getActualInspectionDir() + "\selected.para") 

message("The option selected was: " +  part_num )
1375_977d1173c62e1f4da89ec382c09661ae.png


The source code of the *.exe is inside of the program Folder:

Combobox.7z

Link to comment
https://qualityforum.zeiss.com/topic/6800-pcm-inquirelist-size/#findComment-27574
Share on other sites

  • 3 years later...
For a simple list dialog like in the original question you can also use the internal Smalltalk dialog functions. This allows you to set the number of lines to your needs:
part_num=executeCode("Dialog choose: 'Which part number would you like to run?' fromList: #('8mm' '10mm' '12mm' '14mm' '16mm' '18mm') values: #(8 10 12 14 16 18) lines: 25 cancel: 0")
display(part_num)
fromList: specifies the strings to be displayed
values: sets the values to be returned for the list items
lines: sets the maximum number of lines to be displayed in the dialog window. If your list is shorter than this value, the window will be as large as as needed to display the whole list. If it's larger, the window will display as many lines as you specify here and an additional scroll bar.
cancel: specifies the value to be returned when the cancel button is clicked.

There are more dialog functions that I have yet to explore. Maybe there are even better ones.
Link to comment
https://qualityforum.zeiss.com/topic/6800-pcm-inquirelist-size/#findComment-27578
Share on other sites

×
×
  • Create New...