Check out this Python solution from @Paolo_Emilio_Serra1 https://forum.dynamobim.com/t/selection-method-all-objects-of-type/38954/14?u=keith.sowinski