Skip to main content

getSDApiSync

@combeenation/custom-code-utils


Variable: getSDApiSync()

const getSDApiSync: (sdCtrlName?) => ApiInterfaceV2 | undefined = SdvBasicApi.getSDApiSync

Function for receiving the API of a shapediver control instance.
This function will not wait for any shapediver event, instead it will return undefined immediatly, if there is no API available at this time.

Parameters

sdCtrlName?

string

If not configured, the first shapediver instance of the configurator is used

Returns

ApiInterfaceV2 | undefined