|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
RobotBuilder Deleting Code
I am using robot builder to learn command based programming but whenever I regenerate code it deletes all the code I have written. I am writing code outside of the autogenerated code area. Any suggestions?
|
|
#2
|
||||
|
||||
|
Re: RobotBuilder Deleting Code
is there an option in robotbuilder to build fresh vs doing an update? does it overwrite your code in all files or just some?
|
|
#3
|
|||
|
|||
|
Re: RobotBuilder Deleting Code
There aren't any settings in roboBuilder that I can find. It only overwrites the code that it generates. So if it generates a command "Open Gripper" and I put custom code in it then regenerate it, it wipes the code.
|
|
#4
|
||||
|
||||
|
Re: RobotBuilder Deleting Code
Where is your code in the file? Can you post a screenshot of the file in Eclipse before and after you generate code?
|
|
#5
|
|||
|
|||
|
Re: RobotBuilder Deleting Code
There are two pictures. One is before the auto gen and one is after the auto gen. The before pic has the code I added.
|
|
#6
|
|||
|
|||
|
Re: RobotBuilder Deleting Code
Quote:
That Step got me every time in the beginning. I now teach the new programmers this lesson but I warn them they will forget and learn the hard way. Its like saving before downloading or stepping away from the PC. The time your forget to the computer will freeze up. I suspect RobotBuilder opens the file(currently saved on the disk) writes the changes then closes it. Eclipse now see the change and refreshes with the data on the disk that never had your edits. Last edited by cpapplefamily : 09-01-2017 at 00:03. |
|
#7
|
||||||
|
||||||
|
Re: RobotBuilder Deleting Code
I can't duplicate this. Run robot builder from the command line and post the output. That would say whether RobotBuilder has incorrectly decided to overwrite the file or not.
|
|
#8
|
|||
|
|||
|
Re: RobotBuilder Deleting Code
So, when you generate a project with robot builder, it should give you comments along the lines of:
Code:
//START ROBOTBUILDER and //END ROBOTBUILDER |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|