Hi, I'm trying to add C++ code to select a component. Can someone please help?
// get all components in this design
Ptr<Components> comps = design->allComponents();
if (!comps)
return false;
size_t count = comps->count();
if (count > 1) {
// prompt user to select component here and assign to comp
}
Solved! Go to Solution.
Solved by JeromeBriot. Go to Solution.
Hello,
Use the UserInterface.selectEntity method.
Jérôme Briot, Freelance engineer - Mechanical design and prototyping
3D Print Plus / Pro | IDF Import | GitHub To Fusion 360 | Tube Bending Data Exchanger | Slice Data Export
Memory Used | Basic Calculator | Check Computer Specifications | Import spline from any CSV file
Can't find what you're looking for? Ask the community or share your knowledge.