# constraints export

**URL:** <https://forums.unrealengine.com/t/constraints-export/712607>\
**Category:** Asset Creation\
**Tags:** realityscan\
**Created:** [July 7, 2022, 12:22pm UTC](https://forums.unrealengine.com/t/constraints-export/712607 "2022-07-07T12:22:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 7, 2022, 12:22pm UTC](https://forums.unrealengine.com/t/constraints-export/712607/1 "2022-07-07T12:22:36Z")

</div>

Is there a function for constraints export and import? Now the created model is very different from the actual size

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 7, 2022, 1:46pm UTC](https://forums.unrealengine.com/t/constraints-export/712607/2 "2022-07-07T13:46:11Z")

</div>

Hi [yeyuchuan 1](https://forums.unrealengine.com/hc/en-us/profiles/369521526799-yeyuchuan-1),

to import constraints you can use the Distance Definitions button:

Where the txt file will look like this:

Constraint\_name,Point\_1,Point\_2,Defined\_distance

Example:

_Exported,GCPb,GCPc,28.27051162719727_

To export the distances you need to add this format into exported files or export it as report.

For report:

Add these lines into C:\Program Files\Capturing Reality\RealityCapture\report.xml

\<!DOCTYPE html\>  
\<html\>

\<head\>  
&nbsp; &nbsp; \<meta name=“GENERATOR” content=“Epic Games Slovakia s.r.o.” /\>  
&nbsp; &nbsp; \<meta charset=“UTF-8”\>  
&nbsp; &nbsp; \<title\>RealityCapture Selected Component Report\</title\>  
&nbsp; &nbsp; \<!–[if IE]\>\<meta http-equiv=“X-UA-Compatible” content=“IE=10”/\>\<![endif]–\>  
&nbsp; &nbsp; \<style\>  
&nbsp; &nbsp; &nbsp; &nbsp; $Include(“Reports\styles\style.css”)  
&nbsp; &nbsp; &nbsp; &nbsp; $Include(“Reports\styles\colors.css”)  
&nbsp; &nbsp; &nbsp; &nbsp; $Include(“Reports\styles\svg.css”)  
&nbsp; &nbsp; \</style\>  
\</head\>  
\<body\>

&nbsp; &nbsp;&nbsp;  
&nbsp; &nbsp; \</div\>  
&nbsp; &nbsp; $EchoOff(  
&nbsp; &nbsp; $Declare( “constraintsInCurrentComponentCount”, 0 )  
&nbsp; &nbsp; $ExportDistanceConstraints(  
&nbsp; &nbsp; $If(InCurrentComponent==true,  
&nbsp; &nbsp; $Set( “constraintsInCurrentComponentCount”, constraintsInCurrentComponentCount + 1 )  
&nbsp; &nbsp; )  
&nbsp; &nbsp; )  
&nbsp; &nbsp; )  
&nbsp; &nbsp; $If(constraintsInCurrentComponentCount \> 0,  
&nbsp; &nbsp; \<div\>  
&nbsp; &nbsp; &nbsp; &nbsp; \<p class=“componentSubTitle”\>$Localize(“ALL\_SELECTED\_CONSTRAINTS”, “All / Selected Constraints”)\</p\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<table class=“listTable”\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<tr\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“NAME”, “Name”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>A\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>B\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“DEFINED\_DISTANCE”, “Defined distance”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“CALCULATED\_DISTANCE”, “Calculated distance”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“DISTANCE\_ERROR”, “Distance error”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</tr\>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ExportDistanceConstraints(  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $If(InCurrentComponent==true,  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<tr\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(constraintName)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(pointA)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(pointB)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(definedDistance:.3f) $(constraintCSUnitShort) \<sub\>+/- $(definedAccuracy:.3f)\</sub\>\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(calculatedDistance:.3f) $(constraintCSUnitShort) \</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(distanceError:.3f) $(constraintCSUnitShort)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</tr\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )\<!-- end of “$(InCurrentComponent)”==“$(true)” –\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )\<!-- end of ExportDistanceConstraints –\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</table\>  
&nbsp; &nbsp; \</div\>  
&nbsp; &nbsp; )\<!-- end of constraintsInCurrentComponentCount \> 0 –\>  
&nbsp; &nbsp;  
\</body\>  
\</html\>

and attach that html file into C:\Program Files\Capturing Reality\RealityCapture\Reports

Then you will be able to export constraint’s distances.

&nbsp;

What do you mean that model is very different? Is it a big model or a small one? You have error here max 4 cm. Did you realign the alignment or just updated after distance definition?

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 3:46am UTC](https://forums.unrealengine.com/t/constraints-export/712607/3 "2022-07-08T03:46:03Z")

</div>

I am the result after the constraint distance, the model before the constraint is 30.00000m，

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 4:06am UTC](https://forums.unrealengine.com/t/constraints-export/712607/4 "2022-07-08T04:06:32Z")

</div>

HI

[&nbsp;](https://forums.unrealengine.com/hc/en-us/profiles/374823146340-Ondrej-Trhan-CR)

I still have a problem. This happens after the folder photos I imported are aligned. The photos are in the same group and the results are different each time.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 6:02am UTC](https://forums.unrealengine.com/t/constraints-export/712607/5 "2022-07-08T06:02:29Z")

</div>

hi&nbsp;

When I copy this section, access is denied, what should I do?

```
<format id="{2F99820A-23FB-43A5-977B-37F0BD473D00}" mask="*.html" descID="9365" desc="Selected Component Report_distance" writer="CapturingReality.Export.ReportWriter" supportsGeoref="0" requires="component">
    <hint strId="9365">Report which shows the distances in the table.</hint>
    <body>$Include("Reports\SelectedComponent_distance.html")</body>
  </format>

```

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 6:22am UTC](https://forums.unrealengine.com/t/constraints-export/712607/6 "2022-07-08T06:22:49Z")

</div>



---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 6:33am UTC](https://forums.unrealengine.com/t/constraints-export/712607/7 "2022-07-08T06:33:37Z")

</div>

Yes, it is possible that the model is 30 m before using constraint as photogrammetry is basically without scale. How precise were measured the distances for your constraints? Are you using Align or Update when you set those constraints?

Each new alignment is slightly different. Are you using XMPs in your process?

Can you show me that access denied error? Did you created the html file? It should be named SelectedComponent\_distance.html and should look like this:&nbsp;

\<!DOCTYPE html\>  
\<html\>

\<head\>  
&nbsp; &nbsp; \<meta name=“GENERATOR” content=“Epic Games Slovakia s.r.o.” /\>  
&nbsp; &nbsp; \<meta charset=“UTF-8”\>  
&nbsp; &nbsp; \<title\>RealityCapture Selected Component Report\</title\>  
&nbsp; &nbsp; \<!–[if IE]\>\<meta http-equiv=“X-UA-Compatible” content=“IE=10”/\>\<![endif]–\>  
&nbsp; &nbsp; \<style\>  
&nbsp; &nbsp; &nbsp; &nbsp; $Include(“Reports\styles\style.css”)  
&nbsp; &nbsp; &nbsp; &nbsp; $Include(“Reports\styles\colors.css”)  
&nbsp; &nbsp; &nbsp; &nbsp; $Include(“Reports\styles\svg.css”)  
&nbsp; &nbsp; \</style\>  
\</head\>  
\<body\>

&nbsp; &nbsp;&nbsp;  
&nbsp; &nbsp; \</div\>  
&nbsp; &nbsp; $EchoOff(  
&nbsp; &nbsp; $Declare( “constraintsInCurrentComponentCount”, 0 )  
&nbsp; &nbsp; $ExportDistanceConstraints(  
&nbsp; &nbsp; $If(InCurrentComponent==true,  
&nbsp; &nbsp; $Set( “constraintsInCurrentComponentCount”, constraintsInCurrentComponentCount + 1 )  
&nbsp; &nbsp; )  
&nbsp; &nbsp; )  
&nbsp; &nbsp; )  
&nbsp; &nbsp; $If(constraintsInCurrentComponentCount \> 0,  
&nbsp; &nbsp; \<div\>  
&nbsp; &nbsp; &nbsp; &nbsp; \<p class=“componentSubTitle”\>$Localize(“ALL\_SELECTED\_CONSTRAINTS”, “All / Selected Constraints”)\</p\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<table class=“listTable”\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<tr\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“NAME”, “Name”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>A\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>B\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“DEFINED\_DISTANCE”, “Defined distance”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“CALCULATED\_DISTANCE”, “Calculated distance”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<th\>$Localize(“DISTANCE\_ERROR”, “Distance error”)\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</tr\>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ExportDistanceConstraints(  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $If(InCurrentComponent==true,  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<tr\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(constraintName)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(pointA)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(pointB)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(definedDistance:.3f) $(constraintCSUnitShort) \<sub\>+/- $(definedAccuracy:.3f)\</sub\>\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(calculatedDistance:.3f) $(constraintCSUnitShort) \</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<td\>$(distanceError:.3f) $(constraintCSUnitShort)\</td\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</tr\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )\<!-- end of “$(InCurrentComponent)”==“$(true)” –\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )\<!-- end of ExportDistanceConstraints –\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</table\>  
&nbsp; &nbsp; \</div\>  
&nbsp; &nbsp; )\<!-- end of constraintsInCurrentComponentCount \> 0 –\>  
&nbsp; &nbsp;  
\</body\>  
\</html\>

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 6:37am UTC](https://forums.unrealengine.com/t/constraints-export/712607/8 "2022-07-08T06:37:35Z")

</div>

Try to copy that file to your desktop, add those lines, save it and then copy that report.xml back to RealityCapture folder.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 7:59am UTC](https://forums.unrealengine.com/t/constraints-export/712607/9 "2022-07-08T07:59:48Z")

</div>

hi

[Ondrej Trhan CR](https://forums.unrealengine.com/hc/en-us/profiles/374823146340-Ondrej-Trhan-CR)

Thank you very much. The first step is already ok. The second step is not understood.

Here is to edit an html myself？？？

and create html file using these lines:

```
$EchoOff( $Declare( "constraintsInCurrentComponentCount", 0 ) $ExportDistanceConstraints( $If(InCurrentComponent==true, $Set( "constraintsInCurrentComponentCount", constraintsInCurrentComponentCount + 1 ) ) ) ) $If(constraintsInCurrentComponentCount > 0,

```

$Localize(“ALL\_SELECTED\_CONSTRAINTS”, “All / Selected Constraints”)

```
$ExportDistanceConstraints( $If(InCurrentComponent==true, ) )

```

| $Localize(“NAME”, “Name”) | A | B | $Localize(“DEFINED\_DISTANCE”, “Defined distance”) | $Localize(“CALCULATED\_DISTANCE”, “Calculated distance”) | $Localize(“DISTANCE\_ERROR”, “Distance error”) |
| --- | --- | --- | --- | --- | --- |
| $(constraintName) | $(pointA) | $(pointB) | $(definedDistance:.3f) $(constraintCSUnitShort)&nbsp;+/- $(definedAccuracy:.3f) | $(calculatedDistance:.3f) $(constraintCSUnitShort) | $(distanceError:.3f) $(constraintCSUnitShort) |

```
)

```

and attach that html file into C:\Program Files\Capturing Reality\RealityCapture\Reports

Then you will be able to export constraint’s distances.

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 8:10am UTC](https://forums.unrealengine.com/t/constraints-export/712607/10 "2022-07-08T08:10:01Z")

</div>

You need to create your own html file using that lines. It is better visible in my previous comment, where are all lines. Just copy those, paste it to Notepad or some other editor and save it as html. As I wrote, the name have to be SelectedComponent\_distance.html.

If it won’t work for you I can send you already created html file.

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 8:36am UTC](https://forums.unrealengine.com/t/constraints-export/712607/11 "2022-07-08T08:36:35Z")

</div>

See if I didn’t write it right?

I have done what you said, but the export is not successful.

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 8:52am UTC](https://forums.unrealengine.com/t/constraints-export/712607/12 "2022-07-08T08:52:17Z")

</div>

Hi,

I sent you a mail with the file. You didn’t use everything what I sent you. Also, you need to have created constraints to export them.&nbsp;

May I ask why you want to export those distances?

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 8:59am UTC](https://forums.unrealengine.com/t/constraints-export/712607/13 "2022-07-08T08:59:36Z")

</div>

thanks

I need the actual size of the model and want to use the cli to unify our massive photo modeling

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 9:16am UTC](https://forums.unrealengine.com/t/constraints-export/712607/14 "2022-07-08T09:16:51Z")

</div>

If you need it then you don’t need to export the distances. You need to import or define one. I saw that you have some points on the ground:

Do you know distances or coordinates of those points?

If so, just write the coordinates for each point and set them as ground control.

If you know just distances, then define a wanted distance between them and realign the project again:

Also check if you have set camera priors in the alignment settings. If it is set as yes, then set them to no after distance definition.

Did you see this tutorial (is from older release, but the principles are still the same: [https://www.youtube.com/watch?v=5VyYLaNxHz0](https://www.youtube.com/watch?v=5VyYLaNxHz0)

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 9:25am UTC](https://forums.unrealengine.com/t/constraints-export/712607/15 "2022-07-08T09:25:10Z")

</div>

hi

appears after import

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 9:28am UTC](https://forums.unrealengine.com/t/constraints-export/712607/16 "2022-07-08T09:28:25Z")

</div>

How does look the file which you are trying to import?

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 9:39am UTC](https://forums.unrealengine.com/t/constraints-export/712607/17 "2022-07-08T09:39:12Z")

</div>

The export is an html file. After I imported it, it became just like that.

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 9:43am UTC](https://forums.unrealengine.com/t/constraints-export/712607/18 "2022-07-08T09:43:44Z")

</div>

To import distances/constraints it has to TXT file, not HTML.

As I wrote you in first response:

_to import constraints you can use the Distance Definitions button:_

_Where the txt file will look like this:_

_Constraint\_name,Point\_1,Point\_2,Defined\_distance_

_Example:_

_Exported,GCPb,GCPc,28.27051162719727_

&nbsp;

---

<div class="post-metadata">

**Author:** ![Anonymous\_a955c6af49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a955c6af49](https://forums.unrealengine.com/u/Anonymous_a955c6af49)\
**Post date:** [July 8, 2022, 9:52am UTC](https://forums.unrealengine.com/t/constraints-export/712607/19 "2022-07-08T09:52:26Z")

</div>

Do you want me to create the txt text by myself, fill it in as you said?

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [July 8, 2022, 10:00am UTC](https://forums.unrealengine.com/t/constraints-export/712607/20 "2022-07-08T10:00:31Z")

</div>

If you want to use that file for distance definition, then you need to create it.

Do you have now one project or more? As you exported distances, are you trying give them back into the same project? It is not necessary… If you defined the distances already, then after new alignment they will be implemented to the model.

[Next page](https://forums.unrealengine.com/t/constraints-export/712607.md?page=2)
