Skip to main content

create_blob_texture

Function create_blob_texture 

Source
pub fn create_blob_texture(
    tx: &mut Transaction,
    schema: &Schema,
    draft: BlobTextureDraft<'_>,
) -> StyleResult<EntityId>
Expand description

Stage an IfcBlobTexture, embedding the raster bytes in the file.

raster_code is the hex payload as it appears in STEP, without the surrounding quotes. RasterCodeByteStream requires it to be a whole number of bytes: STEP binary is bit-counted, so an odd hex-digit count is a partial byte no decoder can complete.

ยงErrors

Refuses a raster format outside the closed list, a payload that is not a whole number of bytes, a non-hex payload, an empty payload, and an empty parameter list.