Extending product function with VBA > The System Architect object model > Object model classes > Diagram class > Diagram class: Methods > AcceptDropOfType
  
AcceptDropOfType
Accepts a Class and Type and requests that this be added to the diagram – equivalent to dragging a type from the Explorer onto a diagram. The cursor position is used as the drop point.
Parameters
v_lngClass As Long: The Class, where 1 is Diagram and 3 is Definition.
v_lngType As Long: The Type number.
See also
AcceptDropOfTypeAt
Diagram_AddItems
Diagram class: Methods