SetByteData Method (ICustomData)

SetByteData Method (ICustomData) | Send Feedback
See Also Example

Index
  Index of the custom data element

ByteArray
  Binary array of doubles

Sets the specified custom data element whose data type is a binary array.

# Syntax

Visual Basic |
--- | ---
    Sub SetByteData( _
       ByVal Index As System.Integer, _
       ByVal ByteArray As System.Object _
    )

C# |
--- | ---
    void SetByteData(
       System.int Index,
       System.object ByteArray
    )

JavaScript |
--- | ---
    SetByteData(
       Index : Number,
       ByteArray : Array
    )

COM native C++ |
--- | ---
    HRESULT SetByteData(
       LONG Index,
       VARIANT ByteArray
    )

C++ |
--- | ---
    DSRESULT SetByteData(
       long Index,
       const dsByteArray& ByteArray
    )

#### Parameters

Index
  Index of the custom data element
ByteArray
  Binary array of doubles

# Example

Add, Modify, and Remove Custom Data (C#)
Add, Modify, and Remove Custom Data (VB.NET)
Add, Modify, and Remove Custom Data (VBA)
Add and Modify Custom Data (JavaScript)

# Remarks

Binary data for custom data is organized into variable-length chunks. The maximum length of each chunk is 127 bytes. If a binary array larger than 127 bytes is passed, then that data is not added. If an application requires more than 127 bytes of binary data, then the application must organize the data into multiple chunks.

# See Also

####

ICustomData Interface
ICustomData Members

# Availability

DraftSight V1R1.2