Archicad 28 C++ API
|
Functions related to the Database Manager, creating, manupulating and switching between different Drawing databases. More...
Classes | |
struct | API_DrawingLinkInfo |
Parameters of a drawing link. More... | |
struct | API_NumberingGridLine |
Represents a drawing numbering grid line of the layout. More... | |
Typedefs | |
typedef GSErrCode | APINumberingGridLineProc(const API_NumberingGridLine *gridLine) |
User supplied callback function for processing the drawing numbering grid lines. | |
Enumerations | |
enum | API_DrawingLinkTypeID { API_DrawingLink_UnknownID = 0 , API_DrawingLink_InternalViewID , API_DrawingLink_ExternalViewID , API_DrawingLink_DrawingID , API_DrawingLink_DXF_DWGID , API_DrawingLink_PDFID , API_DrawingLink_ImageID , API_DrawingLink_PMKID , API_DrawingLink_APIID , API_DrawingLink_InfoID , API_DrawingLink_OtherID } |
Type of the drawing link. More... | |
enum | API_ViewNodeTypeID { API_ViewNodeUndefined = 0 , API_ViewNodeStory = 1 , API_ViewNodeSection = 2 , API_ViewNodeDetailDrawing = 3 , API_ViewNodePerspective = 4 , API_ViewNodeAxonometry = 5 , API_ViewNodeList = 6 , API_ViewNodeSchedule = 7 , API_ViewNodeToc = 8 , API_ViewNodeCamera = 9 , API_ViewNodeCameraSet = 10 , API_ViewNodeElevation = 11 , API_ViewNodeInteriorElevation = 12 , API_ViewNodeWorksheetDrawing = 13 , API_ViewNodeDocumentFrom3D = 14 , API_ViewNodeAPIList = 15 } |
Type of the view nodes. More... | |
Functions | |
GSErrCode | ACAPI_Drawing_GetDrawingScale (double *scale) |
Returns the drawing scale of the current database. | |
GSErrCode | ACAPI_Drawing_ChangeDrawingScale (double *scale, bool zoom=false) |
Changes the drawing scale. | |
GSErrCode | ACAPI_Drawing_StartDrawingData (double *dScale=nullptr, const GS::Array< API_Pen > *api_pens=nullptr) |
Redirects element creation into a temporary database for creating drawing data. | |
GSErrCode | ACAPI_Drawing_StopDrawingData (GSPtr *idfMem=nullptr, API_Box *api_boundBox=nullptr) |
Finalizes the direct creation of drawing elements. | |
GSErrCode | ACAPI_Drawing_GetDrawingLink (const API_Guid *guid, API_DrawingLinkInfo *drawingLinkInfo) |
Returns various information on a drawing link. | |
GSErrCode | ACAPI_Drawing_CheckDrawingStatus (API_Guid *guid, Int32 *status) |
Checks whether the given drawing is up-to-date. | |
GSErrCode | ACAPI_Drawing_GetFullDrawingContentBox (API_Box *api_box, const API_Guid *drawingGuid) |
Returns the full boundary box of an IDF database. | |
GSErrCode | ACAPI_Drawing_GetNumberingGridLines (APINumberingGridLineProc *gridLineProc) |
Retrieves the lines of the grid-based drawing numbering system. | |
GSErrCode | ACAPI_Drawing_IsMarkerDrawingEnabled (bool *enabled) |
Checks whether attached objects (window/door markers, drawing titles, etc.) are processed and returned during primitive decomposition. | |
GSErrCode | ACAPI_Drawing_ChangeMarkerDrawingEnabled (bool enabled) |
Sets whether attached objects (window/door markers, drawing titles, etc.) should be processed and returned during primitive decomposition. | |
GSErrCode | ACAPI_Drawing_Update_Drawings (const GS::Array< API_Guid > &drawingsToUpdate) |
Triggers a manual update of the specified drawings. | |
Functions related to the Database Manager, creating, manupulating and switching between different Drawing databases.
typedef GSErrCode APINumberingGridLineProc(const API_NumberingGridLine *gridLine) |
User supplied callback function for processing the drawing numbering grid lines.
gridLine | [in] This structure contains parameters (coordinates, pen color, line type) of the current drawing numbering grid lines |
Type of the drawing link.
enum API_ViewNodeTypeID |
Type of the view nodes.
GSErrCode ACAPI_Drawing_ChangeDrawingScale | ( | double * | scale, |
bool | zoom = false |
||
) |
Changes the drawing scale.
scale | [in] The new scale for the drawing. |
zoom | [in] Perform a rebuild command after changing the scale. |
GSErrCode ACAPI_Drawing_ChangeMarkerDrawingEnabled | ( | bool | enabled | ) |
Sets whether attached objects (window/door markers, drawing titles, etc.) should be processed and returned during primitive decomposition.
enabled | [in] True if attached objects should be processed. |
GSErrCode ACAPI_Drawing_CheckDrawingStatus | ( | API_Guid * | guid, |
Int32 * | status | ||
) |
Checks whether the given drawing is up-to-date.
guid | [in] The GUID of the drawing element |
status | [out] 1 if the drawing is up-to-date, 0 if modified, -1 otherwise |
GSErrCode ACAPI_Drawing_GetDrawingLink | ( | const API_Guid * | guid, |
API_DrawingLinkInfo * | drawingLinkInfo | ||
) |
Returns various information on a drawing link.
guid | [in] get information for drawing link identified with drawing's guid |
drawingLinkInfo | [out] the drawing link's type, guid, etc. |
GSErrCode ACAPI_Drawing_GetDrawingScale | ( | double * | scale | ) |
Returns the drawing scale of the current database.
scale | [out] the drawing scale |
GSErrCode ACAPI_Drawing_GetFullDrawingContentBox | ( | API_Box * | api_box, |
const API_Guid * | drawingGuid | ||
) |
Returns the full boundary box of an IDF database.
api_box | [out] The bounding box of the drawing's IDF. |
drawingGuid | [in] The guid of the drawing contains the IDF. |
GSErrCode ACAPI_Drawing_GetNumberingGridLines | ( | APINumberingGridLineProc * | gridLineProc | ) |
Retrieves the lines of the grid-based drawing numbering system.
gridLineProc | The callback function to be called to process the lines of the drawing numbering grid. |
GSErrCode ACAPI_Drawing_IsMarkerDrawingEnabled | ( | bool * | enabled | ) |
Checks whether attached objects (window/door markers, drawing titles, etc.) are processed and returned during primitive decomposition.
enabled | [out] True if attached objects are processed. |
GSErrCode ACAPI_Drawing_StartDrawingData | ( | double * | dScale = nullptr , |
const GS::Array< API_Pen > * | api_pens = nullptr |
||
) |
Redirects element creation into a temporary database for creating drawing data.
dScale | [in] optional parameter (the default value is 1.0); defines the scaling from paper to model. For example, for 1:100 scaling, pass 100. |
api_pens | [in] optional parameter (the default pen table is coming from the current workspace (layout or model)); defines the pen table to use for this drawing data. |
GSErrCode ACAPI_Drawing_StopDrawingData | ( | GSPtr * | idfMem = nullptr , |
API_Box * | api_boundBox = nullptr |
||
) |
Finalizes the direct creation of drawing elements.
idfMem | [out] an opaque data stream containing the drawing database in a serialized form |
api_boundBox | [out] optional parameter; if not nullptr then on return contains the bounding box of the created elements |
GSErrCode ACAPI_Drawing_Update_Drawings | ( | const GS::Array< API_Guid > & | drawingsToUpdate | ) |
Triggers a manual update of the specified drawings.
drawingsToUpdate | [in] List of the drawings to be updated. |