# How to add URI to select the path of the file in python API?

**URL:** <https://forum.visualcomponents.com/t/how-to-add-uri-to-select-the-path-of-the-file-in-python-api/678>\
**Category:** General Questions\
**Created:** [May 20, 2019, 7:57am UTC](https://forum.visualcomponents.com/t/how-to-add-uri-to-select-the-path-of-the-file-in-python-api/678 "2019-05-20T07:57:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerrychen](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/839c29/32.png) [@jerrychen](https://forum.visualcomponents.com/u/jerrychen)\
**Post date:** [May 20, 2019, 7:57am UTC](https://forum.visualcomponents.com/t/how-to-add-uri-to-select-the-path-of-the-file-in-python-api/678/1 "2019-05-20T07:57:24Z")

</div>

Hi,

I want to select the file and get the path of this file. So I add the URI in my add-on, as follow picture. ![]()

![](https://vc-forum-files.s3-eu-west-1.amazonaws.com/uploads/hm_bbpui/14464/nkj0bfll1sgirjezse15a5x2v4xi2k3f.PNG)

But this VC\_URI type can’t select the file. This kind of VC type only can select the document. The following is my python code.

![](https://vc-forum-files.s3-eu-west-1.amazonaws.com/uploads/hm_bbpui/14464/sy3nlywt1ov8rfde52dw7mouu8vlov96.PNG)

After that, I found that there are only ten kinds of type in python API. I’m curious about these are all of the types? or it still have the other type that I have not find. Can someone teach me how to select the file and my curious? Thank you!!

---

<div class="post-metadata">

**Author:** ![anon59997772](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/5e9695/32.png) [@anon59997772](https://forum.visualcomponents.com/u/anon59997772)\
**Post date:** [January 20, 2020, 10:25am UTC](https://forum.visualcomponents.com/t/how-to-add-uri-to-select-the-path-of-the-file-in-python-api/678/2 "2020-01-20T10:25:08Z")

</div>

Hello Jerry,

What I understood is that you want to select a file through Python API and for that you have to write uri (file path).

Select variable first and assign file path as value to the variable.

example:

uri=‘file:///F:\work\rollerconveyor.vcmx’

app=getApplication()

app.load(uri)

Here, rollerconveyor component will load in 3D world.
