techCreateWireProfile
techCreateWireProfile(
d_techFileID
t_name
t_direction
l_wpPoints
[ g_fromVendor ]
[ x_diameter ]
[ t_material ]
[ n_color ]
[ g_visibility ]
)
=> d_wireProfileID / nil
Description
(Virtuoso MultiTech Framework) Creates a wire profile object in the specified technology file.
Arguments
|
d_techFileID
|
The database identifier of the technology file.
|
|
t_name
|
The name of the wire profile.
|
|
t_direction
|
The direction of the wire profile.
Valid values: forward, reverse
|
|
l_wpPoints
|
A list of points of the type switch or point.
The list has the following syntax:
list( { l_hvPoint | l_switchPoint } … )
These arguments are described as follows:
|
|
|
Here:
|
|
|
-
l_switchPoint: Indicates a switch of direction. If the profile has t_direction set to
forward, then all subsequent points are treated as being in the reverse direction. The type value is switch. It is a list with the following syntax:
list(
type "switch"
)
|
|
g_fromVendor
|
Indicates whether the wire profile is from a vendor.
Boolean value: nil (default), t
|
|
x_diameter
|
The diameter of the wire profile.
Default value: 0
|
|
t_material
|
The wire profile material name as a string.
Default value: an empty string
|
|
n_color
|
The color index of the wire profile.
Default value: 0
|
|
g_visibility
|
The visibility of the wire profile.
Boolean value: nil (default), t
|
Value Returned
|
d_wireProfileID
|
The ID of the newly created wire profile.
|
|
nil
|
A wire profile was not created.
|
Example
techCreateWireProfile(
tf
"wpName"
"forward"
'(
(type "switch")
(type "point")
horizontal (type "percent" value 5.0 locked t)
vertical (type "length" value 3.2 max 2.5 min 0.2 step 1.0)
horizontalTurn 2.5
)
(type "switch")
)
?fromVendor t
?diameter 3.25
?material "Gold"
)
Creates a wire profile named wpName in the forward direction. It has an entry each for a switch and a point, and the horizontal angle is set to 2.5. It is from a vendor. The diameter is 3.25 and the material is Gold.
Return to top