Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Custom Post Processor

#1
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.

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
#2
You are referring to an intermediate file that is generated by RoboDK temporarily and allows you to link to your post processor for customization.

It is not possible to customize this intermediate file, but you can add suitable filters in your post processor instead and avoid generating messages in your program.
#3
Hello,

Thank you for your reply. Indeed, using if condition works well for my application.

Thanks a lot for the help.

Baptiste
#4
Great, thank you for your feedback.
  




Users browsing this thread:
1 Guest(s)