N
none
Guest
In composer there is an interactive function for creating new pin shapes
in a symbol. On this form you can choose a square shape for a pin shape,
or a block shape which is a square with a triangle that points to in,
out or both directions with inout. If I choose the block pin type I
get this second kind of pin shape.
I have been looking around in the data structures for the shape that
gets created for a pin.
in a symbol cvId I find the pin shapes in cvId~>shapes. The
rectangle shaped pin showes up as objType rect and the other is a
polygon with 6 or 7 points.
The rect has no points only a bBox.
The polygon has items npoints and a list of points.
----------------------------------------------------
1. Is there a skill function that will create a new pin shape, using
this block like pin shape?
2. If I already have pins how can I easily edit the pins shapes to
create the block type pin shapes.
I am thinking the following might work.
foreach(s cvId~>shapes
Find objType = rect pins
get the x,y point of the center on the rect bBox
get other properties of the pin, terminal name, direction or pin,
Delete the pin shape
Add a new pin shape at the same x,y with the pin shape default set to
block.
Does anyone have any other ideas on this.
3. Is their a .cdsenv default for the default pin shape to use?
Thanks.
in a symbol. On this form you can choose a square shape for a pin shape,
or a block shape which is a square with a triangle that points to in,
out or both directions with inout. If I choose the block pin type I
get this second kind of pin shape.
I have been looking around in the data structures for the shape that
gets created for a pin.
in a symbol cvId I find the pin shapes in cvId~>shapes. The
rectangle shaped pin showes up as objType rect and the other is a
polygon with 6 or 7 points.
The rect has no points only a bBox.
The polygon has items npoints and a list of points.
----------------------------------------------------
1. Is there a skill function that will create a new pin shape, using
this block like pin shape?
2. If I already have pins how can I easily edit the pins shapes to
create the block type pin shapes.
I am thinking the following might work.
foreach(s cvId~>shapes
Find objType = rect pins
get the x,y point of the center on the rect bBox
get other properties of the pin, terminal name, direction or pin,
Delete the pin shape
Add a new pin shape at the same x,y with the pin shape default set to
block.
Does anyone have any other ideas on this.
3. Is their a .cdsenv default for the default pin shape to use?
Thanks.