ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructMarkerFromFile Method
The full path to file on disk.
Example

In This Topic
    ConstructMarkerFromFile Method (SymbolFactory)
    In This Topic
    Constructs a marker from file. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public CIMMarker ConstructMarkerFromFile( 
       string file
    )
    Public Function ConstructMarkerFromFile( _
       ByVal file As String _
    ) As CIMMarker

    Parameters

    file
    The full path to file on disk.

    Return Value

    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run
    Remarks
    Marker can be created from the following file formats: JPG, BMP, PNG, GIF, EMF, 3DS, FLT, DAE, OBJ, SVG, GLTF, GLB
    Example
    How to construct a point symbol from a file on disk
    //The following file formats can be used to create the marker: DAE, 3DS, FLT, EMF, JPG, PNG, BMP, GIF
    CIMMarker markerFromFile = await QueuedTask.Run(() => SymbolFactory.Instance.ConstructMarkerFromFile(@"C:\Temp\fileName.dae"));
    
    CIMPointSymbol pointSymbolFromFile = SymbolFactory.Instance.ConstructPointSymbol(markerFromFile);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also