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

# GENLIB\_DEF\_PHFIG(3)

open a layout model as current figure

## NAME

GENLIB\_DEF\_PHFIG - open a layout model as current figure

## SYNOPSYS

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

## PARAMETERS

- *cellname*

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

## DESCRIPTION

**DEF\_PHFIG** defines the current physical working figure by it's name,  the *cellname* argument. It can be use anywhere in the **genlib**  program, but must appear at least once at the top of it, since it also  initalize the user's preferences through environment variables.\
 If the figure called cellname doesn't exists in memory, it is created.  If it already exists in memory, it makes it the current working figure.  **DEF\_PHFIG** doesn't look on disk for the figure *cellname*,  so be careful not to overwrite an existing file while saving later on.

## EXAMPLE

```
#include <genlib.h>
main()
{
	/∗ Create a figure to work on  ∗/
	GENLIB_DEF_PHFIG("mycell");
	/∗ Place an instance ∗/
	GENLIB_PLACE("mymodel","firstinstance", NOSYM,0L,0L);
	/∗ Save all that on disk ∗/
	GENLIB_SAVE_PHFIG();
}
```

## SEE ALSO

[**genlib**(1)](/genlib/1.md), [**GENLIB\_DEF\_PHSC**(3)](/GENLIB_DEF_PHSC/3.md).
