Jump to content

Part Families using Para files


Recommended Posts

I'm currently using multiple para files to do part families, I would like just to have one para file that programs can read to run the part size parts. The only parameter that changes for the parts is the Z height of the part. For example, 1 inch, 2 inch, 3.5 inch and 6 inch. I'm using the vector function in each para file for the Z offset value.
Example;
Z_offset=vector(0,0,-25.0)
Z_offset=vector(0.00,0.00,0.00)
Z_offset=vector(0.000,0.000,38.900)
Z_offset=vector(0.00,0.00,102.00)

Each of those would be in separate para files for the part family, any idea or suggestions how I can put this into one para file or in the presettings of the programs.
Link to comment
https://qualityforum.zeiss.com/topic/9652-part-families-using-para-files/
Share on other sites

Here is how I have my presettings setup for my part families:
itemselected=inquireList("SQ3 Options","SQ3 1 Inch","SQ3 2 Inch","SQ3 3.5 Inch","SQ3 6 Inch")

if itemselected=="SQ3 1 Inch" then
readPCMFile("C:\PCM\Square\SQ3\SQ3_1 offsets.para")
endif
if itemselected=="SQ3 2 Inch" then
readPCMFile("C:\PCM\Square\SQ3\SQ3_2 offsets.para")
endif
if itemselected=="SQ3 3.5 Inch" then
readPCMFile("C:\PCM\Square\SQ3\SQ3_3.5 offsets.para")
endif
if itemselected=="SQ3 6 Inch" then
readPCMFile("C:\PCM\Square\SQ3\SQ3_6 offsets.para")

I have 13 programs that will use the same four variables:
Z1_offset=vector(0,0,-25.0)
Z2_offset=vector(0.00,0.00,0.00)
Z3_offset=vector(0.000,0.000,38.900)
Z4_offset=vector(0.00,0.00,102.00)

I would like to use one para file for all 13 programs. Not sure how to setup the variables for the features. Depending on what length of part it is, I need that variable to be loaded for the Z axis of some features.
Just an idea.

para file:

SQ3_1_Inch=vector(0,0,-25.0)
SQ3_2_Inch=vector(0.00,0.00,0.00)
SQ3_3p5_Inch=vector(0.000,0.000,38.900)
SQ3_6_Inch=vector(0.00,0.00,102.00)
PCM code:

readPCMFile("C:\PCM\Square\SQ3\offsets.para")  
itemselected=inquireList("SQ3 Options","SQ3_1_Inch","SQ3_2_Inch","SQ3_3p5_Inch","SQ3_6_Inch")
setParameterNamed("Z_offset",compute(itemselected))
×
×
  • Create New...