2008-09-02 07:37 AM - last edited on 2023-08-04 02:59 PM by Doreena Deng
2008-09-02 06:24 PM
wcyoot wrote:A detailed answer would be too long. Basically you need to fill in the structure for the type of element you want to create, e.g. if you want to create a line you need to fill in the 'API_LineType' structure of the union called 'API_Element'.
Such as "API_MeshType" in v11,when I attampt to create it using "ACAPI_Element_Creat",I don't know what are the input parameters to set before creating.How do I?
2008-10-21 06:11 AM
wcyoot wrote:Yep, Ralph is right. All element structures contain settings-like parameters (those are the ones that you see when you open the Settings dialog in ArchiCAD for that element), and geometrical members (those are filled in via user input, for example when the user draws a wall by clicking at the two ends). The settings parameters can be filled with ACAPI_Element_GetDefaults(), but the geometrical parameters should be filled by your add-on. In the case of a wall, at least the begC and endC members of API_WallType should contain valid coordinates.
Such as "API_MeshType" in v11,when I attampt to create it using "ACAPI_Element_Creat",I don't know what are the input parameters to set before creating.How do I?