getSDApi
@combeenation/custom-code-utils
Variable: getSDApi()
constgetSDApi: (sdCtrlName?) =>Promise<ApiInterfaceV2> =SdvBasicApi.getSDApi
Function for receiving the API of a shapediver instance.
This function will first wait until the communication plugin of the corresponding shapediver instance is ready.
Parameters
sdCtrlName?
string
If not configured, the first shapediver instance of the configurator is used
Returns
Promise<ApiInterfaceV2>