Is there a shortcut to delete deactivated "activity preferred starting times"?

Started by infoo_, February 22, 2023, 09:46:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

infoo_

Hello

Everytime I want to upload a FET file into the forum, I want to delete unnecessary "activity preferred starting times" constraints that were from past files for size purposes.

I can do Remove + Enter every time, but it is not as fast as I would expect (my file has ~300 unused activities plus files with past generations it can have ~600 unused activities).

I need to know how to delete them when the constraints are and are not deactivated more quickly.

I tried searching inside the XML FET file and deleting some <tags>, but I don't quite understand what tags I should remove.

I seemed to see that they were in different positions in the code, so I'm sure that I can delete something wrong.

Thank you!

Volker Dirr

1. For file size purpose just do a right click on the file and compress it as zip file.

2. For "past generation" purpose. In fact i never use/merge the "generated" file from the fet-results with the fet file i am working with. So the fet file that i am working with never contains automatic locking constraints from fet.

Then, depending on your data/constraint you want to remove:
a) Go to FET -> Data -> Timeconstraint -> Activities -> Preffered times -> activity preferred starting times"
There filter the activities that you want to delete. Then select the first activity with the mouse, press one time with the mouse button on remove, but then don't use the mouse anymore. Only hold down the "enter/return" key until all activities are deleted (can still need some time if there are many)

or
b) Go to FET -> Timetable -> Advanced Lock/Unlock and use one of the options there to unlock activities.

infoo_

Hi Volker

Quote from: Volker Dirr on February 22, 2023, 10:12:04 PMa) Go to FET -> Data -> Timeconstraint -> Activities -> Preffered times -> activity preferred starting times"
There filter the activities that you want to delete. Then select the first activity with the mouse, press one time with the mouse button on remove, but then don't use the mouse anymore. Only hold down the "enter/return" key until all activities are deleted (can still need some time if there are many)

Actually I do this, but it is tedious. As I said I need to do it ~600 times for unused preferred starting times constraints.

That's why I ask if there is a better shortcut.

Volker Dirr

hmm...
So you want/need variant b) also for permanently lock activities?
So variant b) need option to unlock not permanently locked?
@Liviu: Maybe this is an item for the TODO

hmm... In my opinion you should remove those constraints and don't keep them at all. Why do you think they can help you?

infoo_

Sorry, I didn't mean permanently lock activities.

As a side note, I don't know what are these for. I read the help but I didn't understand what are permanently lock activities. :(

I mean finding a way to delete "activity preferred starting times" at once, without using "enter/return" key.

Liviu Lalescu

Just go to advanced lock/unlock, and unlock all in time (or in time and space). It will remove all not permanently locked constraints.

infoo_

Quote from: Liviu Lalescu on February 23, 2023, 07:08:32 AMJust go to advanced lock/unlock, and unlock all in time (or in time and space). It will remove all not permanently locked constraints.

I will try. Thank you!