Arbortext IsoDraw > Macro Language Reference > Window Commands > Palette Window Toolbox > Creating Elements > Remove Callout-Object Connections
  
Remove Callout-Object Connections
The DISCONNECT CALLOUT command removes an existing link between a specified callout and a specified object in the illustration.
DISCONNECT CALLOUTmyElemFROM"object_id"
myElem
The callout element object that the specified object object_ID is connected to. The variable myElem must be defined as type ELEMENT. Also, the element object myElem.type must be "Callout".
FROM object_id
Disconnects the callout myElem from 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 not connected this command has no effect.
If an object with ID object_ID is not found in the illustration, this command fails.
If you are recording a macro, this command is recorded when you manually disconnect a callout from an object.
DEFINE myElem AS ELEMENT
myElem = activeDoc.firstSelectedElement
IF ( myElem.type = "Callout" ) then
CONNECT CALLOUT myElem TO "PART_0815"
END IF

# Disconnect callout myElem from the object
# it was connected to:
DISCONNECT CALLOUT myElem FROM "PART_0815"