yucad3d

Search

Filter by function name or description; every result links to the function's full page.

Core & Document — 15

CadCompressCompacts the drawing database in memory (reclaims erased-entity slack).
CadCreateCreates a new, empty drawing and returns its handle.
CadDestroyDestroys the drawing and releases every entity, window and resource belonging to it.
CadExpandPre-allocates database capacity ahead of bulk entity creation.
CadFileNewNew empty drawing in-place (Vecad CadFileNew = CadPurge CAD_CLEAR_ALL): erase every entity, reset dirty + filename.
CadFileOpenLoad a DXF into the document (merges into the current contents).
CadFileOpenMemLoads a drawing from an in-memory, NUL-terminated DXF buffer.
CadFileSaveSave to the stored filename (set on open / save-as / CadPutFileName).
CadFileSaveAsFile save as.
CadFileSaveMemDXF to a memory buffer; returns the byte size (copies up to MaxSize).
CadFireLoadSaveEventHost-driven file load/save progress notification (Vecad CadFireLoadSaveEvent): the host calls this to drive the LoadSave callback (mode 0 = load, 1 = save) — e.g.
CadGetNumEntitiesLast-error reporting (Vecad CadGetError/ErrorStr).
CadGetVersionLibrary version: returns a numeric version + writes a version string.
CadRegenRegenerate = repaint the OpenGL view (yucad renders analytically, so there is no GDI display-list to rebuild — an update() is the equivalent).
CadUpdateRedraws the drawing in all attached windows — call after adding or editing entities.

Window & OpenGL View — 54

CadCWCreateCreates the command window inside a host panel.
CadCWDeleteDisable the command window (Vecad CadCWDelete): hide it and unlink it from every view so input stops routing there.
CadCWPutTextSets the text of the command window.
CadCWResizeResizes the command window to fill its host panel.
CadNavCreateNavigator overview panel embedded in the host (Vecad CadNav*).
CadNavGetParamReturns a navigator-panel parameter.
CadNavResizeResizes the navigator panel to its host area.
CadNavReturnFocusWhere the navigator returns keyboard focus to after the user drives it (so typing lands back in the host's CAD window, not the aerial view).
CadNavSetLinkLink the navigator to a CAD window — rebind to the active view + repaint.
CadPenSelectorCreatePen selector create.
CadPutWindowSets the value of the host window.
CadShowBlockDialogVecad CadShowBlockDialog — modal block manager (BlockListPanel in a QDialog, mirroring CadShowLayerDialog).
CadShowEmptyRectCadSnapGetIndMode lives in api_window.cpp (needs the view's snap engine).
CadShowLayerDialogShow layer dialog.
CadShowOptionsDialogVecad CadShowOptionsDialog — display / object-snap preferences.
CadShowPropDialogModal Properties window (CAD_CMD_ENTPROP / right-click "Properties…") — reuse the PropertiesPanel inside a QDialog, mirroring CadShowLayerDialog.
CadStatusBarCreateStatus bar create.
CadViewGetAngleHorReturns the angle hor of the view.
CadViewGetAngleVerReturns the angle vertex of the view.
CadViewGetPointReturns the point of the view.
CadViewGetPointXReturns the point x of the view.
CadViewGetPointYReturns the point y of the view.
CadViewGetPointZReturns the point z of the view.
CadViewPutAnglesSets the angles of the view.
CadViewPutPointSets the point of the view.
CadViewRectZooms the window to show the given world-space rectangle.
CadViewScaleSets the window's view scale.
CadWinCloseAsks whether the host-owned window may close (WM_CLOSE).
CadWinCreateBinds a host-owned window to the drawing — the second integration mode: the host keeps its window and message loop, forwards each message to CadWin*, and yucad renders offscreen OpenGL into the window's DC.
CadWinDestroyUnbinds the host-owned window (call from WM_DESTROY).
CadWinDrawRenders the drawing into the given device context and rectangle.
CadWinHScrollForwards WM_HSCROLL from the host-owned window.
CadWinKeyDownForwards WM_KEYDOWN from the host-owned window.
CadWinKeyUpForwards WM_KEYUP from the host-owned window.
CadWinKillFocusForwards WM_KILLFOCUS from the host-owned window.
CadWinLButtonDblClkForwards WM_LBUTTONDBLCLK from the host-owned window.
CadWinLButtonDownForwards WM_LBUTTONDOWN (starts a pan drag in viewer mode) from the host-owned window.
CadWinLButtonUpForwards WM_LBUTTONUP from the host-owned window.
CadWinMButtonDownForwards WM_MBUTTONDOWN (starts a pan drag) from the host-owned window.
CadWinMButtonUpForwards WM_MBUTTONUP from the host-owned window.
CadWinMouseLeaveForwards WM_MOUSELEAVE from the host-owned window.
CadWinMouseMoveForwards WM_MOUSEMOVE (drives panning) from the host-owned window.
CadWinMouseWheelForwards WM_MOUSEWHEEL (zooms about the cursor) from the host-owned window.
CadWinPaintRenders the drawing and blits it into the host-owned window (call from WM_PAINT).
CadWinRButtonDownForwards WM_RBUTTONDOWN from the host-owned window.
CadWinRButtonUpForwards WM_RBUTTONUP from the host-owned window.
CadWinSetFocusForwards WM_SETFOCUS from the host-owned window.
CadWinSizeForwards WM_SIZE — resizes the render surface to the new client size.
CadWinTimerForwards WM_TIMER from the host-owned window.
CadWinVScrollForwards WM_VSCROLL from the host-owned window.
CadWndCreateCreates the library-owned CAD child window inside the host window and returns its HWND — yucad paints and handles all input for it (viewport, grid, crosshair, commands).
CadWndRedrawForces a full repaint of the CAD window.
CadWndResizeNotifies the CAD window that its host area changed size.
CadWndSetFocusSets the focus of the CAD window.

Colours & Grid — 20

CadColorGetRGBReturns the r g b of the colour palette.
CadColorPutRGBSets the r g b of the colour palette.
CadColorSeekFinds the palette index nearest to an RGB colour.
CadGetColorCadGetColor / CadSetColor are the palette get/set under their other Vecad names (index 0..263; 256..263 are special CAD_COLOR_* refs with no RGB).
CadGridGetBoldStepReturns the bold step of the grid.
CadGridGetColorReturns the colour of the grid.
CadGridGetLevelReturns the level of the grid.
CadGridGetShowReturns the show of the grid.
CadGridGetSizeReturns the size of the grid.
CadGridGetSnapReturns the snap of the grid.
CadGridGetTypeReturns the type of the grid.
CadGridPutBoldStepSets the bold step of the grid.
CadGridPutColorSets the colour of the grid.
CadGridPutLevelSets the level of the grid.
CadGridPutShowSets the show of the grid.
CadGridPutSizeSets the size of the grid.
CadGridPutSnapSets the snap of the grid.
CadGridPutTypeSets the type of the grid.
CadPenPaletteCreateVecad CadPenPaletteCreate — the pen (colour / linetype / lineweight) palette strip.
CadSetColorSets the value of the colour palette.

Direct Drawing — 12

CadDrawAddVertexDraws a temporary add vertex primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawBlockDraws a temporary block primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawGenArcLow-level generic-arc paint hook (reserved; undocumented in Vecad).
CadDrawGenCircleDraws a temporary gen circle primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawGetDCDraws a temporary get d c primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawLineDraws a temporary line primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawPointDraws a temporary point primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawPolygonDraws a temporary polygon primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawPolylineDraws a temporary polyline primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawPolyPolygonDraws a temporary poly polygon primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawSetDraws a temporary set primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.
CadDrawTextDraws a temporary text primitive — valid inside custom-entity display (CEntDisplay) and drag-preview callbacks.

Entities — General — 103

CadEntityCopyCreates a copy of the entity, offset by the given delta.
CadEntityEraseErases the entity from the drawing.
CadEntityExplodeExplodes the entity into its primitive components.
CadEntityExtendExtend target hEnt to the nearest boundary edge; the end nearest (x,y) is the one that grows.
CadEntityGetBlinkReturns the blink of the entity.
CadEntityGetBordColorReturns the bord colour of the entity.
CadEntityGetBorderReturns the border of the entity.
CadEntityGetBottomReturns the bottom of the entity.
CadEntityGetColorReturns the colour of the entity.
CadEntityGetDeletedReturns the deleted of the entity.
CadEntityGetExDataReturns the ex data of the entity.
CadEntityGetExDataPtr64-bit ABI: a raw in-place pointer cannot be expressed as a 32-bit VHANDLE without truncation, so the fast-pointer accessor is unsupported here — use the safe Get/PutExData copy path instead.
CadEntityGetExDataSizeReturns the ex data size of the entity.
CadEntityGetFilledReturns the filled of the entity.
CadEntityGetGripReturns the grip of the entity.
CadEntityGetIDReturns the i d of the entity.
CadEntityGetLayerIDReturns the layer i d of the entity.
CadEntityGetLeftReturns the left of the entity.
CadEntityGetLinetypeIDPer-entity linetype (enum <-> api_linetype handle).
CadEntityGetLineweightReturns the lineweight of the entity.
CadEntityGetLockedReturns the locked of the entity.
CadEntityGetLtScaleReturns the lt scale of the entity.
CadEntityGetNumPathsReturns the number of paths of the entity.
CadEntityGetPageIDReturns the page i d of the entity.
CadEntityGetParkDataReturns the park data of the entity.
CadEntityGetPathSizeReturns the path size of the entity.
CadEntityGetRightReturns the right of the entity.
CadEntityGetSelectedReturns the selected of the entity.
CadEntityGetTopReturns the top of the entity.
CadEntityGetTypeReturns the type of the entity.
CadEntityGetUserDataReturns the user data of the entity.
CadEntityGetVerReturns the vertex of the entity.
CadEntityGetVisibleReturns the visibility of the entity.
CadEntityMirrorMirrors the entity across the axis through the two points.
CadEntityMoveMoves the entity by the given delta.
CadEntityMoveGripMoves one grip point of the entity (grip editing).
CadEntityPutBlinkSets the blink of the entity.
CadEntityPutBordColorSets the bord colour of the entity.
CadEntityPutBorderSets the border of the entity.
CadEntityPutColorSets the colour of the entity.
CadEntityPutExDataSets the ex data of the entity.
CadEntityPutFilledSets the filled of the entity.
CadEntityPutLayerIDSets the layer i d of the entity.
CadEntityPutLinetypeIDSets the linetype i d of the entity.
CadEntityPutLineweightSets the lineweight of the entity.
CadEntityPutLockedSets the locked of the entity.
CadEntityPutLtScaleSets the lt scale of the entity.
CadEntityPutPageIDSets the page i d of the entity.
CadEntityPutParkDataSets the park data of the entity.
CadEntityPutUserDataSets the user data of the entity.
CadEntityPutVisibleSets the visibility of the entity.
CadEntityRotateRotates the entity around the given centre.
CadEntityScaleScales the entity around the given centre.
CadEntitySwapSwaps the database (draw) order of two entities.
CadEntityToBottomSends the entity to the bottom of the draw order.
CadEntityToTopDraw order (z-order).
CadEntityTrimTrim target hEnt at the cutting edge(s); the clicked side (x,y) is removed (AutoCAD parity, trim_math.md §6).
CadGetEntityByCursorReturns the by cursor of the entity.
CadGetEntityByIDReturns the by i d of the entity.
CadGetEntityByPointReturns the by point of the entity.
CadGetEntityByPointInReturns the by point in of the entity.
CadGetEntityByPtrhPtr is already an entity handle in yucad's addressing — validate + echo it.
CadGetEntityByUserDataReturns the by user data of the entity.
CadGetEntityCountReturns the count of the entity.
CadGetFirstBlockReturns the first block definition for enumeration (see the matching GetNext).
CadGetFirstDimStyleReturns the first dimension style for enumeration (see the matching GetNext).
CadGetFirstEntityCadGetEntityByPoint / CadGetEntityByCursor are screen-space picks that need the view transform — implemented in api_window.cpp (has the view).
CadGetFirstLayerReturns the first layer for enumeration (see the matching GetNext).
CadGetFirstLinetypeLinetype table navigation (handle = index+1).
CadGetFirstMlineStyleReturns the first multiline style for enumeration (see the matching GetNext).
CadGetFirstPageReturns the first page (layout) for enumeration (see the matching GetNext).
CadGetFirstPntStyleReturns the first point style for enumeration (see the matching GetNext).
CadGetFirstTStyleReturns the first text style for enumeration (see the matching GetNext).
CadGetNextBlockReturns the block definition following the given one during enumeration.
CadGetNextDimStyleReturns the dimension style following the given one during enumeration.
CadGetNextEntityReturns the entity following the given one during enumeration.
CadGetNextLayerReturns the layer following the given one during enumeration.
CadGetNextLinetypeReturns the linetype following the given one during enumeration.
CadGetNextMlineStyleReturns the multiline style following the given one during enumeration.
CadGetNextPageReturns the page (layout) following the given one during enumeration.
CadGetNextPntStyleReturns the point style following the given one during enumeration.
CadGetNextTStyleReturns the text style following the given one during enumeration.
CadSelClearRemoves all content of the selection set.
CadSelColorSets the highlight colour used for selected entities.
CadSelCopyCreates a copy of every entity in the selection set, offset by the given delta.
CadSelCountReturns the number of selection sets.
CadSelDrawCadRecentDialog is implemented in api_window.cpp (it owns the Qt dialog).
CadSelectByDistSelects entities within a distance of a point.
CadSelectByLayerSelects every entity on the given layer.
CadSelectByPageSelect every model-space entity tagged with this page id (CadEntityPutPageID).
CadSelectByPolygonSelect/unselect entities inside the polygon defined by hEnt (a Polyline).
CadSelectByPolylineSelect/unselect entities crossed by the polyline hEnt.
CadSelectEntityAdds the entity to the selection set.
CadSelEraseErases every entity in the selection set from the drawing.
CadSelExplodeExplodes every entity in the selection set into its primitive components.
CadSelGetFirstPtrReturns the first selection set ptr for enumeration (see the matching GetNext).
CadSelGetNextPtrReturns the selection set ptr following the given one during enumeration.
CadSelJoinJoin the selected Line/Arc/Polyline entities into one polyline by endpoint proximity (join_polyline.md); erases the consumed sources; returns the new polyline handle.
CadSelMakeGripsShows grips on every entity in the selection set.
CadSelMirrorMirrors every entity in the selection set across the axis through the two points.
CadSelMoveMoves every entity in the selection set by the given delta.
CadSelRotateRotates every entity in the selection set around the given centre.
CadSelScaleScales every entity in the selection set around the given centre.

Line / Ray / XLine — 20

CadAddLineCreates a new line and returns its handle.
CadAddRayRay (semi-infinite) / XLine (construction line) — a Line with the infinite flag; (dx,dy) is the direction offset from the base point.
CadLineGetPoint1Whole-point getters (Vecad CadLineGetPoint1/2 — out via pointers).
CadLineGetPoint2Returns the point2 of the line.
CadLineGetX1Returns the x1 of the line.
CadLineGetX2Returns the x2 of the line.
CadLineGetY1Returns the y1 of the line.
CadLineGetY2Returns the y2 of the line.
CadLineGetZ1Returns the z1 of the line.
CadLineGetZ2Returns the z2 of the line.
CadLineIsRayReturns whether the line is a ray (infinite in one direction).
CadLineIsXReturns whether the line is an xline (infinite in both directions).
CadLinePutPoint1Sets the point1 of the line.
CadLinePutPoint2Sets the point2 of the line.
CadLinePutX1Sets the x1 of the line.
CadLinePutX2Sets the x2 of the line.
CadLinePutY1Sets the y1 of the line.
CadLinePutY2Sets the y2 of the line.
CadLinePutZ1Sets the z1 of the line.
CadLinePutZ2Sets the z2 of the line.

Arc & Circle — 39

CadAddArcCreates a new arc and returns its handle.
CadAddArc3PCreates a new arc — 3 p and returns its handle.
CadAddArcContinueArc tangent-continuing from hEnt's end point to (Xe,Ye).
CadAddArcCSEArc by centre + start + end (CCW from start to end).
CadAddArcSEDArc by start + end + start-tangent direction angle (degrees).
CadAddCircleCreates a new circle and returns its handle.
CadAddCircle3PCreates a new circle — 3 p and returns its handle.
CadArcDivideComputes N equally spaced points along the arc's swept span into the caller's arrays.
CadArcGet3PtReturns the 3 pt of the arc.
CadArcGetAngleReturns the angle of the arc.
CadArcGetCenterReturns the center of the arc.
CadArcGetCenterXReturns the center x of the arc.
CadArcGetCenterYReturns the center y of the arc.
CadArcGetCenterZReturns the center z of the arc.
CadArcGetEndPtReturns the end pt of the arc.
CadArcGetMidPtReturns the mid pt of the arc.
CadArcGetRadHorReturns the radius hor of the arc.
CadArcGetRadiusReturns the radius of the arc.
CadArcGetRadVerReturns the radius vertex of the arc.
CadArcGetRotAngleReturns the rotation angle of the arc.
CadArcGetSectorReturns the sector of the arc.
CadArcGetStartAngleReturns the start angle of the arc.
CadArcGetStartPtReturns the start pt of the arc.
CadArcGetTypeReturns the type of the arc.
CadArcPut3PtSets the 3 pt of the arc.
CadArcPutAngleSets the angle of the arc.
CadArcPutCenterSets the center of the arc.
CadArcPutCenterXSets the center x of the arc.
CadArcPutCenterYSets the center y of the arc.
CadArcPutCenterZSets the center z of the arc.
CadArcPutEndPtSets the end pt of the arc.
CadArcPutMidPtSets the mid pt of the arc.
CadArcPutRadHorSets the radius hor of the arc.
CadArcPutRadiusSets the radius of the arc.
CadArcPutRadVerSets the radius vertex of the arc.
CadArcPutRotAngleSets the rotation angle of the arc.
CadArcPutSectorSets the sector of the arc.
CadArcPutStartAngleSets the start angle of the arc.
CadArcPutStartPtSets the start pt of the arc.

Polyline — 58

CadAddPlineMarkVecad CadAddPlineMark — the id-less variant: allocate the next free mark Id, store a default-styled mark along hEnt, and return the Id.
CadAddPolygonClosed, colour-filled polygon from the vertex buffer (Vecad CadAddPolygon).
CadAddPolylineCreates a new polyline and returns its handle.
CadAddPolylineWCreates a new polyline — w and returns its handle.
CadAddRectAxis-aligned rectangle (rotated by Angle°) as a closed 4-vertex polyline.
CadAddVertexPushes a vertex into the global vertex buffer consumed by CadAddPolyline, CadAddPolygon and related builders.
CadAddVertex2Append a rich vertex (per-segment widths + fit parameter) to the build buffer consumed by CadAddPolyline / CadAddPolylineW.
CadPlineContainPointPoint-in-polygon (even-odd ray cast over the tessellated boundary).
CadPlineDeleteVerDeletes the polyline vertex.
CadPlineGetAreaEnclosed area via Green's theorem ∮ x dy (always closes the ring).
CadPlineGetClosedReturns the closed of the polyline.
CadPlineGetDistPointReturns the dist point of the polyline.
CadPlineGetEndTanReturns the end tan of the polyline.
CadPlineGetEndWReturns the end w of the polyline.
CadPlineGetFitReturns the fit of the polyline.
CadPlineGetInterPointNearest intersection of a polyline with the segment (x1,y1)-(x2,y2).
CadPlineGetLengthTotal length: chord for straight segments, arc length (r·θ) for bulged.
CadPlineGetNearPointReturns the near point of the polyline.
CadPlineGetNumVersReturns the number of vertices of the polyline.
CadPlineGetPrmReturns the parameter of the polyline.
CadPlineGetRadiusRadius of the first arc (non-zero bulge) segment; 0 if all straight.
CadPlineGetStartTanReturns the start tan of the polyline.
CadPlineGetStartWReturns the start w of the polyline.
CadPlineGetVerReturns the vertex of the polyline.
CadPlineGetWidthReturns the width of the polyline.
CadPlineGetXReturns the x of the polyline.
CadPlineGetYReturns the y of the polyline.
CadPlineGetZReturns the z of the polyline.
CadPlineInsertVerInserts a vertex into the polyline before the given index.
CadPlinePutClosedSets the closed of the polyline.
CadPlinePutEndTanSets the end tan of the polyline.
CadPlinePutEndWSets the end w of the polyline.
CadPlinePutFitSets the fit of the polyline.
CadPlinePutNumVersSets the number of vertices of the polyline.
CadPlinePutPrmSets the parameter of the polyline.
CadPlinePutRadiusSets the radius of the polyline.
CadPlinePutStartTanSets the start tan of the polyline.
CadPlinePutStartWSets the start w of the polyline.
CadPlinePutVerSets the vertex of the polyline.
CadPlinePutWidthSets the width of the polyline.
CadPlinePutXSets the x of the polyline.
CadPlinePutYSets the y of the polyline.
CadPlinePutZSets the z of the polyline.
CadPlinePutZ1Sets the z1 of the polyline.
CadRectGetAngleRectangle get angle.
CadRectGetCenterRectangle get center.
CadRectGetHeightRectangle get height.
CadRectGetNameRectangle get name.
CadRectGetPrintRectangle get print.
CadRectGetRadiusRectangle get radius.
CadRectGetWidthRectangle get width.
CadRectPutAngleRectangle put angle.
CadRectPutCenterRectangle put center.
CadRectPutHeightRectangle put height.
CadRectPutNameRectangle put name.
CadRectPutPrintRectangle put print.
CadRectPutRadiusRectangle put radius.
CadRectPutWidthRectangle put width.

Point & Point Style — 42

CadAddPointCreates a new point and returns its handle.
CadPntStyleGetBlockIDReturns the block i d of the point style.
CadPntStyleGetBlockScaleReturns the block scale of the point style.
CadPntStyleGetDrawModeReturns the draw mode of the point style.
CadPntStyleGetFixedReturns the fixed of the point style.
CadPntStyleGetFontReturns the font of the point style.
CadPntStyleGetIDReturns the i d of the point style.
CadPntStyleGetNameReturns the name of the point style.
CadPntStyleGetSnapReturns the snap of the point style.
CadPntStyleGetTextHeightReturns the text height of the point style.
CadPntStyleGetTextWidthReturns the text width of the point style.
CadPntStylePutBlockIDSets the block i d of the point style.
CadPntStylePutBlockScaleSets the block scale of the point style.
CadPntStylePutDrawModeSets the draw mode of the point style.
CadPntStylePutFixedSets the fixed of the point style.
CadPntStylePutFontSets the font of the point style.
CadPntStylePutNameSets the name of the point style.
CadPntStylePutSnapSets the snap of the point style.
CadPntStylePutTextHeightSets the text height of the point style.
CadPntStylePutTextWidthSets the text width of the point style.
CadPointGetBlockAngleReturns the block angle of the point.
CadPointGetCoordReturns the coordinate of the point.
CadPointGetStyleIDReturns the style i d of the point.
CadPointGetTextReturns the text of the point.
CadPointGetTextAngleReturns the text angle of the point.
CadPointGetTextOffsetReturns the text offset of the point.
CadPointGetTextXReturns the text x of the point.
CadPointGetTextYReturns the text y of the point.
CadPointGetXReturns the x of the point.
CadPointGetYReturns the y of the point.
CadPointGetZReturns the z of the point.
CadPointPutBlockAngleSets the block angle of the point.
CadPointPutCoordSets the coordinate of the point.
CadPointPutStyleIDSets the style i d of the point.
CadPointPutTextSets the text of the point.
CadPointPutTextAngleSets the text angle of the point.
CadPointPutTextOffsetSets the text offset of the point.
CadPointPutTextXSets the text x of the point.
CadPointPutTextYSets the text y of the point.
CadPointPutXSets the x of the point.
CadPointPutYSets the y of the point.
CadPointPutZSets the z of the point.

Text / MText / WText / Arc-Text — 72

CadAddMTextCreates a new multiline text (MTEXT) entity and returns its handle.
CadAddTextCreates a new text entity and returns its handle.
CadAddText2Creates a new text entity — 2 and returns its handle.
CadMTextGetAHReturns the a h of the multiline text (MTEXT) entity.
CadMTextGetAlignReturns the align of the multiline text (MTEXT) entity.
CadMTextGetAngleReturns the angle of the multiline text (MTEXT) entity.
CadMTextGetAWReturns the a w of the multiline text (MTEXT) entity.
CadMTextGetHeightReturns the height of the multiline text (MTEXT) entity.
CadMTextGetLenReturns the length of the multiline text (MTEXT) entity.
CadMTextGetLineSpaceReturns the line space of the multiline text (MTEXT) entity.
CadMTextGetPointReturns the point of the multiline text (MTEXT) entity.
CadMTextGetRectWidthReturns the rectangle width of the multiline text (MTEXT) entity.
CadMTextGetStyleIDReturns the style i d of the multiline text (MTEXT) entity.
CadMTextGetTextReturns the text of the multiline text (MTEXT) entity.
CadMTextGetWidthReturns the width of the multiline text (MTEXT) entity.
CadMTextPutAlignSets the align of the multiline text (MTEXT) entity.
CadMTextPutAngleSets the angle of the multiline text (MTEXT) entity.
CadMTextPutHeightSets the height of the multiline text (MTEXT) entity.
CadMTextPutLineSpaceSets the line space of the multiline text (MTEXT) entity.
CadMTextPutPointSetters (one undo step).
CadMTextPutRectWidthSets the rectangle width of the multiline text (MTEXT) entity.
CadMTextPutStyleIDSets the style i d of the multiline text (MTEXT) entity.
CadMTextPutTextSets the text of the multiline text (MTEXT) entity.
CadMTextPutWidthSets the width of the multiline text (MTEXT) entity.
CadTextGetAlignReturns the align of the text entity.
CadTextGetAngleReturns the angle of the text entity.
CadTextGetBackwardReturns the backward of the text entity.
CadTextGetBoxWidthReturns the box width of the text entity.
CadTextGetHeightReturns the height of the text entity.
CadTextGetLenReturns the length of the text entity.
CadTextGetObliqueReturns the oblique of the text entity.
CadTextGetPointReturns the point of the text entity.
CadTextGetPoint0Point0 = the first/baseline-left origin.
CadTextGetStyleIDReturns the style i d of the text entity.
CadTextGetTextMaxChars is the caller buffer size in bytes (Vecad ABI — CadApi.pas declares `CadTextGetText(hEnt, szText, MaxChars: Integer)`).
CadTextGetUpsideDownReturns the upside down of the text entity.
CadTextGetWidthReturns the width of the text entity.
CadTextGetXReturns the x of the text entity.
CadTextGetYReturns the y of the text entity.
CadTextGetZReturns the z of the text entity.
CadTextPutAlignSets the align of the text entity.
CadTextPutAngleSets the angle of the text entity.
CadTextPutBackwardSets the backward of the text entity.
CadTextPutHeightSets the height of the text entity.
CadTextPutObliqueSets the oblique of the text entity.
CadTextPutPointSets the point of the text entity.
CadTextPutStyleIDSets the style i d of the text entity.
CadTextPutTextSets the text of the text entity.
CadTextPutUpsideDownSets the upside down of the text entity.
CadTextPutWidthSets the width of the text entity.
CadTextPutXSets the x of the text entity.
CadTextPutYSets the y of the text entity.
CadTextPutZSets the z of the text entity.
CadWTextGetAlignReturns the align of the window-formatted text (WTEXT) entity.
CadWTextGetAngleReturns the angle of the window-formatted text (WTEXT) entity.
CadWTextGetHeightReturns the height of the window-formatted text (WTEXT) entity.
CadWTextGetItalicReturns the italic of the window-formatted text (WTEXT) entity.
CadWTextGetLenReturns the length of the window-formatted text (WTEXT) entity.
CadWTextGetPointReturns the point of the window-formatted text (WTEXT) entity.
CadWTextGetStrikeoutReturns the strikeout of the window-formatted text (WTEXT) entity.
CadWTextGetStyleIDReturns the style i d of the window-formatted text (WTEXT) entity.
CadWTextGetTextReturns the text of the window-formatted text (WTEXT) entity.
CadWTextGetUnderlineReturns the underline of the window-formatted text (WTEXT) entity.
CadWTextPutAlignSets the align of the window-formatted text (WTEXT) entity.
CadWTextPutAngleSets the angle of the window-formatted text (WTEXT) entity.
CadWTextPutHeightSets the height of the window-formatted text (WTEXT) entity.
CadWTextPutItalicSets the italic of the window-formatted text (WTEXT) entity.
CadWTextPutPointSets the point of the window-formatted text (WTEXT) entity.
CadWTextPutStrikeoutSets the strikeout of the window-formatted text (WTEXT) entity.
CadWTextPutStyleIDSets the style i d of the window-formatted text (WTEXT) entity.
CadWTextPutTextSets the text of the window-formatted text (WTEXT) entity.
CadWTextPutUnderlineSets the underline of the window-formatted text (WTEXT) entity.

Ellipse & Spline — 1

CadAddEllipseVecad CadAddEllipse(hDwg, centre, RadH, RadV, RotAngle) — a full ellipse.

Hatch — 11

CadAddHatchCreates a new hatch and returns its handle.
CadAddHatchPathCadAddHatchPath(hDwg, hEnt): accumulate hEnt's outline as a boundary path for the next CadAddHatch (Vecad order).
CadAddHatchPointCreates a new hatch — point and returns its handle.
CadHatchGetAngleReturns the angle of the hatch.
CadHatchGetNamePattern name + size (scale) getters (Vecad CadHatchGetName/GetSize).
CadHatchGetPatternPattern name get / put — our extra over Vecad's angle/scale-only attrs.
CadHatchGetScaleReturns the scale of the hatch.
CadHatchGetSizeReturns the size of the hatch.
CadHatchPutAngleSets the angle of the hatch.
CadHatchPutPatternSets the pattern of the hatch.
CadHatchPutScaleSets the scale of the hatch.

Dimensions & Leaders — 24

CadAddDimCreates a new dimension and returns its handle.
CadAddDimPointCreates a new dimension — point and returns its handle.
CadAddLeaderCreates a new leader and returns its handle.
CadDimGetPointReturns the point of the dimension.
CadDimGetStyleIDThe dimension's named dim-style (via the shared style handle table).
CadDimGetTextReturns the text of the dimension.
CadDimGetTypeReturns the type of the dimension.
CadDimGetValueReturns the value of the dimension.
CadDimPutPointSets the point of the dimension.
CadDimPutStyleIDSets the style i d of the dimension.
CadDimPutTextSets the text of the dimension.
CadLeaderGetArrSizeReturns the arr size of the leader.
CadLeaderGetNumVersReturns the number of vertices of the leader.
CadLeaderGetSplineReturns the spline of the leader.
CadLeaderGetTextReturns the text of the leader.
CadLeaderGetTextHReturns the text h of the leader.
CadLeaderGetTextLenReturns the text length of the leader.
CadLeaderGetVerReturns the vertex of the leader.
CadLeaderPutArrSizeSets the arr size of the leader.
CadLeaderPutNumVersSets the number of vertices of the leader.
CadLeaderPutSplineSets the spline of the leader.
CadLeaderPutTextSets the text of the leader.
CadLeaderPutTextHSets the text h of the leader.
CadLeaderPutVerSets the vertex of the leader.

Raster Image — 25

CadAddImageCreates a new raster image entity and returns its handle.
CadAddImagePlace"Drawn-by-client" placeholder image (no file; host paints it).
CadExtractImageExtracts a preview bitmap of a drawing file into the caller's buffer as a Windows BMP (allocate 250 000 bytes).
CadExtractImageMemExtracts a preview bitmap of an in-memory drawing into the caller's buffer as a Windows BMP (allocate 250 000 bytes).
CadImageGetFileReturns the file of the raster image entity.
CadImageGetPointReturns the point of the raster image entity.
CadImageGetScaleScale = pixels per drawing unit = 1 / |uvec|.
CadImageGetScaleXReturns the scale x of the raster image entity.
CadImageGetScaleYReturns the scale y of the raster image entity.
CadImageGetTColorReturns the t colour of the raster image entity.
CadImageGetTransparentReturns the transparent of the raster image entity.
CadImageGetXReturns the x of the raster image entity.
CadImageGetYReturns the y of the raster image entity.
CadImageGetZReturns the z of the raster image entity.
CadImagePutFileSets the file of the raster image entity.
CadImagePutPointSets the point of the raster image entity.
CadImagePutScaleSets the scale of the raster image entity.
CadImagePutScaleXSets the scale x of the raster image entity.
CadImagePutScaleYSets the scale y of the raster image entity.
CadImagePutSizeSets the size of the raster image entity.
CadImagePutTColorSets the t colour of the raster image entity.
CadImagePutTransparentSets the transparent of the raster image entity.
CadImagePutXSets the x of the raster image entity.
CadImagePutYSets the y of the raster image entity.
CadImagePutZSets the z of the raster image entity.

Blocks & Inserts — 97

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).

Multiline — 31

CadAddMlineCreates a new multiline entity and returns its handle.
CadAddMlineStyleCreates a new multiline style and returns its handle.
CadMlineDeleteVerDeletes the multiline entity vertex.
CadMlineGetClosedReturns the closed of the multiline entity.
CadMlineGetJustReturns the just of the multiline entity.
CadMlineGetLengthReturns the length of the multiline entity.
CadMlineGetNumVersReturns the number of vertices of the multiline entity.
CadMlineGetScaleReturns the scale of the multiline entity.
CadMlineGetStyleIDReturns the style i d of the multiline entity.
CadMlineGetVerReturns the vertex of the multiline entity.
CadMlineInsertVerInserts a vertex into the multiline before the given index.
CadMlinePutClosedSets the closed of the multiline entity.
CadMlinePutJustSets the just of the multiline entity.
CadMlinePutNumVersSets the number of vertices of the multiline entity.
CadMlinePutScaleSets the scale of the multiline entity.
CadMlinePutStyleIDSets the style i d of the multiline entity.
CadMlinePutVerSets the vertex of the multiline entity.
CadMlinePutZ1Sets the z1 of the multiline entity.
CadMlineStyleGetColorReturns the colour of the multiline style.
CadMlineStyleGetDrawModeReturns the draw mode of the multiline style.
CadMlineStyleGetIDReturns the i d of the multiline style.
CadMlineStyleGetLtypeIDReturns the linetype i d of the multiline style.
CadMlineStyleGetNameReturns the name of the multiline style.
CadMlineStyleGetNumLinesReturns the number of lines of the multiline style.
CadMlineStyleGetOffsetReturns the offset of the multiline style.
CadMlineStylePutColorSets the colour of the multiline style.
CadMlineStylePutDrawModeSets the draw mode of the multiline style.
CadMlineStylePutLtypeIDSets the linetype i d of the multiline style.
CadMlineStylePutNameSets the name of the multiline style.
CadMlineStylePutNumLinesSets the number of lines of the multiline style.
CadMlineStylePutOffsetSets the offset of the multiline style.

Layers — 30

CadAddLayerCreates a new layer and returns its handle.
CadLayerCountEntitiesReturns the number of layers.
CadLayerGetColorReturns the colour of the layer.
CadLayerGetDeletedReturns the deleted of the layer.
CadLayerGetDescrDescription (caller-owned buffer for the getter, Vecad style).
CadLayerGetDescrLenReturns the description length of the layer.
CadLayerGetFirstEntityLayer-scoped entity iteration (entities whose layer == this layer).
CadLayerGetIDReturns the i d of the layer.
CadLayerGetLevelReturns the level of the layer.
CadLayerGetLinetypeIDReturns the linetype i d of the layer.
CadLayerGetLineweightReturns the lineweight of the layer.
CadLayerGetLockReturns the lock of the layer.
CadLayerGetNameReturns the name of the layer.
CadLayerGetNextEntityReturns the layer entity following the given one during enumeration.
CadLayerGetPrintableReturns the printable of the layer.
CadLayerGetUserDataReturns the user data of the layer.
CadLayerGetVisibleReturns the visibility of the layer.
CadLayerPurgeDeletes the layer if it is empty and unreferenced.
CadLayerPutColorSets the colour of the layer.
CadLayerPutDescrSets the description of the layer.
CadLayerPutLevelSets the level of the layer.
CadLayerPutLinetypeIDSets the linetype i d of the layer.
CadLayerPutLineweightSets the lineweight of the layer.
CadLayerPutLockSets the lock of the layer.
CadLayerPutNameSets the name of the layer.
CadLayerPutPrintableSets the printable of the layer.
CadLayerPutUserDataPer-layer user data.
CadLayerPutVisibleSets the visibility of the layer.
CadLayerTreeCreateCreates the layer-tree dock panel inside a host panel.
CadSortLayersSorts the layer table by name.

Styles & Linetypes — 75

CadAddDimStyleCreates a new dimension style and returns its handle.
CadAddLinetypeCreates a new linetype and returns its handle.
CadAddLinetypeFCreates a new linetype — f and returns its handle.
CadAddTStyleCreates a new text style and returns its handle.
CadDimStyleGetArrowReturns the arrow of the dimension style.
CadDimStyleGetArrowSizeReturns the arrow size of the dimension style.
CadDimStyleGetCenMarkReturns the cen mark of the dimension style.
CadDimStyleGetColorIndexed: colour / lineweight by element Item; arrowhead by Place.
CadDimStyleGetExtBeyondReturns the extents beyond of the dimension style.
CadDimStyleGetExtOffsetReturns the extents offset of the dimension style.
CadDimStyleGetIDReturns the i d of the dimension style.
CadDimStyleGetLweightReturns the lineweight of the dimension style.
CadDimStyleGetNameReturns the name of the dimension style.
CadDimStyleGetPrecisionReturns the precision of the dimension style.
CadDimStyleGetPrefixReturns the prefix of the dimension style.
CadDimStyleGetRoundReturns the round of the dimension style.
CadDimStyleGetScaleReturns the scale of the dimension style.
CadDimStyleGetSeparatorReturns the separator of the dimension style.
CadDimStyleGetSuffixReturns the suffix of the dimension style.
CadDimStyleGetTextGapReturns the text gap of the dimension style.
CadDimStyleGetTextHeightReturns the text height of the dimension style.
CadDimStyleGetTextPlaceReturns the text place of the dimension style.
CadDimStyleGetTextStyleIDReturns the text style i d of the dimension style.
CadDimStyleGetUnitsDual (linear / angular) units + zero suppression, selected by bAngular.
CadDimStyleGetZeroSupReturns the zero sup of the dimension style.
CadDimStylePutArrowSets the arrow of the dimension style.
CadDimStylePutArrowSizeSets the arrow size of the dimension style.
CadDimStylePutCenMarkSets the cen mark of the dimension style.
CadDimStylePutColorSets the colour of the dimension style.
CadDimStylePutExtBeyondSets the extents beyond of the dimension style.
CadDimStylePutExtOffsetSets the extents offset of the dimension style.
CadDimStylePutLweightSets the lineweight of the dimension style.
CadDimStylePutNameSets the name of the dimension style.
CadDimStylePutPrecisionSets the precision of the dimension style.
CadDimStylePutPrefixSets the prefix of the dimension style.
CadDimStylePutRoundSets the round of the dimension style.
CadDimStylePutScaleSets the scale of the dimension style.
CadDimStylePutSeparatorSets the separator of the dimension style.
CadDimStylePutSuffixSets the suffix of the dimension style.
CadDimStylePutTextGapSets the text gap of the dimension style.
CadDimStylePutTextHeightSets the text height of the dimension style.
CadDimStylePutTextPlaceSets the text place of the dimension style.
CadDimStylePutTextStyleIDSets the text style i d of the dimension style.
CadDimStylePutUnitsSets the units of the dimension style.
CadDimStylePutZeroSupSets the zero sup of the dimension style.
CadLinetypeGetDataReturns the data of the linetype.
CadLinetypeGetDescrReturns the description of the linetype.
CadLinetypeGetIDReturns the i d of the linetype.
CadLinetypeGetNameReturns the name of the linetype.
CadLinetypeGetScaleReturns the scale of the linetype.
CadLinetypeIsByBlockReturns whether the handle denotes the BYBLOCK linetype.
CadLinetypeIsByLayerReturns whether the handle denotes the BYLAYER linetype.
CadLinetypeIsContinuousReturns whether the handle denotes the CONTINUOUS linetype.
CadLinetypePutDataSets the data of the linetype.
CadLinetypePutDataFSets the data f of the linetype.
CadLinetypePutDescrSets the description of the linetype.
CadLinetypePutNameSets the name of the linetype.
CadLinetypePutScaleSets the scale of the linetype.
CadTStyleGetBackwardReturns the backward of the text style.
CadTStyleGetFontReturns the font of the text style.
CadTStyleGetHeightReturns the height of the text style.
CadTStyleGetIDReturns the i d of the text style.
CadTStyleGetNameReturns the name of the text style.
CadTStyleGetObliqueReturns the oblique of the text style.
CadTStyleGetTTFNameReturns the ttf name of the text style.
CadTStyleGetUpsideDownReturns the upside down of the text style.
CadTStyleGetWidthReturns the width of the text style.
CadTStylePutBackwardSets the backward of the text style.
CadTStylePutFontSets the font of the text style.
CadTStylePutHeightSets the height of the text style.
CadTStylePutNameSets the name of the text style.
CadTStylePutObliqueSets the oblique of the text style.
CadTStylePutTTFNameSets the ttf name of the text style.
CadTStylePutUpsideDownSets the upside down of the text style.
CadTStylePutWidthSets the width of the text style.

Commands & Snapping — 39

CadAddCommandRegisters a host-defined command id runnable through CadCmdStart; the host drives it via the custom-command callbacks.
CadCmdAddPointCreates a new command — point and returns its handle.
CadCmdCountPointsReturns the number of commands.
CadCmdGetDataReturns the data of the command.
CadCmdGetInputPointReturns the input point of the command.
CadCmdGetInputStrReturns the input str of the command.
CadCmdGetPointReturns the point of the command.
CadCmdGetSizeCustom-command data blob (app-private; round-trips through the engine).
CadCmdPromptSets the command-window prompt text.
CadCmdPromptAddAppends a line to the command-window history.
CadCmdPutDataSets the data of the command.
CadCmdSetBasePointBase point for relative coordinates parsed by CadCmdStrToPoint.
CadCmdStartStarts an interactive command (CAD_CMD_*): the library runs the mouse loop, rubber-band preview and snapping until the command commits or is cancelled.
CadCmdStrToPointParse a coordinate string into a point.
CadCmdUserGetEntityInteractive single-entity pick (blocking).
CadCmdUserInputFeeds a typed input line to the running command, as if entered in the command window.
CadCmdUserSelectInteractive multi-pick selection (blocking) — left-click adds, right-click or ESC finishes.
CadCmdWindowCreateCreates the command window (history + input line) inside a host panel.
CadPolarAddAngleAdditional polar-tracking angles (degrees) + absolute/relative flag.
CadPolarDelAngleDeletes the polar tracking angle.
CadPolarGetAbsReturns the abs of the polar tracking.
CadPolarGetAngleReturns the angle of the polar tracking.
CadPolarGetDistReturns the dist of the polar tracking.
CadPolarGetDistOnReturns the dist on of the polar tracking.
CadPolarGetIncReturns the inc of the polar tracking.
CadPolarGetNumAngReturns the number of angle of the polar tracking.
CadPolarGetOnReturns the on of the polar tracking.
CadPolarPutAbsSets the abs of the polar tracking.
CadPolarPutDistSets the dist of the polar tracking.
CadPolarPutDistOnSets the dist on of the polar tracking.
CadPolarPutIncSets the inc of the polar tracking.
CadPolarPutOnSets the on of the polar tracking.
CadSetCmdParamSets the param of the command.
CadSetCmdPointInject a command point programmatically (Vecad CadSetCmdPoint): feeds (X,Y) to the active command as if the user clicked there.
CadSnapGetIndModeCurrently active individual (one-shot) snap mode, in Vecad CAD_SNAP_* numbering; 0 when no individual snap is armed.
CadSnapGetModeReturns the mode of the object snap.
CadSnapGetOnReturns the on of the object snap.
CadSnapPutModeSets the mode of the object snap.
CadSnapPutOnSets the on of the object snap.

Event Callbacks — 55

CadOnEventAreaRegisters the host callback fired on the area event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventBlockCreateRegisters the host callback fired on the block create event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCCmdDragRegisters the host callback fired on the c cmd drag event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCCmdExecuteRegisters the host callback fired on the c cmd execute event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntDisplayRegisters the host callback fired on the c ent display event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntGetExtsRegisters the host callback fired on the c ent get exts event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntGetGripRegisters the host callback fired on the c ent get grip event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntGetNameRegisters the host callback fired on the c ent get name event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntGetPropsRegisters the host callback fired on the c ent get props event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntMirrorRegisters the host callback fired on the c ent mirror event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntMoveRegisters the host callback fired on the c ent move event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntMoveGripRegisters the host callback fired on the c ent move grip event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntNumGripsRegisters the host callback fired on the c ent number of grips event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntPutPropRegisters the host callback fired on the c ent put prop event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntRotateRegisters the host callback fired on the c ent rotate event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCEntScaleRegisters the host callback fired on the c ent scale event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCmdFinishRegisters the host callback fired on the cmd finish event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCmdLBDownRegisters the host callback fired on the cmd lb down event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventCmdStartRegisters the host callback fired on the cmd start event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventDistanceRegisters the host callback fired on the distance event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventDrawImageRegisters the host callback fired on the draw image event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEngraveRegisters the host callback fired on the engrave event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntChangeRegisters the host callback fired on the ent change event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntCopyRegisters the host callback fired on the ent copy event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntCreateRegisters the host callback fired on the ent create event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntEraseRegisters the host callback fired on the ent erase event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntLoadRegisters the host callback fired on the ent load event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntMoveRegisters the host callback fired on the ent move event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntRotateRegisters the host callback fired on the ent rotate event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntScaleRegisters the host callback fired on the ent scale event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventEntSelectRegisters the host callback fired on the ent select event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventExecuteRegisters the host callback fired on the execute event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventFontReplaceRegisters the host callback fired on the font replace event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventGripDragRegisters the host callback fired on the grip drag event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventGripMoveRegisters the host callback fired on the grip move event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventKeyDownRegisters the host callback fired on the key down event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventLoadSaveRegisters the host callback fired on the load save event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventMouseDblClkRegisters the host callback fired on the mouse dbl clk event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventMouseDownRegisters the host callback fired on the mouse down event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventMouseMoveRegisters the host callback fired on the mouse move event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventMouseSnapRegisters the host callback fired on the mouse snap event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventMouseUpRegisters the host callback fired on the mouse up event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventMouseWheelRegisters the host callback fired on the mouse wheel event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventPaintRegisters the host callback fired on the paint event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventPlineDelVerRegisters the host callback fired on the pline del vertex event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventPlineEditVerRegisters the host callback fired on the pline edit vertex event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventPlineInsVerRegisters the host callback fired on the pline ins vertex event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventPolyFillRegisters the host callback fired on the poly fill event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventPromptRegisters the host callback fired on the prompt event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventRegenRegisters the host callback fired on the regen event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventRenderViewportRegisters the host callback fired on the render viewport event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventSaveDibRegisters the host callback fired on the save dib event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventSelCodepageRegisters the host callback fired on the sel codepage event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventSelPageRegisters the host callback fired on the sel page event (pass NULL to unregister; __stdcall, prototype must match).
CadOnEventViewRegisters the host callback fired on the view event (pass NULL to unregister; __stdcall, prototype must match).

Printing & Plot Areas — 40

CadExportImageVecad CadExportImage — render model space to a raster file (PNG/JPG/BMP by extension) of pixelWidth × pixelHeight.
CadPrintPrint the drawing.
CadPrintAtCenterCentres the plot on the paper.
CadPrintGetColorReturns the colour of the print setup.
CadPrintGetCopiesReturns the copies of the print setup.
CadPrintGetOffsetReturns the offset of the print setup.
CadPrintGetOrientReturns the orient of the print setup.
CadPrintGetPaperHReturns the paper h of the print setup.
CadPrintGetPaperSizeReturns the paper size of the print setup.
CadPrintGetPaperWReturns the paper w of the print setup.
CadPrintGetRectReturns the rectangle of the print setup.
CadPrintGetScaleReturns the scale of the print setup.
CadPrintGetScaleLWReturns the scale l w of the print setup.
CadPrintGetStampColorReturns the stamp colour of the print setup.
CadPrintGetStampPosReturns the stamp position of the print setup.
CadPrintGetStampSizeReturns the stamp size of the print setup.
CadPrintGetStampTextReturns the stamp text of the print setup.
CadPrintPreviewOn-screen print preview (Qt's QPrintPreviewDialog), painting each requested page through the same vector renderer.
CadPrintPutColorSets the colour of the print setup.
CadPrintPutCopiesSets the copies of the print setup.
CadPrintPutOffsetSets the offset of the print setup.
CadPrintPutOrientOrientation (0 = portrait, 1 = landscape) — operates on the current document (the no-hDwg Vecad print-setup family).
CadPrintPutRectSets the rectangle of the print setup.
CadPrintPutScaleOverall print scale (model units per paper mm; 0 = fit-to-page) + a title stamp toggle/text — convenience setters beyond the Pascal bindings.
CadPrintPutScaleLWSets the scale l w of the print setup.
CadPrintPutStampColorSets the stamp colour of the print setup.
CadPrintPutStampPosSets the stamp position of the print setup.
CadPrintPutStampSizeSets the stamp size of the print setup.
CadPrintPutStampTextSets the stamp text of the print setup.
CadPrintSetupWindows "Printer / Page Setup" dialog (Qt's QPageSetupDialog).
CadPrintToPdfPrints the drawing to a PDF file using the current print setup.
CadPrnRectAddCreates a new named print region and returns its handle.
CadPrnRectCountReturns the number of named print regions.
CadPrnRectDeleteDeletes the named print region.
CadPrnRectGetReturns the value of the named print region.
CadPrnRectGetShowReturns the show of the named print region.
CadPrnRectPrintPrints the named print region to the given device context.
CadPrnRectPutSets the value of the named print region.
CadPrnRectPutShowSets the show of the named print region.
CadRectPrintRectangle print.

Pages & Layouts — 14

CadAddVportVecad CadAddVport(hDwg, X, Y, W, H) — add a paper-space viewport that shows this drawing's OWN model space (unlike CadAddViewport, which shows the host's engineering data).
CadPageCopyCopies a page (layout) from one drawing to another.
CadPageGetHeightReturns the height of the page (layout).
CadPageGetIDReturns the i d of the page (layout).
CadPageGetNameReturns the name of the page (layout).
CadPageGetOrientReturns the orient of the page (layout).
CadPageGetSizeReturns the size of the page (layout).
CadPageGetWidthReturns the width of the page (layout).
CadPagePutHeightSets the height of the page (layout).
CadPagePutNameSets the name of the page (layout).
CadPagePutOrientSets the orient of the page (layout).
CadPagePutSizeSets the size of the page (layout).
CadPagePutWidthSets the width of the page (layout).
CadPageSaveSaves a single page (layout) to a file.

Road Alignment (RPlan/RProf) — 46

CadAddRPlanCreates a new road alignment (plan) and returns its handle.
CadAddRProfCreates a new road profile and returns its handle.
CadGetRPlanReturns the value of the road alignment (plan).
CadGetRProfReturns the value of the road profile.
CadRPlanAddCurveCreates a new road alignment (plan) — curve and returns its handle.
CadRPlanAddGrPointCreates a new road alignment (plan) — ground point and returns its handle.
CadRPlanAddGrSectionCreates a new road alignment (plan) — ground section and returns its handle.
CadRPlanClearRemoves all content of the road alignment (plan).
CadRPlanGenLevelsGenLevels generates contour lines from the ground sections and hands each to pFunc.
CadRPlanGetColorReturns the colour of the road alignment (plan).
CadRPlanGetCurveCenterReturns the curve center of the road alignment (plan).
CadRPlanGetCurveEndReturns the curve end of the road alignment (plan).
CadRPlanGetCurveStartReturns the curve start of the road alignment (plan).
CadRPlanGetCurveVertexReturns the curve vertex of the road alignment (plan).
CadRPlanGetDistReturns the dist of the road alignment (plan).
CadRPlanGetGrPointReturns the ground point of the road alignment (plan).
CadRPlanGetLineweightReturns the lineweight of the road alignment (plan).
CadRPlanGetNumRecsReturns the number of recs of the road alignment (plan).
CadRPlanGetPointReturns the point of the road alignment (plan).
CadRPlanGetVisibleReturns the visibility of the road alignment (plan).
CadRPlanGetZReturns the z of the road alignment (plan).
CadRPlanPutColorSets the colour of the road alignment (plan).
CadRPlanPutLineweightSets the lineweight of the road alignment (plan).
CadRPlanPutVisibleSets the visibility of the road alignment (plan).
CadRPlanSetEndSets the end of the road alignment (plan).
CadRPlanSetScaleSets the scale of the road alignment (plan).
CadRPlanSetStartSets the start of the road alignment (plan).
CadRPlanUpdateRecomputes the road alignment (plan) and refreshes its display.
CadRProfAddVerCreates a new road profile — vertex and returns its handle.
CadRProfClearRemoves all content of the road profile.
CadRProfDelVerDeletes the road profile vertex.
CadRProfGetColorReturns the colour of the road profile.
CadRProfGetCurvePrmReturns the curve parameter of the road profile.
CadRProfGetInterXReturns the inter x of the road profile.
CadRProfGetLineweightReturns the lineweight of the road profile.
CadRProfGetNumVersReturns the number of vertices of the road profile.
CadRProfGetVerReturns the vertex of the road profile.
CadRProfGetVisibleReturns the visibility of the road profile.
CadRProfGetYReturns the y of the road profile.
CadRProfPutColorSets the colour of the road profile.
CadRProfPutCurveLenSets the curve length of the road profile.
CadRProfPutLineweightSets the lineweight of the road profile.
CadRProfPutScaleSets the scale of the road profile.
CadRProfPutVerSets the vertex of the road profile.
CadRProfPutVisibleSets the visibility of the road profile.
CadRProfUpdateRecomputes the road profile and refreshes its display.

Custom Entities & Commands — 8

CadAddCustomCreates a custom (host-defined) entity; its appearance is supplied by the host's CEntDisplay callback.
CadCustomGetDataCustom get data.
CadCustomGetDataPtr64-bit ABI: a raw in-place data pointer can't be expressed as a 32-bit VHANDLE without truncation — use the safe Get/PutData copy path instead.
CadCustomGetOwnerCustom get owner.
CadCustomGetSizeCustom get size.
CadCustomGetTypeCustom get type.
CadCustomPutDataCustom put data.
CadCustomPutOwnerCustom put owner.

Parameters & Globals — 299

CadAccelSetDefaultAccel set default.
CadAccelSetKeyBinds a keyboard accelerator to a command id.
CadAddBoundaryVecad CadAddBoundary — boundary Polyline from existing objects that form an enclosed area around (X,Y).
CadAddBoundPolygonVecad CadAddBoundPolygon — same seed-point trace, closed as a filled polygon.
CadAddCustPropAdds a row to the custom-entity property table (call inside a CEntGetProps callback).
CadAddEdgeRegister hEnt as a cutting/boundary edge for the next Trim/Extend.
CadAddLayoutCreate (or fetch) a named paper-space layout; returns its 0-based index.
CadAddPageCreates a new page (layout) and returns its handle.
CadAddPntStyleCreates a new point style and returns its handle.
CadAddViewportAdd a viewport (a window on the sheet onto the engineering model) to a layout.
CadAddWTextCreates a new window-formatted text (WTEXT) entity and returns its handle.
CadAddWText2Creates a new window-formatted text (WTEXT) entity — 2 and returns its handle.
CadAddXLineCreates an infinite construction line (xline) through two points.
CadAddXrefAttaches an external-reference drawing (xref).
CadCboxCreateCreates a yucad-owned combo-box control (layer / colour / linetype selector) inside a host panel.
CadCboxSetActiveCbox set active.
CadCbPastePastes the clipboard content into the drawing at the given offset and selects the pasted entities.
CadClearVerticesEmpties the global vertex buffer (see CadAddVertex).
CadConvertAcadFileConvert one DXF file to another (read + write through the clean-room DXF I/O).
CadCoordDispToModelCoordinate disp to model.
CadCoordDispToWinCoordinate disp to win.
CadCoordModelToDispCoordinate model to disp.
CadCoordModelToWinCoordinate model to win.
CadCoordWinToDispCoordinate win to disp.
CadCoordWinToModelCoordinate win to model.
CadCountBlocksReturns the number of block definitions.
CadCountDimStylesReturns the number of dimension styles.
CadCountEntitiesTable counts (Vecad CadCount*).
CadCountLayersReturns the number of layers.
CadCountLinetypesReturns the number of linetypes.
CadCountMlineStylesReturns the number of multiline styles.
CadCountPagesReturns the number of page (layout)s.
CadCountPntStylesReturns the number of point styles.
CadCountTStylesReturns the number of text styles.
CadDeleteCadDelete destroys the whole VeCAD object (alias of CadDestroy, void).
CadDeleteBlockDeletes the block definition.
CadDeleteDimStyleDeletes the dimension style.
CadDeleteLayerTable deletions (Vecad CadDelete<Table>).
CadDeleteLinetypeDeletes the linetype.
CadDeleteMlineStyleDeletes the multiline style.
CadDeletePageDeletes the page (layout).
CadDeletePntStyleDeletes the point style.
CadDeleteTStyleDeletes the text style.
CadDialogOpenFileNative Qt open/save file dialogs; write the chosen UTF-8 path into szOut.
CadDialogSaveFileDialog save file.
CadDistModelToWinDistance conversions model<->window pixels via the view's zoom.
CadDistWinToModelDist win to model.
CadEngraveGenerates an engraving (fill-stroke) block from the selected entities.
CadExecuteVecad's universal command runner.
CadFontsListEnumerates the available fonts through the host callback.
CadFreeLibraryUnloads a plugin DLL loaded with CadLoadLibrary.
CadGetAngleUnitReturns the angle unit the ABI speaks (default: radians).
CadGetAutoSelReturns whether click-selection (auto-select) is enabled.
CadGetAutoSelRectGet auto sel rectangle.
CadGetBlockByIDReturns the by i d of the block definition.
CadGetBlockByNameReturns the by name of the block definition.
CadGetBrushReturns the current fill-brush handle.
CadGetCharQualityGet char quality.
CadGetCmdParamSizeless param channel (the ABI gives no byte count) — cannot copy safely.
CadGetCrossSizeReturns the crosshair size (percent of the window).
CadGetCurBlockGet current block.
CadGetCurColorCurrent entity colour (ACI) + lineweight applied to new entities.
CadGetCurDimStyleGet current dim style.
CadGetCurLayerGet current layer.
CadGetCurLinetypeGet current linetype.
CadGetCurLweightGet current lineweight.
CadGetCurMlineStyleGet current mline style.
CadGetCurPageGet current page.
CadGetCurPntStyleGet current point style.
CadGetCurTStyleGet current t style.
CadGetCurveQualityGet curve quality.
CadGetDefaultDirGet default direction.
CadGetDefaultFontGet default font.
CadGetDescrReturns the drawing's description string.
CadGetDescrLenGet description length.
CadGetDimStyleByIDReturns the by i d of the dimension style.
CadGetDimStyleByNameReturns the by name of the dimension style.
CadGetDirtyReturns whether the drawing has unsaved changes.
CadGetDistScalePer-document distance scale (Vecad CadGet/PutDistScale).
CadGetDrawCheckStepGet draw check step.
CadGetDrawOnlyCurLayerGet draw only current layer.
CadGetDwgVersionFormat-version getters (Vecad CadGetDwg/DxfVersion).
CadGetDxfDecPrecGet dxf dec prec.
CadGetDxfVersionGet dxf version.
CadGetEntitiesByPointReturns the by point of the entity.
CadGetEntitiesByRectReturns the by rectangle of the entity.
CadGetErrorReturns the last error code.
CadGetErrorStrCopies the text of the last error into the caller's buffer.
CadGetExDataReturns the drawing's application-data blob.
CadGetExDataPtrGet ex data ptr.
CadGetExDataSizeDocument-level extended-data blob.
CadGetExtentBottomGet extent bottom.
CadGetExtentLeftAliases (Left=Xmin, Right=Xmax, Bottom=Ymin, Top=Ymax).
CadGetExtentRectGet extent rectangle.
CadGetExtentRightGet extent right.
CadGetExtentTopReturns the top (maximum Y) of the drawing extents.
CadGetExtentXmaxGet extent xmax.
CadGetExtentXminGet extent xmin.
CadGetExtentYmaxGet extent ymax.
CadGetExtentYminGet extent ymin.
CadGetExtentZmaxGet extent zmax.
CadGetExtentZminGet extent zmin.
CadGetFileFilterGet file filter.
CadGetFileNameReturns the drawing's current file name.
CadGetGripColorGet grip colour.
CadGetGripSizeReturns the grip-box half-size in pixels.
CadGetImageBorderReturns the border of the raster image entity.
CadGetInterPointsGet inter points.
CadGetLayerByIDReturns the by i d of the layer.
CadGetLayerByNameReturns the by name of the layer.
CadGetLayerWndVisibleReturns the wnd visibility of the layer.
CadGetLayoutCountNumber of paper-space layouts (for building a Model | Layout… tab strip).
CadGetLayoutNameName of layout `idx` into szName (caller-allocated).
CadGetLicenseEditionRegistered edition (1 = Standard, 2 = Pro, 3 = Enterprise), or 0 if unregistered.
CadGetLicenseExpiryLicence expiry as YYYYMMDD (0 = perpetual / unregistered).
CadGetLicenseNameLicensee (company) name of the registered licence, into a caller buffer.
CadGetLinetypeByBlockReturns the by block of the linetype.
CadGetLinetypeByIDReturns the by i d of the linetype.
CadGetLinetypeByLayerReturns the by layer of the linetype.
CadGetLinetypeByNameReturns the by name of the linetype.
CadGetLinetypeContinuousReturns the continuous of the linetype.
CadGetLwDefaultReturns the default lineweight for new entities.
CadGetLwDisplayReturns whether lineweights are displayed.
CadGetLwScaleReturns the lineweight display scale.
CadGetMinCharFSizeGet min char f size.
CadGetMinCharSizeGet min char size.
CadGetMinEntSizeGet min ent size.
CadGetMiterLimitGet miter limit.
CadGetMlineStyleByIDReturns the by i d of the multiline style.
CadGetMlineStyleByNameReturns the by name of the multiline style.
CadGetOwnerReturns the host-defined owner value attached to the drawing.
CadGetPageByIDReturns the by i d of the page (layout).
CadGetPageByNameReturns the by name of the page (layout).
CadGetParamReturns a global engine parameter (CAD_GL_*).
CadGetPathFileNameCHM-documented name for the path-stripped filename — same as ShortFileName.
CadGetPenNo GDI pen/brush objects — drawing is OpenGL.
CadGetPickboxSizeGet pickbox size.
CadGetPickEntityVecad CadGetPickEntity — the entity under the cursor (last pick).
CadGetPntStyleByIDReturns the by i d of the point style.
CadGetPntStyleByNameReturns the by name of the point style.
CadGetPointModeDocument point display mode (PDMODE) + size (PDSIZE).
CadGetPointSizeReturns the size of the point.
CadGetReadOnlyReturns whether the drawing is read-only.
CadGetReturnVarReturns the numeric result variable of the last command (Vecad legacy; defaults to 0).
CadGetReturnXReturns the X coordinate of the last command's result point.
CadGetReturnYReturns the Y coordinate of the last command's result point.
CadGetReturnZReturns the Z coordinate of the last command's result point.
CadGetSelByLayerReturns the by layer of the selection set.
CadGetSelColorReturns the colour of the selection set.
CadGetSelInsideReturns the inside of the selection set.
CadGetSelLineReturns the line of the selection set.
CadGetSelShiftAddReturns the shift add of the selection set.
CadGetShortFileNameGet short file name.
CadGetShowCrossDisplay / selection scalar settings (process-global, no hDwg).
CadGetShowSysCursorGet show sys cursor.
CadGetTStyleByIDReturns the by i d of the text style.
CadGetTStyleByNameReturns the by name of the text style.
CadGetUnselAfterEditGet unsel after edit.
CadGetUseGripsReturns whether grip editing is enabled.
CadGetVBStringReturns the engine's string result (Visual Basic-safe accessor).
CadGetViewCoefsZoom/pan step coefficients used by the zoom/pan commands.
CadGetWinBottomReturns the bottom of the host window.
CadGetWindowThe CAD viewport's native window handle (HWND as void*).
CadGetWindowSizeReturns the size of the host window.
CadGetWinLeftReturns the left of the host window.
CadGetWinRectReturns the rectangle of the host window.
CadGetWinRightReturns the right of the host window.
CadGetWinTopReturns the top of the host window.
CadHelpSmall informational Qt windows.
CadInvalidateViewportMark a viewport's engineering content stale so the paper-space renderer re-asks the host on the next repaint.
CadIsRegisteredWhether a valid licence is currently registered.
CadLibraryBrowserCreateLibrary browser create.
CadLoadColorsLoads a colour palette from a file.
CadLoadLibraryLoads a host plugin DLL.
CadMagGetPosMag get position.
CadMagGetScaleReturns the magnifier window's zoom factor.
CadMagGetShowMagnifier loupe (process-global view widget settings, no hDwg).
CadMagGetSizeReturns the magnifier window's size.
CadMagPutPosMag put position.
CadMagPutScaleSets the magnifier window's zoom factor.
CadMagPutShowShows or hides the magnifier window.
CadMagPutSizeSets the magnifier window's size.
CadMenuAddCreates a new context menu and returns its handle.
CadMenuClearRemoves all content of the context menu.
CadPluginImageReadPlugin image read.
CadPluginsDlgShows the plugins dialog.
CadProfileGetNameProfile get name.
CadProfileLoadLoads a named settings profile (the global CAD_GL_* parameters).
CadProfileSaveProfiles persist as a small named marker file (yucad has no broad settings serialization yet — the named profile round-trips via a real file op).
CadPropWndCreateProperties window (Vecad "Properties" dock) — a live property grid for the current selection, embedded into the host panel like the layer tree.
CadPurgeVecad CadPurge — deletes entities / named objects by Mode (vecad CHM Funcs/CadPurge.htm).
CadPutDescrSets the drawing's description string.
CadPutDirtySets or clears the drawing's modified (unsaved-changes) flag.
CadPutDistScaleSets the distance scale factor applied by measurement functions.
CadPutDrawOnlyCurLayerPut draw only current layer.
CadPutExDataAttaches an application-data blob to the drawing.
CadPutFileNameSets the drawing's file name (used by subsequent saves).
CadPutLwDefaultSets the default lineweight for new entities.
CadPutLwDisplayShows or hides lineweight display.
CadPutLwScaleSets the lineweight display scale.
CadPutOwnerAttaches a host-defined owner value to the drawing.
CadPutPaintMarkLegacy paint-mark toggle (accepted for Vecad compatibility).
CadPutPointModeSets the mode of the point.
CadPutPointSizeSets the size of the point.
CadPutReadOnlyMarks the drawing read-only or writable.
CadRasterizeRasterize a WORLD region to an image at the given resolution.
CadRecentAddAdds a file to the most-recently-used list.
CadRecentDialog"Recent Files List" dialog (Vecad CadRecentDialog).
CadRecentLoadLoads the most-recently-used file list.
CadRecentSaveSaves the most-recently-used file list.
CadRegisterRegister the SDK licence.
CadRegistrationEnters the licence / registration key.
CadSaveColorsPersist / load the 256-entry palette as text (one decimal COLORREF per line).
CadSeekColorCadSeekColor is the same nearest-index search under its other Vecad name.
CadSetAngleUnitSets the angle unit used by all angle-taking / returning functions.
CadSetAutoSelEnables or disables click-selection (auto-select).
CadSetAutoSelRectSet auto sel rectangle.
CadSetBlinkTimeSets the blink interval for blinking entities, in milliseconds.
CadSetCharQualitySet char quality.
CadSetCrossSizeSets the crosshair size (percent of the window).
CadSetCurBlockSet current block.
CadSetCurColorSet current colour.
CadSetCurDimStyleSet current dim style.
CadSetCurDimStyleByIDSet current dim style by i d.
CadSetCurDimStyleByNameSet current dim style by name.
CadSetCurLayerSet current layer.
CadSetCurLayerByIDSet current layer by i d.
CadSetCurLayerByNameSet current layer by name.
CadSetCurLinetypeSet current linetype.
CadSetCurLinetypeByIDSet current linetype by i d.
CadSetCurLinetypeByNameSet current linetype by name.
CadSetCurLweightSet current lineweight.
CadSetCurMlineStyleSet current mline style.
CadSetCurMlineStyleByIDSet current mline style by i d.
CadSetCurMlineStyleByNameSet current mline style by name.
CadSetCurPageSet current page.
CadSetCurPageByIDSet current page by i d.
CadSetCurPageByNameSet current page by name.
CadSetCurPntStyleSet current point style.
CadSetCurPntStyleByIDSet current point style by i d.
CadSetCurPntStyleByNameSet current point style by name.
CadSetCurTStyleSet the active text style — new TEXT / MTEXT seed from it.
CadSetCurTStyleByIDSet current t style by i d.
CadSetCurTStyleByNameSet current t style by name.
CadSetCurveQualitySet curve quality.
CadSetCustPropUpdates the value of a custom-entity property row.
CadSetCustPropModeSets a custom-entity property row read-only or editable.
CadSetDefaultDirSet default direction.
CadSetDefaultFontSet default font.
CadSetDrawCheckStepSet draw check step.
CadSetDwgVersionSet dwg version.
CadSetDxfDecPrecSet dxf dec prec.
CadSetDxfVersionSet dxf version.
CadSetFileFilterSet file filter.
CadSetGripColorSet grip colour.
CadSetGripSizeSets the grip-box half-size in pixels.
CadSetImageBorderSets the border of the raster image entity.
CadSetMinCharFSizeSet min char f size.
CadSetMinCharSizeSet min char size.
CadSetMinEntSizeSet min ent size.
CadSetMiterLimitSet miter limit.
CadSetMsgTitleMessage-box title, blink interval, current profile name (process-global).
CadSetOffsetDistanceSet offset distance.
CadSetParamSets a global engine parameter (CAD_GL_*) and returns the previous value.
CadSetPickboxSizeSet pickbox size.
CadSetPlineMarkVecad CadSetPlineMark — a temporary GIS highlight drawn ALONG hEnt's contour from `Start` for `Len` drawing units (Len==0 => a point marker).
CadSetPolygonSidesSet polygon sides.
CadSetReturnDblSets the numeric result a host callback hands back to the engine.
CadSetReturnIntSets the integer result a host callback hands back to the engine.
CadSetReturnStrSets the string result a host callback hands back to the engine.
CadSetSelByLayerSets the by layer of the selection set.
CadSetSelColorSets the colour of the selection set.
CadSetSelInsideSets the inside of the selection set.
CadSetSelLineSets the line of the selection set.
CadSetSelShiftAddSets the shift add of the selection set.
CadSetShowCrossShows or hides the crosshair cursor.
CadSetShowSysCursorSet show sys cursor.
CadSetSpaceSwitch the live view's drawing space: -1 = model, >= 0 = a paper-space layout (Model / Layout tabs).
CadSetStringString table by id (CadSetString sets; CadGetVBString reads into a buffer).
CadSetSystemCursorSet system cursor.
CadSetTextAlignSets the align of the text entity.
CadSetTextBackwardCurrent-text flags for new TEXT (return the previous value).
CadSetTextHeightSets the height of the text entity.
CadSetTextObliqueSets the oblique of the text entity.
CadSetTextRotAngleSets the rotation angle of the text entity.
CadSetTextUpsideDownSets the upside down of the text entity.
CadSetTextWidthSets the width of the text entity.
CadSetUnselAfterEditSet unsel after edit.
CadSetUseGripsEnables or disables grip editing.
CadSetViewCoefsSets the coefs of the view.
CadSHX2YUCFConverts an SHX font file to yucad's native .yucf font format (offline content tool).
CadTipOfTheDayShows the tip-of-the-day window.
CadTTF2YUCFConverts a TrueType font to yucad's native .yucf font format (offline content tool).
CadUndoOffEnters bulk-load mode: turns off undo recording and drops the current history.
CadUndoOnLeaves bulk-load mode: restores normal undo recording and fires one full repaint of every view.
CadXrefGetPathReturns the file path of the external reference.
CadXrefGetStatusXref get status.
CadXrefPutPathSets the file path of the external reference.
CadXrefReloadLoad (or refresh) the external drawing into the xref block's entities.