This functionality is only available for certain module packages.

You are here: Reference > SCRIPTING > Methods for components > Update extension points > updateExtensionsOneLevelOnly(Object obj, IMechatronicInstantiationContext context)

updateExtensionsOneLevelOnly(Object obj, IMechatronicInstantiationContext context)

Updates all extension points under the specified object, but not within existing or new child objects. obj can be a mechatronic component, Engineering.MechatronicRoot or a placeholder. An instantiation context can be provided for reuse, which makes sense, if several updates should be processed during one script run. It is important, to observe the application of pattern of the example code.

updateExtensionsOneLevelOnly(Object obj, IMechatronicInstantiationContext context)
Argument Object obj A mechatronic component, MechatronicRoot or placeholder, for which the extension points should be updated.
IMechatronicInstantiationContext context A reusable context for instantiation.
Return value