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

# GENLIB\_LOAD\_PHFIG(3)

loads a layout form disk and opens it as current figure

## NAME

**PHAD\_PHFIG** - loads a layout form disk and opens it as current figure

## SYNOPSYS

```
#include <genlib.h>
void GENLIB_LOAD_PHFIG(cellname)
char ∗cellname;
```

## PARAMETERS

- *cellname*

  Name of the cell which all futher calls to genlib layout functions will work on

## DESCRIPTION

**PHAD\_PHFIG** loads a physical view from disk and defines it as current working layout figure.  This overrides the working figure initialized by **DEF\_PHFIG**(3), if any. So the next call to **SAVE\_PHFIG** will save the cell called *cellname*.

## EXAMPLE

```
#include <genlib.h>
main()
{
	/∗ Loads the figure to work on  ∗/
	GENLIB_LOAD_PHFIG("cell");
	/∗ Add an instance in cell ∗/
	GENLIB_PLACE("model","instance", NOSYM, 200, 600);
	/∗ Save all that on disk ∗/
	GENLIB_SAVE_PHFIG();
}
```

## SEE ALSO

[**genlib**(1)](/genlib/1.md), [**GENLIB\_DEF\_PHFIG**(3)](/GENLIB_DEF_PHFIG/3.md). [**GENLIB\_SAVE\_PHFIG**(3)](/GENLIB_SAVE_PHFIG/3.md).
