hexagon logo

SaveAs2 Function

There is a function available in the object library called "SaveAs2" which is supposed to allow you to save the part program with CAD as reference. I can't seem to get this to work. It saves the part program just fine but it also saves the CAD no matter what value I pass in the second argument. Has anyone else had any luck with this?

Function SaveAs2(Name As String, CadAsReference As Boolean) As Boolean
Member of PCDLRN.PartProgram
Saves the part program with the provided name. CadAsReference allows to save the CAD as reference to the original one
Parents
  • I've never used Imoprt>CAD By Reference before, but I assumed when you imported by reference the it would be a link to the original .CAD file, instead of a copy of it.


    I'd therefore assume this function does the same (except with saving). The CadAsReference argument is boolean so has to be true or false, I'm guessing if you do True, the .CAD file will be very small and simply act as a link to the original.

    Does that make sense?
Reply
  • I've never used Imoprt>CAD By Reference before, but I assumed when you imported by reference the it would be a link to the original .CAD file, instead of a copy of it.


    I'd therefore assume this function does the same (except with saving). The CadAsReference argument is boolean so has to be true or false, I'm guessing if you do True, the .CAD file will be very small and simply act as a link to the original.

    Does that make sense?
Children
No Data