# Minimum distance - Path from curve

**URL:** https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494
**Category:** RobotStudio S4
**Created:** [April 9, 2010, 4:11am UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494 "2010-04-09T04:11:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![liken](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@liken](https://tech-community.robotics.abb.com/u/liken)
#### Post date: [April 9, 2010, 4:11am UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/1 "2010-04-09T04:11:35Z")

</div>

Hello Everyone,

When I create a path from curve and setting the minimum distance between the targets at 3, 2 or 1mm and max cord dev at 1mm, the targets generated have a distance of 5mm or more. For example, a circle with diam. of 400mm, min. dist. of 1mm and max cord. of 1mm create 70 targets (18mm between each target).

How to proceed to respect the minimum distance?

Thx

---

<div class="post-metadata">

### Author: ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)
#### Post date: [April 9, 2010, 11:04am UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/2 "2010-04-09T11:04:48Z")

</div>

Hi,

The minimum distance parameter seems to be respected in your case. There are 18 mm between the targets which is more than the specified minimum distance of 1 mm. The minimum distance parameter is used to limit the number of targets created.

---

<div class="post-metadata">

### Author: ![liken](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@liken](https://tech-community.robotics.abb.com/u/liken)
#### Post date: [April 9, 2010, 2:46pm UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/3 "2010-04-09T14:46:37Z")

</div>

Hi,

Thanks you for the answer,

In this case, how to set the increments between targets at 1mm?

Thx,

---

<div class="post-metadata">

### Author: ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)
#### Post date: [April 9, 2010, 2:57pm UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/4 "2010-04-09T14:57:28Z")

</div>

You can lower the max cord parameter to get more points. It is a measure of the deviation between the original curve and the robot path (approximated using linear and possibly circular segments.)

---

<div class="post-metadata">

### Author: ![Anders\_S](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Anders\_S](https://tech-community.robotics.abb.com/u/Anders_S)
#### Post date: [April 9, 2010, 6:45pm UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/5 "2010-04-09T18:45:33Z")

</div>

Hi,  
If you want an exact distance of 1mm between each target along the curve, you should use the setting “Constant”.

---

<div class="post-metadata">

### Author: ![liken](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@liken](https://tech-community.robotics.abb.com/u/liken)
#### Post date: [April 9, 2010, 7:26pm UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/6 "2010-04-09T19:26:12Z")

</div>

Hi,

I have checked in many menus and I found nothing about setting “Constant” distance between the targets. How does it possible to set this?

Thx

---

<div class="post-metadata">

### Author: ![Anders\_S](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Anders\_S](https://tech-community.robotics.abb.com/u/Anders_S)
#### Post date: [April 9, 2010, 11:23pm UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/7 "2010-04-09T23:23:14Z")

</div>

Here it is:

![](http://forums.robotstudio.com/webwiz/51/ScreenHunter_05_Apr._09_23.21.jpg)

---

<div class="post-metadata">

### Author: ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)
#### Post date: [April 10, 2010, 3:25pm UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/8 "2010-04-10T15:25:27Z")

</div>

Hi  
In RS 4 you need to write your own addin that does this. Not to hard if you know VB programming.

---

<div class="post-metadata">

### Author: ![Henrik\_Berlin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/henrik_berlin/32/1011_2.png) [@Henrik\_Berlin](https://tech-community.robotics.abb.com/u/Henrik_Berlin)
#### Post date: [April 12, 2010, 9:44am UTC](https://tech-community.robotics.abb.com/t/minimum-distance-path-from-curve/3494/9 "2010-04-12T09:44:24Z")

</div>

Unfortunately, the “Constant” option is only available in RobotStudio 5.x, not 4.0.
