---
name: "restorealldir"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/restorealldir"
---

# restorealldir(3)

restore all instances' connectors directions

## NAME

restorealldir - restore all instances' connectors directions

## SYNOPSYS

```
#include "mlo.h"
int restorealldir(ptfig)
lofig_list ∗ptfig;
```

## PARAMETER

- *ptfig*

  Pointer to a lofig\_list

## DESCRIPTION

The **restorealldir** function restores the directions of all the connectors of the instances. Each instance model logical view is loaded,  and the **restoredirvbe** function applied. If a model doesn't have a **vbe** file on the path, the **restorealldir** and **guessextdir** functions are used on the model.\
 It is the charge of the user to delete the models loaded in memory for the function purpose.

## RETURN VALUE

**restorealldir** returns **1** on success, **0** if there is an error while reading the vbe file.

## ERROR

**restorealldir** cannot give any errors, but the function use **restoredirvbe** that can give errors reading vbe files. see **restoredirvbe** for details.

## EXAMPLE

```
#include "mut.h"
#include "mlo.h"
lofig_list ∗ getgoodlofig(figname, mode)
char ∗figname;
char mode;
{
lofig_list ∗ptfig;
	ptfig = getlofig(figname, mode);
	restorealldir(ptfig);
	return ptfig;
}
```

## SEE ALSO

**mbk**(1), [**lofig**(3)](/lofig/3.md), [**locon**(3)](/locon/3.md), [**getlofig**(3)](/getlofig/3.md), [**restoredirvbe**(3)](/restoredirvbe/3.md). [**guessextdir**(3)](/guessextdir/3.md).
