from_inventory_instance

classmethod DbNetwork.from_inventory_instance(parent_inventory, instance)[source]

Create a DbNetwork instance from a mss_data_server.geometry.inventory.Network instance.

Parameters
  • parent_inventory (mss_data_server.geometry.inventory.Inventory) – The parent inventory to which the DbNetwork is related.

  • instance (mss_data_server.geometry.inventory.Network) – The instance used to create the DbNetwork instance.

Returns

The created instance.

Return type

DbNetwork