1GENLIB_GET_INS_X.3(October 1, 1997)        GENLIB_GET_INS_X.3(October 1, 1997)
2
3
4

NAME

6       GENLIB_GET_INS_X - retrieve the x coordinate of an instance
7

SYNOPSIS

9       long GENLIB_GET_INS_X(insname)
10       char ∗insname;
11

PARAMETER

13       insname             Name  of  the  instance which x coordinate is to be
14                           given back
15

DESCRIPTION

17       GET_INS_X looks for the instance called insname in the current  figure.
18       Then it computes its absolute coordinates in the figure, and gives back
19       its x coordinate.
20

RETURN VALUE

22       The function returns a long int being the x position of the instance in
23       the current figure
24

ERRORS

26       "GENLIB_GET_INS_X impossible : missing GENLIB_DEF_PHFIG"
27              No  figure  has been yet specified by a call to DEF_PHFIG. So it
28              isn't possible to place a connector inside it.   you  must  call
29              DEF_PHFIG before any other layout action.
30       "illegal getphins : instance called insname does not exist"
31              No instance called insname exists in the current figure.
32

EXAMPLE

34       #include <genlib.h>
35       main()
36       {
37       long x, y;
38            /∗ Create a figure to work on  ∗/
39            GENLIB_DEF_PHFIG("cell");
40            GENLIB_PLACE("gaci0_b", "r1", NOSYM, 23L, 54L);
41            GENLIB_PLACE_TOP("gaci0_b", "r2", SYM_X);
42            GENLIB_PLACE_RIGHT("gaci0_b", "r3", SYM_Y);
43            /∗ Get a connector ∗/
44            x = GENLIB_GET_INS_X("r3");
45            y = GENLIB_GET_INS_Y("r3");
46            .
47            .
48            /∗ Save that on disk ∗/
49            GENLIB_SAVE_PHFIG();
50       }
51

SEE ALSO

53       genlib(1),  GENLIB_DEF_PHFIG(3),  GENLIB_SAVE_PHFIG(3),  PHINS(3), GEN‐
54       LIB_GET_INS_Y(3),   GENLIB_GET_CON_X(3),   GENLIB_GET_CON_Y(3).    GEN‐
55       LIB_GET_REF_X(3), GENLIB_GET_REF_Y(3).
56
57
58
59
60
61
62PROCEDURAL GENERATION LANGUAGE     ASIM/LIP6GENLIB_GET_INS_X.3(October 1, 1997)
Impressum