Initialize the style to define a pad with a hole by specifying the diameter of the hole.
Syntax: |
FWizPadStyle.InitPadFromHole(holeDiameter, holeLength=0, xRatio=0, plated=TRUE, shapeFactor=1)
|
Parameters
Parameter |
Description |
holeDiameter |
Specify the hole diameter. |
holeLength |
To create a slot with rounded ends, specify its length. |
xRatio |
Determines the increase in size along the X axis of the pad with respect to the Y axis. |
plated |
Specify the hole type. Enter true if the hole is plated otherwise false. |
shapeFactor |
Specify the shape of the pad by defining whether the corners should be straight, rounded or beveled. Specify the shape of the pad as follows:
>0 and <=1 |
Corners are rounded. The value of shapeFactor specifies the rounding percentage of all four edges of the pad. |
=0 |
Angles are 90 degrees. |
>=-1 and < 0 |
The corners are beveled. The value of the shapeFactor specifies the percentage of bevel of all four corners of the pad. |
|
Return Value
If the operation ends correctly, it returns true otherwise it returns false.
Example
|
Copy code
|
|
See also