# Reimport With New File - Python

**URL:** <https://forums.unrealengine.com/t/reimport-with-new-file-python/482513>\
**Category:** Editor Scripting\
**Tags:** Python, reimport, unreal-engine, FBX, question\
**Created:** [May 5, 2021, 6:14pm UTC](https://forums.unrealengine.com/t/reimport-with-new-file-python/482513 "2021-05-05T18:14:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_92599d65](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_92599d65](https://forums.unrealengine.com/u/anonymous_user_92599d65)\
**Post date:** [May 5, 2021, 6:14pm UTC](https://forums.unrealengine.com/t/reimport-with-new-file-python/482513/1 "2021-05-05T18:14:32Z")

</div>

Hi there,

First time posting here, so I will do my best to describe my issue.

In Unreal you can right-click an asset in the content browser and select “Reimport With New File”, which reimports the asset pointing to a different source I believe?

I am trying to replicate that behaviour using Python and on an fbx asset. For example a rock fbx where I can change the source to the most recent version e.g. rock\_0002 and so on.

I have already managed to import the fbx, but haven’t managed to reimport pointing to a new source. I have googled every query I can think of but I haven’t found anything. In the python api there seems to be a factory [here](https://docs.unrealengine.com/en-US/PythonAPI/class/ReimportFbxStaticMeshFactory.html).

Any help would be appreciated and code examples would be even better.

---

<div class="post-metadata">

**Author:** ![Juice056](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Juice056](https://forums.unrealengine.com/u/Juice056)\
**Post date:** [July 22, 2021, 11:13am UTC](https://forums.unrealengine.com/t/reimport-with-new-file-python/482513/2 "2021-07-22T11:13:50Z")

</div>

I’m looking for the same thing. ☹ Any luck?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_92599d65](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_92599d65](https://forums.unrealengine.com/u/anonymous_user_92599d65)\
**Post date:** [July 23, 2021, 5:01pm UTC](https://forums.unrealengine.com/t/reimport-with-new-file-python/482513/3 "2021-07-23T17:01:22Z")

</div>

Hey! Yes, I managed to get somewhere with it.

There are two things you will need to do, first being setting the **unreal.AssetImportTask**  **editor property** ‘ **replace\_existing** ’ to **true**.

Secondly, you will need to set the **editor property** ‘ **destination\_name** ’ to the **existing filename** i.e. if you import model\_01.fbx and then want to reimport model\_02.fbx you need to set it to the **existing file model\_01.fbx**.

I hope this helps!

 ![344746-59a75acd99ade46942fbb6dcff7bc6a5fe71e0fa.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/4/5c4da900c05a216cf1bb8f56cb40c39863e4d194.png)
