getBuildStyleById

pyslm.geometry.getBuildStyleById(models, mid, bid)

Returns the Buildstyle found from a list of Model given a model id and buildstyle id.

Parameters:
  • models (List[Model]) – A list of models

  • mid (int) – The selected model id

  • bid (int) – The selected Buildstyle id

Return type:

Optional[BuildStyle]

Returns:

The BuildStyle if found or None