Archicad 28 C++ API
|
Functions related to the iteration and manipulation of the items of the Project Navigator. More...
Classes | |
struct | API_Attr_Head |
Contains common information related to all attribute types. More... | |
struct | API_SubSet |
Represents a Subset in the Layout Book. More... | |
struct | API_LayoutBook |
Represents the Book settings. More... | |
struct | API_UIStructureDisplay |
This structure represents the Partial Structure Display state. More... | |
struct | API_LengthDimFormat |
The representation of the linear, radial, level, elevation, door/window and parapet dimensioning on the Preferences / Dimensioning tab page. More... | |
struct | API_AngleDimFormat |
The representation of the angle dimensioning on the Preferences / Dimensioning tab page. More... | |
struct | API_AreaDimFormat |
The representation of the area dimensioning on the Preferences / Dimensioning tab page. More... | |
struct | API_LayoutInfo |
Properties of an Archicad Layout. More... | |
struct | API_NavigatorSet |
Parameters of a project Navigator Set. More... | |
struct | API_NavigatorItem |
Represents a Project Navigator item. More... | |
struct | API_NavigatorView |
Representation of a Navigator view item. More... | |
struct | API_NavigatorAddOnViewPointData |
Describes a Navigator AddOn viewpoint root, group or leaf node. More... | |
struct | API_GDLModelViewOptions |
Represents the GDL related model view options. More... | |
struct | API_CurtainWallModelViewOptions |
Represents the model view options of Curtain Walls made with the Curtain Wall Tool. The entire structure is Archicad only. More... | |
struct | API_StairModelViewOptions |
Represents the model view options of Stairs made with Stair Tool. The entire structure is Archicad only. More... | |
struct | API_RailingModelViewOptions |
Represents the model view options of Railings made with Railing Tool. The entire structure is Archicad only. More... | |
struct | API_ModelViewOptions |
Represents the model view options. More... | |
struct | API_ModelViewOptions_Head |
Contains common information related to API_ModelViewOptionsType types. More... | |
struct | API_ModelViewOptionsType |
Representation of the model view options. More... | |
struct | API_OnScreenViewOptions |
Representation of the display only options. More... | |
struct | API_ViewOptions |
Describes various display output options. More... | |
struct | API_DimensionStandards_Head |
Contains common information related to dimension preference types. More... | |
struct | API_DimensionStandardsType |
Representation of the dimension preference. More... | |
struct | INavigatorCallbackInterface |
Callback interface object to register with ACAPI_Navigator_RegisterCallbackInterface. More... | |
Enumerations | |
enum | API_AttrTypeID : int { API_ZombieAttrID = 0 , API_FirstAttributeID , API_LayerID = API_FirstAttributeID , API_LinetypeID , API_FilltypeID , API_CompWallID , API_MaterialID , API_LayerCombID , API_ZoneCatID , API_ProfileID , API_PenTableID , API_MEPSystemID , API_OperationProfileID , API_BuildingMaterialID , API_LastAttributeID = API_BuildingMaterialID } |
The type of an attribute. More... | |
enum | API_NumberingStyle { API_NS_Undefined = 0 , API_NS_abc = 1 , API_NS_ABC = 2 , API_NS_1 = 3 , API_NS_01 = 4 , API_NS_001 = 5 , API_NS_0001 = 6 , API_NS_noID = 8 } |
Describes the Layout ID styles. More... | |
enum class | API_LengthTypeID { Meter , Decimeter , Centimeter , Millimeter , FootFracInch , FootDecInch , DecFoot , FracInch , DecInch , KiloMeter , Yard } |
Possible values for length unit preferences. More... | |
enum class | API_AreaTypeID { SquareMeter , SquareKiloMeter , SquareDeciMeter , SquareCentimeter , SquareMillimeter , SquareFoot , SquareInch , SquareYard } |
Possible values for area unit preferences. More... | |
enum class | API_AngleTypeID { DecimalDegree , DegreeMinSec , Grad , Radian , Surveyors } |
Possible values for angle unit preferences. | |
enum | API_ExtraAccuracyID { APIExtAc_Off = 0 , APIExtAc_Small5 = 1 , APIExtAc_Small25 = 2 , APIExtAc_Small1 = 3 , APIExtAc_Small01 = 4 , APIExtAc_Fractions = 10 } |
European methods for rounding decimal values. | |
enum | API_NavigatorItemTypeID { API_UndefinedNavItem = 0 , API_ProjectNavItem = 1 , API_StoryNavItem = 2 , API_SectionNavItem = 3 , API_DetailDrawingNavItem = 4 , API_PerspectiveNavItem = 5 , API_AxonometryNavItem = 6 , API_ListNavItem = 7 , API_ScheduleNavItem = 8 , API_TocNavItem = 9 , API_CameraNavItem = 10 , API_CameraSetNavItem = 11 , API_InfoNavItem = 12 , API_HelpNavItem = 13 , API_LayoutNavItem = 14 , API_MasterLayoutNavItem = 15 , API_BookNavItem = 16 , API_MasterFolderNavItem = 17 , API_SubSetNavItem = 18 , API_TextListNavItem = 19 , API_ElevationNavItem = 20 , API_InteriorElevationNavItem = 21 , API_WorksheetDrawingNavItem = 22 , API_DocumentFrom3DNavItem = 23 , API_FolderNavItem = 24 , API_DrawingNavItem = 25 } |
Enumeration of Project Navigator items. More... | |
enum | API_NavigatorAddOnViewPointTypeID { API_NavigatorAddOnViewPointUndefinedID = 0 , API_NavigatorAddOnViewPointRootID = 1 , API_NavigatorAddOnViewPointGroupID = 2 , API_NavigatorAddOnViewPointNodeID = 3 } |
Describes the type of a Navigator AddOn item. | |
Functions | |
GSErrCode | ACAPI_Navigator_GetSubSetDefault (API_SubSet *subSet) |
Retrieves the default Subset settings of the Layout Book. | |
GSErrCode | ACAPI_Navigator_CreateSubSet (const API_SubSet *subSet, const API_Guid *parentGuid=nullptr) |
Creates the Subset in the Layout Book. | |
GSErrCode | ACAPI_Navigator_GetSubSet (const API_Guid *guid, API_SubSet *subSet) |
Retrieves the Subset settings of the given Layout Subset. | |
GSErrCode | ACAPI_Navigator_GetLayoutBook (API_LayoutBook *book) |
Retrieves the Book Settings. | |
GSErrCode | ACAPI_Navigator_GetViewOptions (API_ViewOptions *viewOptions, short *attrIndex=nullptr) |
Returns the actual view display options. | |
GSErrCode | ACAPI_Navigator_ChangeViewOptions (API_ViewOptions *viewOptions, short *modelViewOptionAttributeIndex=nullptr) |
Changes the actual model view options. | |
GSErrCode | ACAPI_Navigator_CreateLayout (API_LayoutInfo *layoutInfo, API_DatabaseUnId *databaseUnId, API_Guid *parent=nullptr) |
Creates a new layout. | |
GSErrCode | ACAPI_Navigator_GetLayoutSets (API_LayoutInfo *layoutInfo, API_DatabaseUnId *databaseUnId=nullptr, const ULong *actualPageIndex=nullptr) |
Returns the settings of a layout. | |
GSErrCode | ACAPI_Navigator_ChangeLayoutSets (const API_LayoutInfo *layoutInfo, API_DatabaseUnId *databaseUnId) |
Changes the settings of the current layout in Archicad. | |
GSErrCode | ACAPI_Navigator_GetCurrLayerComb (API_AttributeIndex *layerCombIndex) |
Retrieves the index of the current layer combination. | |
GSErrCode | ACAPI_Navigator_ChangeCurrLayerComb (API_AttributeIndex *layerCombIndex) |
Activates a layer combination. | |
GSErrCode | ACAPI_Navigator_GetStructureDisplay (API_UIStructureDisplay *uiStructureDisplay) |
Changes the partial structure display options for the current database. | |
GSErrCode | ACAPI_Navigator_ChangeStructureDisplay (API_UIStructureDisplay *uiStructureDisplay) |
Changes the partial structure display options for the current database. | |
GSErrCode | ACAPI_Navigator_SetMasterLayoutOnLayout (const API_DatabaseUnId *databaseUnId=nullptr) |
Sets the layout context of current database for drawing. | |
GSErrCode | ACAPI_Navigator_GetNavigatorSetNum (Int32 *setNum) |
Retrieves the number of Publisher Sets. | |
GSErrCode | ACAPI_Navigator_GetNavigatorSet (API_NavigatorSet *navigatorSet, Int32 *index=nullptr) |
Retrieves information of a Project Navigator Map or Publisher Set. | |
GSErrCode | ACAPI_Navigator_GetNavigatorItem (const API_Guid *guid, API_NavigatorItem *navigatorItem) |
Retrieves a navigator item. | |
GSErrCode | ACAPI_Navigator_GetNavigatorParentItem (const API_Guid *guid, API_NavigatorItem *parent) |
Retrieves the parent item of a navigator item. | |
GSErrCode | ACAPI_Navigator_GetNavigatorChildNum (API_NavigatorItem *parent, Int32 *num) |
Retrieves the number of children of a navigator item. | |
GSErrCode | ACAPI_Navigator_GetNavigatorChildrenItems (API_NavigatorItem *item, GS::Array< API_NavigatorItem > *items) |
Retrieves the child items of a navigator item. | |
GSErrCode | ACAPI_Navigator_GetNavigatorView (API_NavigatorItem *navigatorItem, API_NavigatorView *navigatorView) |
Retrives a navigator view. | |
GSErrCode | ACAPI_Navigator_SearchNavigatorItem (API_NavigatorItem *item, GS::Array< API_NavigatorItem > *items) |
Searches the navigator items of the requested database. | |
GSErrCode | ACAPI_Navigator_ChangeNavigatorView (API_NavigatorItem *navigatorItem, API_NavigatorView *navigatorView) |
Sets the given Project Navigator item and its view settings. | |
GSErrCode | ACAPI_Navigator_NewNavigatorView (API_NavigatorItem *navigatorItem, API_NavigatorView *navigatorView, const GS::Guid *parent=nullptr, const GS::Guid *previousSibling=nullptr) |
Creates a new Navigator View. | |
GSErrCode | ACAPI_Navigator_DeleteNavigatorView (const API_Guid *viewGuid, const bool *silentMode) |
Deletes the given navigator view. | |
GSErrCode | ACAPI_Navigator_ChangeNavigatorItem (API_NavigatorItem *navigatorItem) |
Modifies the given Project Navigator item. | |
GSErrCode | ACAPI_Navigator_SetNavigatorItemPosition (const GS::Guid *source, const GS::Guid *parent, const GS::Guid *child) |
With this function a navigator item can be moved to an other place. It can be used with items on the layout map and on the view maps (in case of teamworking on the public and on the users' own view map as well. | |
GSErrCode | ACAPI_Navigator_CloneProjectMapItemToViewMap (const API_Guid *sourceItemId, const API_Guid *parentItemId, API_Guid *createdItemId) |
Clones a Navigator item from the project map to view map. | |
GSErrCode | ACAPI_Navigator_CreateNavigatorVPItem (API_NavigatorAddOnViewPointData *viewPointData) |
Creates a new Navigator viewpoint root, group or leaf node in the Project Map. | |
GSErrCode | ACAPI_Navigator_DeleteNavigatorVPItem (const API_Guid *guid) |
Deletes a Navigator viewpoint root, group or leaf node from the Project Map. | |
GSErrCode | ACAPI_Navigator_ChangeNavigatorVPItem (API_NavigatorAddOnViewPointData *viewPointData) |
Changes an existing Navigator viewpoint root, group or leaf node in the Project Map. | |
GSErrCode | ACAPI_Navigator_GetNavigatorVPItem (API_NavigatorAddOnViewPointData *viewPointData) |
Gets information about an existing Navigator viewpoint root, group or leaf node in the Project Map. | |
GSErrCode | ACAPI_Navigator_GetNavigatorVPRootGroups (GS::Array< API_Guid > *rootGuids) |
Gets the list of Navigator viewpoint roots. | |
GSErrCode | ACAPI_Navigator_GetNavigatorVPItemChildren (const API_Guid *guid, GS::Array< API_Guid > *childrenGuids) |
Gets the list of child viewpoint groups/nodes of a Navigator viewpoint root or group. | |
GSErrCode | ACAPI_Navigator_RegisterCallbackInterface (INavigatorCallbackInterface *callBackInterface) |
Registers an object with virtual functions that are implemented by the AddOn. These are called by Archicad when certain events happen relating to the navigator items that are registered by the AddOn. | |
void | ACAPI_FreeGDLModelViewOptionsPtr (API_GDLModelViewOptions **gdlModelViewOptions) |
Frees the GDL model view options pointer. | |
GSErrCode | ACAPI_Navigator_DimStand_Search (API_DimensionStandards_Head *dimStandHead) |
Search a dimension preference by name or index. | |
GSErrCode | ACAPI_Navigator_DimStand_GetNum (UInt32 &count) |
Get the number of dimension preferences. | |
GSErrCode | ACAPI_Navigator_DimStand_Get (API_DimensionStandardsType &dimStand) |
Get a dimension preference by index or name. | |
GSErrCode | ACAPI_Navigator_ModelViewOptions_Search (API_ModelViewOptions_Head *mvoHead) |
Search an API_ModelViewOptions_Head by name or index. | |
void | ACAPI_Navigator_ModelViewOptions_GetNum (UInt32 &count) |
Get the number of API_ModelViewOptions. | |
GSErrCode | ACAPI_Navigator_ModelViewOptions_Get (API_ModelViewOptionsType *modelViewOpt) |
Get an API_ModelViewOptionsType by index. | |
Functions related to the iteration and manipulation of the items of the Project Navigator.
|
strong |
Possible values for area unit preferences.
enum API_AttrTypeID : int |
The type of an attribute.
|
strong |
Possible values for length unit preferences.
Enumeration of Project Navigator items.
enum API_NumberingStyle |
Describes the Layout ID styles.
void ACAPI_FreeGDLModelViewOptionsPtr | ( | API_GDLModelViewOptions ** | gdlModelViewOptions | ) |
Frees the GDL model view options pointer.
gdlModelViewOptions | [in] A pointer to an array of API_GDLModelViewOptions. |
GSErrCode ACAPI_Navigator_ChangeCurrLayerComb | ( | API_AttributeIndex * | layerCombIndex | ) |
Activates a layer combination.
layerCombIndex | [in] index of the layer combination to be activated |
GSErrCode ACAPI_Navigator_ChangeLayoutSets | ( | const API_LayoutInfo * | layoutInfo, |
API_DatabaseUnId * | databaseUnId | ||
) |
Changes the settings of the current layout in Archicad.
layoutInfo | [in] Properties of the layout. |
databaseUnId | [in] apply changes to this database (can be nullptr). The changes are applied to the current layout or master layout database if this parameter is omitted, otherwise to the given database. |
GSErrCode ACAPI_Navigator_ChangeNavigatorItem | ( | API_NavigatorItem * | navigatorItem | ) |
Modifies the given Project Navigator item.
navigatorItem | [in] The navigator item identified with its guid. |
GSErrCode ACAPI_Navigator_ChangeNavigatorView | ( | API_NavigatorItem * | navigatorItem, |
API_NavigatorView * | navigatorView | ||
) |
Sets the given Project Navigator item and its view settings.
navigatorItem | [in] The navigator item identified with its guid. |
navigatorView | [in] New view settings of the specified item (can be nullptr). |
GSErrCode ACAPI_Navigator_ChangeNavigatorVPItem | ( | API_NavigatorAddOnViewPointData * | viewPointData | ) |
Changes an existing Navigator viewpoint root, group or leaf node in the Project Map.
viewPointData | [in] Details of the viewpoint root, group or leaf node to be modified. The guid member designates which item to modify. The other members should hold the new values. |
GSErrCode ACAPI_Navigator_ChangeStructureDisplay | ( | API_UIStructureDisplay * | uiStructureDisplay | ) |
Changes the partial structure display options for the current database.
uiStructureDisplay | [in] The new parameters of the structure display. |
GSErrCode ACAPI_Navigator_ChangeViewOptions | ( | API_ViewOptions * | viewOptions, |
short * | modelViewOptionAttributeIndex = nullptr |
||
) |
Changes the actual model view options.
viewOptions | [in] the settings of the 'Model View Options' dialog, and the View/On-Screen View Options menu. |
modelViewOptionAttributeIndex | [in] Optional parameter; if not nullptr, then switch to the model view options attribute identified by this index. |
GSErrCode ACAPI_Navigator_CloneProjectMapItemToViewMap | ( | const API_Guid * | sourceItemId, |
const API_Guid * | parentItemId, | ||
API_Guid * | createdItemId | ||
) |
Clones a Navigator item from the project map to view map.
sourceItemId | [in] Navigator item to be cloned. |
parentItemId | [in] Parent navigator item of the cloned navigator item. |
createdItemId | [out] Cloned navigator item. |
GSErrCode ACAPI_Navigator_CreateLayout | ( | API_LayoutInfo * | layoutInfo, |
API_DatabaseUnId * | databaseUnId, | ||
API_Guid * | parent = nullptr |
||
) |
Creates a new layout.
layoutInfo | [in] properties of the layout |
databaseUnId | [in] Database of the master layout |
parent | [in] Optional parameter; Parent navigator item to insert below. |
GSErrCode ACAPI_Navigator_CreateNavigatorVPItem | ( | API_NavigatorAddOnViewPointData * | viewPointData | ) |
Creates a new Navigator viewpoint root, group or leaf node in the Project Map.
viewPointData | [in/out] Details of the viewpoint root, group or leaf node to be created. The guid member will be filled out on return. |
API_NavigatorAddOnViewPointUndefinedID
.API_NavigatorAddOnViewPointRootID
. When creating a root group, viewPointData.parentGuid and viewPointData.viewSettingsFlags is ignored. If viewPointData.guid was provided on input, the function creates a root group with the given GUID. If an object with the same GUID already exists, the function returns APIERR_BADID. Creating a group Set viewPointData.itemType to API_NavigatorAddOnViewPointGroupID
. When creating a group, viewPointData.viewSettingsFlags is ignored. If viewPointData.guid was provided on input, the function creates a group with the given GUID. If an object with the same GUID already exists, the function returns APIERR_BADID. Creating a leaf node Set viewPointData.itemType to API_NavigatorAddOnViewPointNodeID
. viewPointData.guid is ignored. A leaf node is always created with an internally generated GUID. Note: In teamwork mode you cannot create, change or delete viewpoint roots or groups. GSErrCode ACAPI_Navigator_CreateSubSet | ( | const API_SubSet * | subSet, |
const API_Guid * | parentGuid = nullptr |
||
) |
Creates the Subset in the Layout Book.
subSet | The Subset. |
parentGuid | The guid of parent node in the Navigator's Layout Map |
GSErrCode ACAPI_Navigator_DeleteNavigatorView | ( | const API_Guid * | viewGuid, |
const bool * | silentMode | ||
) |
Deletes the given navigator view.
viewGuid | The unique identifier of the view. |
silentMode | This parameter is used for turn on/off the warning messages comes from Archicad during deleting a view. |
GSErrCode ACAPI_Navigator_DeleteNavigatorVPItem | ( | const API_Guid * | guid | ) |
Deletes a Navigator viewpoint root, group or leaf node from the Project Map.
guid | [in] GUID of the viewpoint root, group or leaf node to delete. |
GSErrCode ACAPI_Navigator_DimStand_Get | ( | API_DimensionStandardsType & | dimStand | ) |
Get a dimension preference by index or name.
dimStand | [out] |
GSErrCode ACAPI_Navigator_DimStand_GetNum | ( | UInt32 & | count | ) |
Get the number of dimension preferences.
count | [out] the number of dimension preferences |
GSErrCode ACAPI_Navigator_DimStand_Search | ( | API_DimensionStandards_Head * | dimStandHead | ) |
Search a dimension preference by name or index.
dimStandHead | [in/out] the dimension preferences to look up |
GSErrCode ACAPI_Navigator_GetCurrLayerComb | ( | API_AttributeIndex * | layerCombIndex | ) |
Retrieves the index of the current layer combination.
layerCombIndex | [out] index of the layer combination currently in effect |
GSErrCode ACAPI_Navigator_GetLayoutBook | ( | API_LayoutBook * | book | ) |
Retrieves the Book Settings.
book | The Book settings. |
GSErrCode ACAPI_Navigator_GetLayoutSets | ( | API_LayoutInfo * | layoutInfo, |
API_DatabaseUnId * | databaseUnId = nullptr , |
||
const ULong * | actualPageIndex = nullptr |
||
) |
Returns the settings of a layout.
layoutInfo | [out] properties of the layout |
databaseUnId | [in] Optional parameter; return the layout information for this database. If nullptr, then the current layout is used. |
actualPageIndex | [in] Optional parameter; return the layout information for this page. |
GSErrCode ACAPI_Navigator_GetNavigatorChildNum | ( | API_NavigatorItem * | parent, |
Int32 * | num | ||
) |
Retrieves the number of children of a navigator item.
parent | [in] The requested navigator item identified with GUID (you should set mapId for performance). |
num | [out] The number of children of the navigator item |
GSErrCode ACAPI_Navigator_GetNavigatorChildrenItems | ( | API_NavigatorItem * | item, |
GS::Array< API_NavigatorItem > * | items | ||
) |
Retrieves the child items of a navigator item.
item | [in] The requested navigator item identified with GUID (optional you should set mapId for performance). |
items | [out] Data of the child navigator items (optional parameter) |
GSErrCode ACAPI_Navigator_GetNavigatorItem | ( | const API_Guid * | guid, |
API_NavigatorItem * | navigatorItem | ||
) |
Retrieves a navigator item.
guid | [in] The GUID of the navigator item |
navigatorItem | [in/out] Data of the navigator item (you should set mapId for performance). |
GSErrCode ACAPI_Navigator_GetNavigatorParentItem | ( | const API_Guid * | guid, |
API_NavigatorItem * | parent | ||
) |
Retrieves the parent item of a navigator item.
guid | [in] The GUID of the navigator item |
parent | [in/out] The parent item of the navigator item (you should set mapId for performance). |
GSErrCode ACAPI_Navigator_GetNavigatorSet | ( | API_NavigatorSet * | navigatorSet, |
Int32 * | index = nullptr |
||
) |
Retrieves information of a Project Navigator Map or Publisher Set.
navigatorSet | [in/out] Data of the Project Navigator's Map. Identified with mapId. |
index | [in] Index of the required set. Used only for Publisher Sets. |
GSErrCode ACAPI_Navigator_GetNavigatorSetNum | ( | Int32 * | setNum | ) |
Retrieves the number of Publisher Sets.
setNum | [out] Number of Publisher Sets. |
GSErrCode ACAPI_Navigator_GetNavigatorView | ( | API_NavigatorItem * | navigatorItem, |
API_NavigatorView * | navigatorView | ||
) |
Retrives a navigator view.
navigatorItem | [in] The requested navigator item identified with GUID (you should set mapId for performance). |
navigatorView | [out] Data of the navigator item |
GSErrCode ACAPI_Navigator_GetNavigatorVPItem | ( | API_NavigatorAddOnViewPointData * | viewPointData | ) |
Gets information about an existing Navigator viewpoint root, group or leaf node in the Project Map.
viewPointData | [in/out] The guid member should be provided before call. The result of the query will be filled in the other members on return. |
API_NavgatorViewSettingsNoAttributeID
, if viewPointData.guid designates a root or a group. GSErrCode ACAPI_Navigator_GetNavigatorVPItemChildren | ( | const API_Guid * | guid, |
GS::Array< API_Guid > * | childrenGuids | ||
) |
Gets the list of child viewpoint groups/nodes of a Navigator viewpoint root or group.
guid | [in] The GUID of the root/group of which the children are to be queried. |
childrenGuids | [out] The GUIDs of the children. |
GSErrCode ACAPI_Navigator_GetNavigatorVPRootGroups | ( | GS::Array< API_Guid > * | rootGuids | ) |
Gets the list of Navigator viewpoint roots.
rootGuids | [out] The GUIDs of the current AddOn's Navigator viewpoint roots. |
GSErrCode ACAPI_Navigator_GetStructureDisplay | ( | API_UIStructureDisplay * | uiStructureDisplay | ) |
Changes the partial structure display options for the current database.
uiStructureDisplay | [out] The settings of the structure display in the current database. |
GSErrCode ACAPI_Navigator_GetSubSet | ( | const API_Guid * | guid, |
API_SubSet * | subSet | ||
) |
Retrieves the Subset settings of the given Layout Subset.
guid | The guid of the Layout Subset. |
subSet | The Subset. |
GSErrCode ACAPI_Navigator_GetSubSetDefault | ( | API_SubSet * | subSet | ) |
Retrieves the default Subset settings of the Layout Book.
subSet | The default Subset. |
GSErrCode ACAPI_Navigator_GetViewOptions | ( | API_ViewOptions * | viewOptions, |
short * | attrIndex = nullptr |
||
) |
Returns the actual view display options.
viewOptions | [out] actual settings of the 'Model View Options' dialog, and the View/On-Screen View Options menu. |
attrIndex | [out] Optional parameter; the index of the current model view options combination. |
GSErrCode ACAPI_Navigator_ModelViewOptions_Get | ( | API_ModelViewOptionsType * | modelViewOpt | ) |
Get an API_ModelViewOptionsType by index.
modelViewOpt | [out] |
void ACAPI_Navigator_ModelViewOptions_GetNum | ( | UInt32 & | count | ) |
Get the number of API_ModelViewOptions.
count | [out] the number of MVO-s
|
GSErrCode ACAPI_Navigator_ModelViewOptions_Search | ( | API_ModelViewOptions_Head * | mvoHead | ) |
Search an API_ModelViewOptions_Head by name or index.
mvoHead | [in/out] the API_ModelViewOptions_Head to look up |
GSErrCode ACAPI_Navigator_NewNavigatorView | ( | API_NavigatorItem * | navigatorItem, |
API_NavigatorView * | navigatorView, | ||
const GS::Guid * | parent = nullptr , |
||
const GS::Guid * | previousSibling = nullptr |
||
) |
Creates a new Navigator View.
navigatorItem | [in/out] The item used for creating the view; its guid member will be filled on output. |
navigatorView | [out] The created view (unless the navigator item's type is API_FolderNavItem ). |
parent | These parameters are used, when one wants to create a new folder item on the view map, and in this case the first guid is the guid of the node whereunder the new navitem will be placed (the "parent"). |
previousSibling | These parameters are used, when one wants to create a new folder item on the view map, and in this case the navigatorView parameter can be nullptr. If you create an other type of element, then this parameter can be nullptr. |
GSErrCode ACAPI_Navigator_RegisterCallbackInterface | ( | INavigatorCallbackInterface * | callBackInterface | ) |
Registers an object with virtual functions that are implemented by the AddOn. These are called by Archicad when certain events happen relating to the navigator items that are registered by the AddOn.
callBackInterface | [in] Pointer to the callback interface object to register. |
GSErrCode ACAPI_Navigator_SearchNavigatorItem | ( | API_NavigatorItem * | item, |
GS::Array< API_NavigatorItem > * | items | ||
) |
Searches the navigator items of the requested database.
item | [in] The identification parameters of the requested Viewpoint/database. The itemType parameter is compulsory. |
items | [out] The navigator items matching the specified Viewpoint/database (optional parameter) |
GSErrCode ACAPI_Navigator_SetMasterLayoutOnLayout | ( | const API_DatabaseUnId * | databaseUnId = nullptr | ) |
Sets the layout context of current database for drawing.
databaseUnId | [in] The database identifier of the layout context. |
GSErrCode ACAPI_Navigator_SetNavigatorItemPosition | ( | const GS::Guid * | source, |
const GS::Guid * | parent, | ||
const GS::Guid * | child | ||
) |
With this function a navigator item can be moved to an other place. It can be used with items on the layout map and on the view maps (in case of teamworking on the public and on the users' own view map as well.
source | The guid of the item, what you want to replace. |
parent | The new parent of the replaced item. |
child | If it is nullptr, then the item will be inserted to the first place on the actual level, otherwise the it will be inserted after the child. |