You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/digital-twins/how-to-use-azure-digital-twins-explorer.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -415,17 +415,19 @@ You can use the import feature to add twins, relationships, and models to your i
415
415
The first step in importing a graph is creating a file representing the twins and relationships you want to add.
416
416
417
417
The import file can be in either of these two formats:
418
-
* The *custom Excel-based format* described in the rest of this section. This format allows you to upload twins and relationships.
419
418
* The *JSON-based format* generated on [graph export](#export-graph-and-models). This format can contain twins, relationships, and/or models.
419
+
* The *custom Excel-based format* described in the rest of this section. This format allows you to upload twins and relationships.
420
+
421
+
##### Create import file in Excel
420
422
421
-
To create a custom graph in Excel, use the following format.
423
+
To create a custom graph in Excel that can upload twins and relationships to Azure Digital Twins Explorer, use the following format.
422
424
423
425
Each row represents an element to create: either a twin, a relationship, or a combination of twin and corresponding relationship.
424
426
Use the following columns to structure the twin or relationship data. The column names can be customized, but they should remain in this order.
425
427
426
428
| ModelID | ID | Relationship (source) | Relationship Name | Init Data |
427
429
| --- | --- | --- | --- | --- |
428
-
| (Optional)<br>The DTMI model ID for a twin that should be created.<br><br>You can leave this column blank for a row if you want that row to create only a relationship (no twins). | (Required)<br>The unique ID for a twin.<br><br>If a new twin is being created in this row, this value will be the ID of the new twin.<br>If there's relationship information in the row, this ID will be used as the target of the relationship. | (Optional)<br>The ID of a twin that should be the source twin for a new relationship.<br><br>You can leave this column blank for a row if you want that row to create only a twin (no relationships). | (Optional)<br>The name for the new relationship to create. The relationship direction will be from the twin in column C to the twin in column B. | (Optional)<br>A JSON string containing property settings for the twin to be created. The properties must match the ones defined in the model from column A. |
430
+
| (Optional)<br>The DTMI ID of the model to use for the new twin. This model definition should already exist in the instance.<br><br>You can leave this column blank for a row if you want that row to create only a relationship (no twins). | (Required)<br>The unique ID for a twin.<br><br>If a new twin is being created in this row, this value will be the ID of the new twin.<br>If there's relationship information in the row, this ID will be used as the target of the relationship. | (Optional)<br>The ID of a twin that should be the source twin for a new relationship.<br><br>You can leave this column blank for a row if you want that row to create only a twin (no relationships). | (Optional)<br>The name for the new relationship to create. The relationship direction will be from the twin in column C to the twin in column B. | (Optional)<br>A JSON string containing property settings for the twin to be created. The properties must match the ones defined in the model from column A. |
429
431
430
432
Here's an example .xlsx file creating a small graph of two floors and two rooms.
0 commit comments