(2022-12-29, 19:28)Roland Melkert Wrote: You can get submodels trough the ref obect's getSubfile function.
But in the current alpha there is no (easy) way to know if it is a part or submodel.
The upcoming 1.7 Beta 1 has a whole bunch of type information functions though.
Hmm, that might be worth waiting for then…sounds like I'd have to, while I'm already looping the lines, also check whether each ref is a model and, if so, whether it has its own buffer exchange applied.
Alternate would be if I could just work at the file level—that is, apply the script to every line of the .ldr or .mpd file, and not be concerned with whether something is a submodel or not. Maybe I can already do that using io. scope? Or maybe it doesn't work that way…