(2020-05-28, 11:51)Philippe Hurbain Wrote: As you say, it does work but you must "re-add" all parts between store and retrieve after the retrieve (tedious I agree). What really annoys me is "submodel wih moving parts" (eg. submodel where you must push pins after attaching to the main model), I have no other solution than to make two different submodels
So the command would have to be placed in the submodel, and would apply indefinitely (n=0, perhaps)…then be released somehow in the containing model. Maybe a FLOAT | UNFLOAT pair would allow this, and it looks like you would need to use an ID system to keep track of them. This could be similar to how LDCad handles group IDs (with local and global ones), so that they can be recursive.
My first thought was to make n take the form (a,b,c…), where each member in the set refers to a higher containing model. So if you had a sub-submodel, you could float a part in the sub-submodel, as well as in its containing submodel, then release it in the main model by having a setting of (0,0,2). (The 2 means the part is released in the step after the submodel is placed.)
But that method wouldn't allow for multiple instances of a submodel. With UNFLOAT, as with FLOAT, it would apply only to the next type 1 line, so it would release the floating part only in that instance of the submodel.