GetByteData Method (ICustomData) Send Feedback
See Also  Example
ByteArray[out]
Binary array (see Remarks)
Index
Index of the custom data element
Gets the specified custom data element whose data type is a binary array.

Syntax

Visual Basic 
Function GetByteData( _
   ByVal Index As System.Integer _
) As System.Object
C# 
System.object GetByteData( 
   System.int Index
)
JavaScript 
GetByteData( 
   Index : Number
) : Array
COM native C++ 
HRESULT GetByteData( 
   LONG Index,
   VARIANT* ByteArray
) 
C++ 
DSRESULT GetByteData( 
   long Index,
   dsByteArray* ByteArray
) 

Parameters

Index
Index of the custom data element
ByteArray[out] or Return Value
Binary array (see Remarks)

Example

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 was passed, then that data was not added. If an application requires more than 127 bytes of binary data, then the application must organize the data into multiple chunks.

Call ICustomData::GetDataCount before calling this method to determine a valid value for Index.

 

See Also

Availability

DraftSight V1R1.2