Creating a component within a component

Trying to create a component within a component:

@truss_component = Sketchup.active_model.definitions.add “TIMBER_KING_TRUSS”

and bunch of code and then this …

@bolt_component = @truss_component.add “BOLT_ASSEMBLY_#{@Boltsize}”

Does not seem to work.

@bolt_component needs to be added to the Model Definitions first then add an instance to @truss_component.entities.

1 Like

That is the ticket.

As always thank-you for your unlimited SU knowledge and your willingness to share it.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.