10-01-2025, 09:14 AM
Hello everyone,
I have a problem with RoboDK. I am currently trying to create a postprocessor for a specific requirement.
I understand that the class RobotPost allows you to define the functions that are called when the program is generated.
I have also seen that a temporary .py file is generated in my Temp folder when I generate the program. It is this file that imports and call the functions of the RobotPost class from my custom post pro python file.
My problem is this: I don't know how this Temp file is generated. In particular, I can find in the Temp file the commands :
I want to delete these commands in the temporary file to get a clean programm to send to the Robot, but I don't know how to do it.
Thank you in advance for your help in understanding how program generation works with custom post pros.
Baptiste
I have a problem with RoboDK. I am currently trying to create a postprocessor for a specific requirement.
I understand that the class RobotPost allows you to define the functions that are called when the program is generated.
Code:
class RobotPost(object)
I have also seen that a temporary .py file is generated in my Temp folder when I generate the program. It is this file that imports and call the functions of the RobotPost class from my custom post pro python file.
My problem is this: I don't know how this Temp file is generated. In particular, I can find in the Temp file the commands :
Code:
r.RunMessage(r"""Program generated by RoboDK v5.9.1 for KUKA KR 150 R3700 K ultra on 01/10/2025 10:47:17""",True)
r.RunMessage(r"""Using nominal kinematics.""",True)
I want to delete these commands in the temporary file to get a clean programm to send to the Robot, but I don't know how to do it.
Thank you in advance for your help in understanding how program generation works with custom post pros.
Baptiste