Manipulate ADT model using python

Ajinkya 60 Reputation points
2023-11-23T05:40:03.5033333+00:00

Based on my current understanding, it seems that we cannot directly work in the 3D environment. Instead, we need to create instances and models and then connect them to 3D scenes. However, my question is: can we manipulate data using Python in our instance and observe the changes in the 3D studio?

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
224 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 30,516 Reputation points
    2023-11-23T06:57:46.99+00:00

    Ajinkya Greetings!

    Based on my current understanding, it seems that we cannot directly work in the 3D environment. Instead, we need to create instances and models and then connect them to 3D scenes. However, my question is: can we manipulate data using Python in our instance and observe the changes in the 3D studio?

    Yes, you are correct that in Azure Digital Twins, you need to create instances and models and then connect them to 3D scenes.

    Azure Digital Twins provides a REST API that you can use to interact with your instance programmatically. You can use Python to make HTTP requests to the Azure Digital Twins REST API and manipulate the data in your instance. Once you have made changes to the data, you can then visualize those changes in the 3D studio.

    To get started with using the Azure Digital Twins REST API in Python, you can use the Azure SDK for Python. The Azure SDK for Python provides a set of libraries that make it easy to interact with Azure services, including Azure Digital Twins. You can use the Azure SDK for Python to authenticate with Azure, make HTTP requests to the Azure Digital Twins REST API, and manipulate the data in your instance. See Azure Digital Twins APIs and SDKs for more details.

    Once you have made changes to the data in your instance, you can then visualize those changes in the 3D studio by refreshing the scene. The 3D studio will automatically update to reflect the changes you have made to the data in your instance.

    I hope this helps! Let me know if you have any further questions.

    0 comments No comments