dbCreateTextDisplay
dbCreateTextDisplay(d_associateIdd_ownerIdtxl_layerPurpose l_displayFlagsl_pointt_just t_orient t_font x_height[g_isDrafted[g_isOverbar[g_isVisible[g_isNameVisible[g_isValueVisible[t_attrOrParamName[g_isParamAssoc] ] ] ] ] ] ] ) =>d_textDisplay/ nil
Description
Creates a text display object.
TextDisplays are associated with design objects so that graphical applications can display text strings representing attributes and properties of the associated object. The owner and associate of a text display are usually the same but they can be different. For example, a text display may be “owned” by an instance, but may be “associated” with a label in the master of that instance.
TextDisplays cannot be “associated” with objects in other cellviews unless the TextDisplay is “owned” by an instance or Mosaic of that cellview.
Arguments
|
Associate of the text display. This can be a label in a master cellview, a property, or a dbObject whose attribute t_attrName is to be displayed. However, not all attributes of objects can be displayed with a textDisplay. Like labels, properties and attributes of master cellviews and terminals can be the associates of text displays that you create in the cellview where that master is instantiated. Such text display objects are called cross-cellview text displays. |
|
|
Some of the attributes that can be displayed using text display include:
|
|
|
Owner of the text display. This can be any database object except properties or groups. |
|
|
Name, number, or a list of layer or layer-purpose pair. For more information, see Database Access Function Argument Types. |
|
|
Display characteristics of the label associate that are to be overridden by the text display. For properties and for attribute associates, every display characteristic must be specified; therefore, |
|
|
Origin of the text display. This must be specified for properties and for object attribute associates. For more information, see Database Access Function Argument Types. |
|
|
Justification string for the text display. This must be specified for properties and for object attribute associates. For more information, see Database Access Function Argument Types. |
|
|
Orientation string for the text display. This must be specified for properties and for object attribute associates. For more information, see dbIsId. |
|
|
Font style string for the text display. This must be specified for properties and for object attribute associates. For more information, see Database Access Function Argument Types. |
|
|
Height of the text display that must be given as a positive number. This must be specified for properties and for object attribute associates. |
|
|
Specifies whether or not drafting is set for the text display. The default is |
|
|
Specifies whether or not over-bar is set for the text display. The default is |
|
|
Specifies whether or not the text display is visible. The default is |
|
|
Specifies whether or not the property or attribute name is visible. The default is |
|
|
Specifies whether or not the property or attribute value is visible. The default is |
|
|
Name of the attribute or the CDF parameter of the associate object specified in d_associateId. |
|
|
Specifies whether or not t_attrOrParamName is a CDF parameter name. The default is |
Value Returned
Examples
In this example, the owner is an instance and the associate is a label:
inst = dbFindAnyInstByName(cv "I0")
tdMaster = dbOpenCellViewByType("tranTst" "iopin" "symbolr")
assoc = car(setof(i tdMaster~>shapes i~>objType == "label" && i~>theLabel =="[@terminalName]"))
obj = dbCreateTextDisplay(assoc inst 229:237 t -10:0 "lowerLeft" "R0" "stick" 1 t nil t t t "mylabel" nil)
obj~>assocType
"labelAssocType"
obj~>text
"[@terminalName]"
obj~>xy
(-11.4375 0.375)
Related Topics
Database Access Function Argument Types
Object Creation and Retrieval Functions
Return to top