[Br...] Posted September 1, 2022 Share Posted September 1, 2022 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 Share on other sites More sharing options...
[Cl...] Posted September 1, 2022 Share Posted September 1, 2022 Put them all in (one) notepad, then drop it in the program folder. 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) Link to comment Share on other sites More sharing options...
[Br...] Posted September 1, 2022 Author Share Posted September 1, 2022 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. Link to comment Share on other sites More sharing options...
[Cl...] Posted September 1, 2022 Share Posted September 1, 2022 I might be WAY off here? I haven't used any PCM in a long time. I thought that would work. Link to comment Share on other sites More sharing options...
[Is...] Posted September 2, 2022 Share Posted September 2, 2022 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)) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in