techCreatePurpose
techCreatePurpose(d_techID x_purposeNumber t_purposeName[t_purposeAbbrev] ) => t / nil
Description
Creates a purpose in the specified technology database. ASCII technology file location: techPurposes subsection in the layerDefinitions section; it lists the layer purposes used with technology data. If a techPurposes subsection does not exist, this function creates one with the specified data.
Applications that display purpose names do not always have room to display the entire name. The optional abbreviation expands your control over what is displayed in narrow fields. Depending upon the width of the field for displaying the purpose name, an application displays whichever of the following fits:
For more information about techPurposes, see
Arguments
|
Valid values: A unique integer, |
|
Value Returned
|
The technology database does not exist; the purpose is not created. |
Example
techCreatePurpose(techID 10 "drawing" "dwg")
=> t
Creates a purpose with the purpose number 10, the purpose name drawing, and the purpose abbreviation dwg.
Return to top