twin_is_cross_platform#

static TwinRuntime.twin_is_cross_platform(file_path)#

Returns whether the loaded TWIN model is cross-platform (Windows and Linux) compiled or not.

Note that “zip_handler.namelist()” might return different contents depending on how the model archive was created. For example, FMUs and Twin models return the following list. Note that there are entries for binaries/linux64/ and binaries/win64/ folders.

[ ‘binaries/’, ‘documentation/’, ‘resources/’, ‘modelDescription.xml’, ‘binaries/linux64/’, ‘binaries/win64/’, ‘binaries/linux64/ModelWith_Min50_Max150.so’, ‘binaries/win64/ModelWith_Min50_Max150.dll’ ]

For a .tbrom model, the following list is returned. Note the absence of binaries/linux64/ and binaries/win64/ folders. [ ‘model.png’, ‘binaries/win64/rom24LP.dll’, ‘binaries/win64/RomViewerSharedLib.dll’, ‘binaries/linux64/rom24LP.so’, ‘binaries/linux64/RomViewerSharedLib.so’, ‘resources/properties.json’, ‘resources/binaryOutputField/basis.svd’, ‘resources/binaryOutputField/points.bin’, ‘resources/binaryOutputField/settings.json’, ‘resources/binaryOutputField/views.json’, ‘resources/binaryOutputField/operationsDefinition.json’, ‘resources/model.coreRom’, ‘modelDescription.xml’] ]

Parameters:
file_pathstr

File path to the TWIN file for the twin model.

Returns:
bool

True if the TWIN model has binaries for Windows and Linux