Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Translators Namespace / ReadAutodesk Class / CreateXRef Method
The name of the block that will contain the loaded entities
Base point of the created BlockReference
The devDept.Eyeshot.ViewportLayout object to which add the blcck
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
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).

In This Topic
    CreateXRef Method
    In This Topic
    Creates a block with the loaded entities, adds it to the devDept.Eyeshot.ViewportLayout, marks it as external reference and returns a BlockReference to that block.
    Syntax
    '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

    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.
    Remarks
    The block base point is taken from the BasePoint.The ReadFileAsynch.Entities, ReadFileAsynchWithBlocksAndLayers.Layers, ReadFileAsynchWithBlocks.Blocks and TextStyles are added to the devDept.Eyeshot.ViewportLayout and then are set to null.
    See Also