Product Documentation
Virtuoso Technology Data SKILL Reference
Product Version IC23.1, June 2023

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:

  • l_hvPoint: A list with the following syntax:
    list (
          type "point" 
          horizontal l_point 
          vertical l_point 
          [horizontalTurn f_hTurn]
         )

Here:
    • The type value is point.
    • A horizontal component and a vertical component are specified as a list followed by the argument horizontal and vertical, respectively. It is specified as a list with the following syntax:
      list (
            type t_type 
            value f_value 
            [locked b_locked] 
            [max f_max] 
            [min f_min] 
            [step f_step] 
           )
      Here:
      • t_type: Point type for the component. Valid values are length, percent, angle.
      • f_value: Value corresponding to t_type. For length, it is in microns. For percentage, it is a value between -100 and 100. For angle, it is a value between -90 and +180.
      • b_locked: Boolean value indicating whether the point is locked by the manufacturer. Values: nil (default) or t.
      • f_max: Maximum length, when t_type is length.
      • f_min: Minimum length, when t_type is length.
      • f_step: The step when t_type is length. The default value is 0.
    • f_hTurn: Specifies a horizontal angle in the wire. Valid values: a float number in the range -90 to +90. Default value: 0

  • 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
 ⠀
X