This functionality is only available for certain module packages.

You are here: Reference > SCRIPTING > Methods for components > Operations on placeholders > Adding objects to placeholders > addToPlaceholderObjects(MechatronicObject mo, String placeholderName)

addToPlaceholderObjects(MechatronicObject mo, String placeholderName)

Places the mechatronic object mo on the placeholder with the name placeholderName in this mechatronic component.

addToPlaceholderObjects(MechatronicObject mo, String placeholderName)
Argument MechatronicObject mo A mechatronic object to place.
String placeholderName The name of the placeholder of the component.
Return value
Exception Throws a PlaceholderNotExistingException, if no placeholder with the specified name exists.