Skip to main content
Version: 2024.1

Add a Resource Driver to a Model

Description: Add a driver to a specific model.

Signature: add_driver_to_model(model_name, driver_name, driver_file_path)

Parameters:

NameDirectionRequiredDescription
model_nameInYesSpecify the model name you want the driver to be connected to
driver_nameInYesSpecify the name of the resource driver to be removed
driver_file_pathInYesSpecify the full path to the driver file (including file name). py and dll files are supported.

Sample:

`packageEditor.add_driver_to_model('Generic Chassis Model','ResDriver' ,'C:\\Work\\Drivers\\Resource-Service\\ResourceDriver.Compilation\\ResourceDriver.dll')`