Sketchup 21.0.0 Site

# Extrude selected face by a distance (along normal) module MyTools class ExtrudeByDistance def self.extrude(face, distance) return unless face.is_a?(Sketchup::Face)

SUEntitiesRef entities = SU_INVALID; SUModelGetEntities(model, &entities); sketchup 21.0.0

To develop a feature for (part of the 2021 release), you’ll work with the SketchUp C++ SDK or Ruby API , depending on what you need. # Extrude selected face by a distance (along

std::cout << "Selected entities: " << count << std::endl; "Selected entities: " &lt

int main() SUInitialize(); print_selection_count(); SUTerminate(); return 0;

Load in SketchUp: Extensions > Ruby Console > File > Open or paste code. This requires the SDK. A minimal main.cpp for a command that prints selection count:

size_t count = 0; SUEntitiesGetNumSelected(entities, &count);