Arbortext IsoDraw > Macro Language Reference > Window Commands > Palette Window Toolbox > Creating Elements > Create Callout-Object Connections
  
Create Callout-Object Connections
The CONNECT CALLOUT command creates a link between a callout and a specified object in the active document.
CONNECT CALLOUTmyElemTO"object_id"
myElem
The callout element object that the specified object object_ID connects to. The callout variable myElem must be defined as type ELEMENT. Also, the element object myElem.type must be "Callout". If the callout variable myElem is omitted, the last callout created by the CREATE CALLOUT command will be connected to the object.
TO "object_id"
Creates a logical connection between the callout and the object with the specified object_ID. object_id must be of type STRING.
The following guidelines apply to the CONNECT CALLOUT command:
If callout and object are already connected this command has no effect.
If an object with ID object_ID is not found in the active document, this command fails.
Using this command to connect a callout to an object does not change the callout’s appearance. For example, the position of the leader line does not change after it is connected to an object.
DEFINE myElem AS ELEMENT
myElem = activeDoc.firstSelectedElement
IF ( myElem.type = "Callout" ) then
CONNECT CALLOUT myElem TO "PART_0815"
END IF

# Creates a callout "5" connected to three objects:
CREATE CALLOUT "Normal" 118 221 118 309 "5"
CONNECT CALLOUT TO "AR_005_4598a"
CONNECT CALLOUT TO "AR_005_4598b"
CONNECT CALLOUT TO "AR_005_4598c"