The enumeration of the available preferences tab page types.
Remarks
Use this enum as a selector to the ACAPI_ProjectSetting_GetPreferences function to get data of the different tab pages of the Preferences and the Work Environment dialog.
NoError - The function has completed with success.
APIERR_BADPARS - noteInfo is nullptr
APIERR_NOPLAN - There are no project loaded.
Remarks
This function is used to change the project info parameters. It can be set in the 'Project Info...' dialog box in the File/Info menu. This function is a non-undoable data structure modifier function. See more details on this topic at Command Overview.
[in] Action parameters to change the story settings.
Returns
NoError - The function has completed with success.
APIERR_BADPARS - storyCommand is nullptr or contains invalid value:
the index is out of the range of existing stories,
the action field is invalid.
APIERR_NOPLAN - No open project.
APIERR_MEMFULL - Low memory condition.
Remarks
This function is used to perform story settings related commands. The command is specified by the action field of the storyCommand parameter. Possible values and the required parametrization are described at the API_StoryCmdID structure. If this function is called with APIStory_Delete parameter, it performs complete operations. Otherwise this function is a non-undoable data structure modifier function. See more details on this topic at Command Overview.
Returns the offset of origin of the virtual coordinate system.
Parameters
offset
the offset of the origin of the virtual coordinate system
Returns
NoError - The function has completed with success.
APIERR_BADPARS - offset is nullptr
APIERR_BADDATABASE - the command was called for a non-2D window
Remarks
This function is used to get the offset of the origin of the virtual coordinate system from the origin of the world coordinate system. This origin was introduced in Archicad 9 to reduce the inaccuracies, which could happen if the model was far away from the origin of the world coordinate system. This offset is set after a file is opened, if the so called 'weight point' of the model is far enough from the origin of the world coordinate system. After that all coordinates coming from the API are measured from this origin.
Returns the maximal distance of a spline segment and a set of coordinates.
Parameters
splinePars
[in] the coordinates and the parameters of the spline to test.
distance
[out] the maximal distance of the coordinates from the requested segment of the spline.
Returns
NoError - The function has completed with success.
APIERR_BADPARS - any of the parameters are nullptr, or the passed handles have wrong sizes.
Remarks
This function is used to determine the maximal distance of a segment of a bezier curve and a set of coordinates. Refer to the API_TestSplineFit structure for the parametrization.
NoError - The function has completed with success.
APIERR_BADPARS - storyInfo is nullptr.
APIERR_NOPLAN - No open project.
APIERR_MEMFULL - Low memory condition.
Remarks
The API_StoryInfo structure contains an array of information to each story (index, level, and name); and also the active one. Do not forget to dispose the data handle if it is not needed any more.