yucad3d

Blocks & Inserts

Block definitions, block references (inserts), attributes, 3DFACE and shapes.

97 functions.

CadAddAttribCreates a new block attribute and returns its handle.
CadAddBlockCreates a new block definition and returns its handle.
CadAddBlockClipVecad CadAddBlockClip — insert block szName at the origin, clipped to the world-space rectangle (Lef,Bot)-(Lef+W,Bot+H).
CadAddBlockFileWhole external drawing -> one block (named after the file's base name).
CadAddBlockFromDrwCopy a block from another OPEN drawing (clone its model entities).
CadAddBlockFromFileExternal drawing -> a block of the given name.
CadAddBlockXrefExternal-reference block: a block whose content lives in another drawing file (Vecad CadAddBlockXref).
CadAddFaceCreate an empty 3D face on the current document; corners are set via CadFacePutVer.
CadAddInsBlockCreates a new block reference (insert) and returns its handle.
CadAddInsBlockMCreates a new block reference (insert) — m and returns its handle.
CadAttGetAlignReturns the align of the block attribute.
CadAttGetAngleReturns the angle of the block attribute.
CadAttGetBackwardReturns the backward of the block attribute.
CadAttGetDefValueReturns the def value of the block attribute.
CadAttGetHeightReturns the height of the block attribute.
CadAttGetModeReturns the mode of the block attribute.
CadAttGetObliqueReturns the oblique of the block attribute.
CadAttGetPointReturns the point of the block attribute.
CadAttGetPromptReturns the prompt of the block attribute.
CadAttGetStyleIDReturns the style i d of the block attribute.
CadAttGetTagReturns the tag of the block attribute.
CadAttGetUpsideDownReturns the upside down of the block attribute.
CadAttGetValueReturns the value of the block attribute.
CadAttGetWidthReturns the width of the block attribute.
CadAttPutAlignSets the align of the block attribute.
CadAttPutAngleSets the angle of the block attribute.
CadAttPutBackwardSets the backward of the block attribute.
CadAttPutDefValueSets the def value of the block attribute.
CadAttPutHeightSets the height of the block attribute.
CadAttPutModeSets the mode of the block attribute.
CadAttPutObliqueSets the oblique of the block attribute.
CadAttPutPointSets the point of the block attribute.
CadAttPutPromptSets the prompt of the block attribute.
CadAttPutStyleIDSets the style i d of the block attribute.
CadAttPutTagSets the tag of the block attribute.
CadAttPutUpsideDownSets the upside down of the block attribute.
CadAttPutValueSets the value of the block attribute.
CadAttPutWidthSets the width of the block attribute.
CadBlockAddEntityCreates a new block definition — entity and returns its handle.
CadBlockClearRemoves all content of the block definition.
CadBlockCountEntitiesReturns the number of block definitions.
CadBlockGetAttribReturns the attrib of the block definition.
CadBlockGetBaseReturns the base of the block definition.
CadBlockGetBaseXReturns the base x of the block definition.
CadBlockGetBaseYReturns the base y of the block definition.
CadBlockGetBaseZReturns the base z of the block definition.
CadBlockGetExDataReturns the ex data of the block definition.
CadBlockGetExDataSizeReturns the ex data size of the block definition.
CadBlockGetFirstPtrIterate a block's child entities by raw-pointer handle (the entities live in Block::entities, not Document::entities_, so they use the raw EntityRef path).
CadBlockGetIDReturns the i d of the block definition.
CadBlockGetNameReturns the name of the block definition.
CadBlockGetNextPtrReturns the block definition ptr following the given one during enumeration.
CadBlockHasAttribsReturns whether the block definition contains attribute definitions.
CadBlockIsXrefTrue if the block is an external reference (has an xref path).
CadBlockListCreateVecad CadBlockListCreate / CadLibraryBrowserCreate — embed a block browser (lists block definitions; double-click inserts at origin).
CadBlockPutBaseSets the base of the block definition.
CadBlockPutBaseXSets the base x of the block definition.
CadBlockPutBaseYSets the base y of the block definition.
CadBlockPutBaseZSets the base z of the block definition.
CadBlockPutExDataSets the ex data of the block definition.
CadBlockPutNameSets the name of the block definition.
CadFaceGetEdgeReturns the edge of the 3DFACE entity.
CadFaceGetNumVersNumber of corners set so far (3 or 4).
CadFaceGetVerReturns the vertex of the 3DFACE entity.
CadFacePutEdgeEdge iEdge (0..3) visibility.
CadFacePutVerSet / get corner iVer (0..3).
CadInsBlockGetAngleReturns the angle of the block reference (insert).
CadInsBlockGetBlockIDReturns the block i d of the block reference (insert).
CadInsBlockGetColDistReturns the col dist of the block reference (insert).
CadInsBlockGetFirstAttReturns the first block reference (insert) att for enumeration (see the matching GetNext).
CadInsBlockGetNextAttReturns the block reference (insert) att following the given one during enumeration.
CadInsBlockGetNumColsReturns the number of cols of the block reference (insert).
CadInsBlockGetNumRowsReturns the number of rows of the block reference (insert).
CadInsBlockGetPointReturns the point of the block reference (insert).
CadInsBlockGetRowDistReturns the row dist of the block reference (insert).
CadInsBlockGetScaleReturns the scale of the block reference (insert).
CadInsBlockGetScaleXReturns the scale x of the block reference (insert).
CadInsBlockGetScaleYReturns the scale y of the block reference (insert).
CadInsBlockGetScaleZReturns the scale z of the block reference (insert).
CadInsBlockGetXReturns the x of the block reference (insert).
CadInsBlockGetYReturns the y of the block reference (insert).
CadInsBlockGetZReturns the z of the block reference (insert).
CadInsBlockHasAttribsReturns whether the block reference carries attributes.
CadInsBlockPutAngleSets the angle of the block reference (insert).
CadInsBlockPutBlockIDSets the block i d of the block reference (insert).
CadInsBlockPutColDistSets the col dist of the block reference (insert).
CadInsBlockPutNumColsSets the number of cols of the block reference (insert).
CadInsBlockPutNumRowsSets the number of rows of the block reference (insert).
CadInsBlockPutPointSets the point of the block reference (insert).
CadInsBlockPutRowDistSets the row dist of the block reference (insert).
CadInsBlockPutScaleSets the scale of the block reference (insert).
CadInsBlockPutScaleXSets the scale x of the block reference (insert).
CadInsBlockPutScaleYSets the scale y of the block reference (insert).
CadInsBlockPutScaleZSets the scale z of the block reference (insert).
CadInsBlockPutXSets the x of the block reference (insert).
CadInsBlockPutYSets the y of the block reference (insert).
CadInsBlockPutZSets the z of the block reference (insert).