Solid Edge Draft Type Library
Add Method
Specifies the name of the new block.
Specifies the x origin coordinate for the new object.
Specifies the y origin coordinate for the new object.
Specifies whether to scale dimensions and annotations for the new object.
Specifies whether to replace the selected graphics by the occurrence of the new object.
Description
Adds an occurrence of the referenced object.
Syntax
Visual Basic
Public Function Add( _
   ByVal Name As String, _
   ByVal XOrigin As Double, _
   ByVal YOrigin As Double, _
   Optional ByVal ScaleDimsAndAnnot As Variant, _
   Optional ByVal DeleteSelectedGraphics As Variant _
) As Block
Parameters
Name
Specifies the name of the new block.
XOrigin
Specifies the x origin coordinate for the new object.
YOrigin
Specifies the y origin coordinate for the new object.
ScaleDimsAndAnnot
Specifies whether to scale dimensions and annotations for the new object.
DeleteSelectedGraphics
Specifies whether to replace the selected graphics by the occurrence of the new object.
Remarks
Creates a new block with the specified name. If a block of the specified name already exists, the method will fail. A new block view named "View1" is also created. Any supported objects residing in the select set are added to View1. If there are no supported objects in the select set, View1 will be empty. Optional arguments determine whether or not dimensions and annotations are scaled and whether or not the elements in the select set are replaced by an occurrence of the newly created block. The defaults are the same as in the UI.
See Also

Blocks Collection  | Blocks Members  | Solid Edge V19 - What's New