Functions exposing the Issue management and BCF import-export functionalities.
More...
|
enum | API_MarkUpCommentStatusID { APIComment_Error = 0
, APIComment_Warning
, APIComment_Info
, APIComment_Unknown
} |
| Describes the various options for Mark-Up comment status. More...
|
|
enum | API_MarkUpComponentTypeID { APIMarkUpComponent_Creation = 0
, APIMarkUpComponent_Highlight
, APIMarkUpComponent_Deletion
, APIMarkUpComponent_Modification
} |
| Describes the type of a component attached to a Mark-Up entry. More...
|
|
|
GSErrCode | ACAPI_Markup_Create (API_MarkUpType &markUp) |
| Creates new Mark-Up entry.
|
|
GSErrCode | ACAPI_Markup_GetList (const API_Guid &elemGuid, GS::Array< API_MarkUpType > *markUpList, bool *asCorrected=nullptr) |
| Returns the existing Mark-Up entries which the given element is attached to.
|
|
GSErrCode | ACAPI_Markup_Delete (const API_Guid &markUpGuid, bool acceptAllElements=false) |
| Deletes an existing Issue.
|
|
GSErrCode | ACAPI_Markup_AttachElements (const API_Guid &markUpGuid, const GS::Array< API_Guid > &elemList, API_MarkUpComponentTypeID type, GS::HashTable< API_Guid, API_Guid > *modificationElemTable=nullptr) |
| Attach elements to an existing Mark-Up as corrected or highlighted elements.
|
|
GSErrCode | ACAPI_Markup_DetachElements (const API_Guid &markUpGuid, const GS::Array< API_Guid > &elemList) |
| Detach elements from an existing Mark-Up.
|
|
GSErrCode | ACAPI_Markup_GetAttachedElements (const API_Guid &markUpGuid, API_MarkUpComponentTypeID type, GS::Array< API_Guid > &attachedElements) |
| Returns the corrected and highlighted elements of the given Mark-Up.
|
|
GSErrCode | ACAPI_Markup_AddComment (const API_Guid &markUpGuid, API_MarkUpCommentType &comment) |
| Adds a new comment to the given Mark-Up.
|
|
GSErrCode | ACAPI_Markup_GetComments (const API_Guid &markUpGuid, GS::Array< API_MarkUpCommentType > *commentList) |
| Returns the comments attached to the given Mark-Up entry.
|
|
GSErrCode | ACAPI_Markup_ExportToBCF (const IO::Location &fileLoc, const GS::Array< API_Guid > &markupEntryIds, const bool useExternalId=false, const bool alignBySurveyPoint=true) |
| Exports a BCF file to specified location.
|
|
GSErrCode | ACAPI_Markup_ImportFromBCF (const IO::Location &fileLoc, const bool silentMode, APIIFCRelationshipDataProc *ifcRelationshipDataProc, const void *par1, const bool openMarkUpPalette=false, const bool alignBySurveyPoint=true) |
| Imports a BCF file.
|
|
Functions exposing the Issue management and BCF import-export functionalities.
◆ API_MarkUpCommentStatusID
Describes the various options for Mark-Up comment status.
◆ API_MarkUpComponentTypeID
Describes the type of a component attached to a Mark-Up entry.
- Since
- Archicad 25
◆ ACAPI_Markup_AddComment()
Adds a new comment to the given Mark-Up.
- Parameters
-
markUpGuid | [in] GUID of the existing Mark-Up. |
comment | [in/out] The parameters of the new comment. The guid and creaTime will be filled by this function. |
- Returns
- NoError - The function has completed with success.
- APIERR_NEEDSUNDOSCOPE - The function must be undoable, it wasn't called from an undoable command scope.
- APIERR_BADPARS - The passed markUpGuid parameter was incorrect.
- Example
Mark-Up related code samples can be found in the MarkUp_Manager
example add-on.
◆ ACAPI_Markup_AttachElements()
Attach elements to an existing Mark-Up as corrected or highlighted elements.
- Since
- Archicad 25
- Parameters
-
markUpGuid | [in] GUID of the existing Mark-Up. |
elemList | [in] The list of elements to attach. |
type | [in] Attach the elements with the given Component type. |
modificationElemTable | [in/out] Optional parameter, used only when APIMarkUpComponent_Modification is passed in type parameter. The table of the original and the modified element pairs. |
- Returns
- NoError - The function has completed with success.
- APIERR_NEEDSUNDOSCOPE - The function must be undoable, it wasn't called from an undoable command scope.
- APIERR_BADPARS - The passed markUpGuid parameter or at least one of the given element GUIDs was incorrect.
- Example
Mark-Up related code samples can be found in the MarkUp_Manager
example add-on.
◆ ACAPI_Markup_Create()
Creates new Mark-Up entry.
- Parameters
-
markUp | [in/out] The parameters of the new Mark-Up. The GUID and time stamp typed fields will be filled by this function. |
- Returns
- NoError - The function has completed with success.
- APIERR_NEEDSUNDOSCOPE - The function must be undoable, it wasn't called from an undoable command scope.
- Example
bool hasRight = false;
ACAPI_Environment (APIEnv_GetTWAccessRightID, (void*) APIMarkupEntryCreate, &hasRight);
if (!hasRight)
return APIERR_NOACCESSRIGHT;
markUp.tagText = "MarkUp API";
GSErrCode ACAPI_Markup_Create(API_MarkUpType &markUp)
Creates new Mark-Up entry.
Represents a Mark-Up entry.
Definition: APIdefs_Elements.h:22910
◆ ACAPI_Markup_Delete()
GSErrCode ACAPI_Markup_Delete |
( |
const API_Guid & |
markUpGuid, |
|
|
bool |
acceptAllElements = false |
|
) |
| |
Deletes an existing Issue.
- Since
- Archicad 25
- Parameters
-
markUpGuid | [in] GUID of an existing Issue. |
acceptAllElements | [in] Accept all entry suggestions before the delete operation. |
- Returns
- NoError - The function has completed with success.
- APIERR_NOPLAN - There is no opened project.
- APIERR_NEEDSUNDOSCOPE - The function must be undoable, it wasn't called from an undoable command scope.
- APIERR_BADID - Issue not found with the given guid.
- APIERR_NOACCESSRIGHT - The current user doesn't have the right to delete the Issue in the teamwork project.
- APIERR_BADPARS - Failed to accept all entry suggestions.
- Example
Issue related code samples can be found in the MarkUp_Manager
example add-on.
◆ ACAPI_Markup_DetachElements()
GSErrCode ACAPI_Markup_DetachElements |
( |
const API_Guid & |
markUpGuid, |
|
|
const GS::Array< API_Guid > & |
elemList |
|
) |
| |
Detach elements from an existing Mark-Up.
- Parameters
-
markUpGuid | [in] GUID of the existing Mark-Up. |
elemList | [in] The list of elements to detach. |
- Returns
- NoError - The function has completed with success.
- APIERR_NEEDSUNDOSCOPE - The function must be undoable, it wasn't called from an undoable command scope.
- APIERR_BADPARS - The passed markUpGuid parameter or at least one of the given element GUIDs was incorrect.
- Example
Mark-Up related code samples can be found in the
MarkUp_Manager
example add-on.
◆ ACAPI_Markup_ExportToBCF()
GSErrCode ACAPI_Markup_ExportToBCF |
( |
const IO::Location & |
fileLoc, |
|
|
const GS::Array< API_Guid > & |
markupEntryIds, |
|
|
const bool |
useExternalId = false , |
|
|
const bool |
alignBySurveyPoint = true |
|
) |
| |
Exports a BCF file to specified location.
- Since
- Archicad 25
- Parameters
-
fileLoc | [in] The location of the BCF file. |
markupEntryIds | [in] An Array containing the MarkUp Entry identifiers to export. |
useExternalId | [in] Use external IFC ID or Archicad IFC ID as referenced in BCF topics. |
alignBySurveyPoint | [in] Align BCF views by Archicad Survey Point or Archicad Project Origin. |
- Returns
- NoError - The function has completed with success.
◆ ACAPI_Markup_GetAttachedElements()
Returns the corrected and highlighted elements of the given Mark-Up.
- Since
- Archicad 26
- Parameters
-
markUpGuid | [in] GUID of the existing Mark-Up. |
type | [in] Return the attached elements with the given Component type. |
attachedElements | [out] The list of the attachedElements elements of the Mark-Up. |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - The passed markUpGuid parameter was incorrect.
- Example
Mark-Up related code samples can be found in the MarkUp_Manager
example add-on.
◆ ACAPI_Markup_GetComments()
Returns the comments attached to the given Mark-Up entry.
- Parameters
-
markUpGuid | [in] GUID of the existing Mark-Up. |
commentList | [out] The list of the comments. |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - The passed markUpGuid parameter was incorrect or the passed commentList is nullptr.
- Example
Mark-Up related code samples can be found in the MarkUp_Manager
example add-on.
◆ ACAPI_Markup_GetList()
GSErrCode ACAPI_Markup_GetList |
( |
const API_Guid & |
elemGuid, |
|
|
GS::Array< API_MarkUpType > * |
markUpList, |
|
|
bool * |
asCorrected = nullptr |
|
) |
| |
Returns the existing Mark-Up entries which the given element is attached to.
- Parameters
-
elemGuid | [in] The GUID of the element or APINULLGuid to list all Mark-Ups. |
markUpList | [out] The list of Mark-Up(s). |
asCorrected | [out] Returns whether the given element is a corrected or highlighted element in the listed Mark-Up(s). |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - The passed elemGuid parameter was invalid or the passed markUpList is nullptr.
- Example
Mark-Up related code samples can be found in the MarkUp_Manager
example add-on.
◆ ACAPI_Markup_ImportFromBCF()
GSErrCode ACAPI_Markup_ImportFromBCF |
( |
const IO::Location & |
fileLoc, |
|
|
const bool |
silentMode, |
|
|
APIIFCRelationshipDataProc * |
ifcRelationshipDataProc, |
|
|
const void * |
par1, |
|
|
const bool |
openMarkUpPalette = false , |
|
|
const bool |
alignBySurveyPoint = true |
|
) |
| |
Imports a BCF file.
- Since
- Archicad 25
- Parameters
-
fileLoc | [in] The location of the BCF file. |
silentMode | [in] Execute the import in silent mode, if its value is true then there will be no error or warning dialogs. |
ifcRelationshipDataProc | [in] Optional user defined callback function which will supply API_IFCRelationshipData needed by BCF import when topics refers to element components like IFCBuildingElementParts. For more details see APIIFCRelationshipDataProc. |
par1 | [in] Optional parameter what will be passed for ifcRelationshipDataProc callback function. |
openMarkUpPalette | [in] Open MarkUp Palette after import or not. |
alignBySurveyPoint | [in] Align BCF views by Archicad Survey Point or Archicad Project Origin. |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - The passed fileLoc is not a valid BCF file.
- Example
GSErrCode GetIFCRelationshipData (GS::HashTable* apiIfcRelationshipDataTable, const void* par1) {...}
const CustomData* GetCustomData () {...}
GSErrCode DoBCFImport ()
{
GSErrCode err = NoError;
const CustomData* data = GetCustomData ();
DG::FileDialog openFileDLG (DG::FileDialog::Type::OpenFile);
if (openFileDLG.Invoke ())
return err;
}
GSErrCode ACAPI_Markup_ImportFromBCF(const IO::Location &fileLoc, const bool silentMode, APIIFCRelationshipDataProc *ifcRelationshipDataProc, const void *par1, const bool openMarkUpPalette=false, const bool alignBySurveyPoint=true)
Imports a BCF file.