READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

randomly choosing building blocks in custom project

3 replies

Peter

Subscriber, bbp_participant, 5 replies.

Visit profile

1 year ago #288900

Hi, I want to build a custom project that goes through severL cycles (let’s say 10, for example).

In each cycle I want the build-task to select 100 building blocks randomly (i.e. each cycle has a new set of 100 randomly selected blocks).

How can this be done?

 

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #288987

Hi,

our dev says it can be done theoretically but requires a lot of programming. There is no easy way to do this now. We could possible add a specific action into custom projects that would simplify this.

1

Massimo Scapini

Subscriber, bbp_participant, customer, community, sq-ultimate, 59 replies.

Visit profile

1 year ago #290045

What you can do is to create different config files with different sets of blocks and create a simple script that load one different cfg file at each loop in a workflow.

I am doing this for both config files and templates ad it works pretty well.

You find two examples attached:

  1. The first two are for templates. They change the templates sequentialy every time it is invoked in the workflow. It can easily be adapted to change builder configs chosing the cfg file randomically instead of sequentially.
  2. The third one can be lauched from a windows command line and changes the builder config every hour chosing the cfg file randomically within a predefined set. Also this could be modified to be invoked by a step of workflow inside a loop instead of changing the cfg file periodically from outside the workflow.

Hope this helps somehow

NB. for 1. you have to install git.bash if you use Windows

 

0

Massimo Scapini

Subscriber, bbp_participant, customer, community, sq-ultimate, 59 replies.

Visit profile

1 year ago #290048

The scripts ..

Attachments:
You must be logged in to view attached files.

0

Viewing 3 replies - 1 through 3 (of 3 total)