Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Prompt to select a component

1 REPLY 1
SOLVED
Reply
Message 1 of 2
DWhiteley
246 Views, 1 Reply

Prompt to select a component

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

 

}

1 REPLY 1
Message 2 of 2
JeromeBriot
in reply to: DWhiteley

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report