CreateLink

<< Click to Display Table of Contents >>

Navigation:  TMyCAD > Methods >

CreateLink

function CreateLink(ALinkShapeName:string;SrcShape:TMyShape; SrcLinkPtId:integer; DestShape:TMyShape;DestLinkPtId:integer): Integer;

 

Description:

 

 To create linkline shape between SrcShape and DestShape.

 

Parameter:

 

  ALinkShapeName : The linkline shape's shapename;

  SrcShape: The source shape,it is a userdefine shape, and has linkpoint in it;

  SrcLinkPtId: The link point id.

  DestShape: The destination shape,it is a userdefine shape, and has linkpoint in it;

  DestLinkPtId: The link point id.

 

 

Return value:

 -1: add failed

else(>=0) : add success, it is the LinkLinkshape's ShapeId.

 

 

See Also

 

DeleteAllShapes