yucad3d

CadAddBlockClip

Vecad CadAddBlockClip — insert block szName at the origin, clipped to the world-space rectangle (Lef,Bot)-(Lef+W,Bot+H).

YuHandle CadAddBlockClip ( YuHandle hDwg, const char* szName, double Lef, double Bot, double W, double H );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
szName (const char*)
Name of the block definition to insert.
Lef (double)
Left edge of the rectangle (world units).
Bot (double)
Bottom edge of the rectangle (world units).
W (double)
Width in world units.
H (double)
Height in world units.

Return Value

The handle of the newly created block definition, or 0 on failure.

Remarks

Only the block content inside the rectangle is drawn (Renderer clip) and exported (DXF SPATIAL_FILTER / AutoCAD XCLIP). The block is resolved by name. Returns the insert handle.

See Also