'Declaration Public Function CreateXRef( _ ByVal blockName As String, _ ByVal basePoint As Point3D, _ ByVal viewportLayout As ViewportLayout, _ Optional ByVal exportFileName As String, _ Optional ByVal exportMode As WriteAutodesk.blockExportType _ ) As BlockReference
public BlockReference CreateXRef( string blockName, Point3D basePoint, ViewportLayout viewportLayout, string exportFileName, WriteAutodesk.blockExportType exportMode )
Parameters
- blockName
- The name of the block that will contain the loaded entities
- basePoint
- Base point of the created BlockReference
- viewportLayout
- The devDept.Eyeshot.ViewportLayout object to which add the blcck
- exportFileName
- The filename of the external reference. If empty, uses the name of the file read from disk or the ".dwg" if the file was read from a stream
- exportMode
- The export mode that defines whether the file of the external reference will be written to disk in case of a subsequent call to %WriteAutodesk(devDept.Eyeshot.ViewportLayout, System.IO.Stream,linearUnitsType, bool, bool, bool). The (F:devDept.Eyeshot.Translators.WriteAutodesk.blockExportType.Embedded% export mode is not supported).
Return Value
The blockReference referring to the created block.