Setup Sheet Modificaion

james_eppARR4H
Explorer

Setup Sheet Modificaion

james_eppARR4H
Explorer
Explorer

So Ive already been down the path of using the excel sheet to setup my own custom setup sheet.  I have it all organized how I want but having one issue. My part dimensions are metric, but my stock dimensions are inches.  I cant figure out how to get both to be inches. Can someone help me with this? Thank you!

james_eppARR4H_1-1707855767606.png

 

0 Likes
Reply
Accepted solutions (1)
238 Views
1 Reply
Reply (1)

boopathi.sivakumar
Autodesk
Autodesk
Accepted solution

Hi @james_eppARR4H 

It seems like a bug in the generic post as well I will make a ticket to fix it
To fix it edit the .cps file

find for the following line of codes

  programInfo["program.partLowerX"] = partLowerX;
  programInfo["program.partLowerY"] = partLowerY;
  programInfo["program.partLowerZ"] = partLowerZ;
  programInfo["program.partUpperX"] = partUpperX;
  programInfo["program.partUpperY"] = partUpperY;
  programInfo["program.partUpperZ"] = partUpperZ;
  programInfo["program.partDX"] = partUpperX - partLowerX;
  programInfo["program.partDY"] = partUpperY - partLowerY;
  programInfo["program.partDZ"] = partUpperZ - partLowerZ;

 and change it to

 

  programInfo["program.partLowerX"] = toPreciseUnit(partLowerX, MM);
  programInfo["program.partLowerY"] = toPreciseUnit(partLowerY, MM);
  programInfo["program.partLowerZ"] = toPreciseUnit(partLowerZ, MM);
  programInfo["program.partUpperX"] = toPreciseUnit(partUpperX, MM);
  programInfo["program.partUpperY"] = toPreciseUnit(partUpperY, MM);
  programInfo["program.partUpperZ"] = toPreciseUnit(partUpperZ, MM);
  programInfo["program.partDX"] = toPreciseUnit(partUpperX - partLowerX, MM);
  programInfo["program.partDY"] = toPreciseUnit(partUpperY - partLowerY, MM);
  programInfo["program.partDZ"] = toPreciseUnit(partUpperZ - partLowerZ, MM);

 Save the post and test now it should respect the units


Boopathi Sivakumar
Senior Technology Consultant

0 Likes