Element Modification¶
Change settings and geometry of existing elements through commands for each supported element type.
Access this group through api.tapir.element_modification.
Commands¶
No commands match. Try another name or clear the filter.
For exceptions shared by Unified API commands, see error handling.
modify_angle_dimensions ¶
modify_angle_dimensions(
angle_dimensions_with_details: list[
AngleDimensionWithDetails
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Changes the settings of existing Angle Dimension elements with the keys CreateAngleDimensions takes and GetDetailsOfElements returns: smallArc, the pen, the text height and pen, onlyDimensionText, the text position and direction, the witness line form and value, the marker (DimensionMarker) and the text box of the dimension text with the style of its leader line (DimensionNote). Only the given settings are changed, also inside marker and textBox. The lines and the arc position cannot be changed, as Archicad keeps them: delete the dimension and create it again with CreateAngleDimensions. The element is read back, so a value Archicad did not take is reported as a failure.
Parameters:
-
angle_dimensions_with_details(list[AngleDimensionWithDetails]) –The Angle Dimensions to change, each with the settings to change. Only the given settings are changed; the keys are those CreateAngleDimensions takes and GetDetailsOfElements returns. The lines and the arc position cannot be changed: Archicad keeps them as they are, so delete the dimension and create it again with CreateAngleDimensions.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_associative_dimensions ¶
modify_associative_dimensions(
dimensions_with_details: list[
AssociativeDimensionWithDetails
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Changes the settings of existing linear dimensions (the Dimension tool's elements, also in sections): the dimension type, the elevation origin and elevation marker, the line pen, the marker type, pen and size, the text placement method, the text height, pen, frame, font and style (bold, italic, underline), the text box of the texts (textBox, DimensionNote: angle, background, frame, alignment and leader line style), the drawing order of the texts' fill (textFillOrder, from Archicad 27), the witness line form and value, the witness extension line and the clipping of the dimension and witness lines (witnessExtensionLine, clipDimensionLine, clipWitnessLine, from Archicad 30), the opening heights and the layered element dimensioning, with the same keys as the dimension creation commands. The text and witness line settings are applied to every witness point. witnessPointTexts sets the text of single witness points: the measured value or a custom text (which can contain the measured value), superscript, the text position and the reset to the automatic text position; GetDetailsOfElements reads them back with the same keys. The dimension is read back, and a setting Archicad did not keep fails the item. Not written: the witness points, the dimension line position and direction (use MoveElements).
Parameters:
-
dimensions_with_details(list[AssociativeDimensionWithDetails]) –The linear dimensions to change (the Dimension tool's elements, also those placed in sections), each with the settings to change. Only the given settings are changed.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_beams ¶
modify_beams(
beams_with_details: list[BeamWithDetails],
) -> list[
FailedExecutionResult
| SuccessfulExecutionResultWithWarnings
]
Modifies Beam elements based on the given parameters. CreateBeams takes the same cut fill pens, cover fill and holes, and the same absolute zCoordinate of the reference line (with an optional floorIndex), and the same segments array, which changes the cross section, taper, length and the left, top, right, bottom, ends and extrusion surfaces of single segments (the surfaces in the shape GetDetailsOfElements returns them) and leaves the others as they are. Also writes the floor plan display settings GetDetailsOfElements reads, under the same names: story visibility, display option, view depth, uncut and overhead projection modes, whether the contour lines and the reference axis are shown, and the pens and line types of the cut contour, uncut, overhead, hidden and reference lines; each is read back after the change, and one Archicad did not take fails the item. verticalCurveHeight, beamShape, isWidthAndHeightLinked and circleBased are read back too: one Archicad did not apply (a curve height on a beam that is not VerticallyCurved, HorizontallyCurved without a non-zero arcAngle, the two cross section flags on a beam with a custom profile) leaves the item a success with a warning naming the field, the value sent and read back and the condition. Not written: the cut fill pens before Archicad 27.
Parameters:
-
beams_with_details(list[BeamWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResultWithWarnings]–A list of execution results, one per given item. A success may carry warnings about given values Archicad did not apply.
modify_columns ¶
modify_columns(
columns_with_details: list[ColumnWithDetails],
) -> list[
FailedExecutionResult
| SuccessfulExecutionResultWithWarnings
]
Modifies Column elements based on the given parameters. CreateColumns takes the same cut fill pens and cover fill. Also writes the floor plan display settings GetDetailsOfElements reads, under the same names: story visibility, display option, view depth, and the pens and line types of the contour, veneer, uncut, overhead and hidden lines, and the core symbol pen; each is read back after the change, and one Archicad did not take fails the item. The segments list writes a given column segment in the shape GetDetailsOfElements returns it: its extrusion and ends surfaces, veneer, cross section, taper and length. A column Archicad does not let you edit (its layer is hidden or locked, it is locked, or it is not reserved by you in teamwork) gets a failed execution result naming the reason. isFlipped, which Archicad does not apply to a column, and a slantAngle above pi/2, which Archicad stores as pi/2, leave the item a success with a warning naming the field, the value sent and read back and the reason. Not written: the cut fill pens before Archicad 27.
Parameters:
-
columns_with_details(list[ColumnWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResultWithWarnings]–A list of execution results, one per given item. A success may carry warnings about given values Archicad did not apply.
modify_curtain_wall_frames ¶
modify_curtain_wall_frames(
frames_with_details: list[CurtainWallFrameWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
EXPERIMENTAL. Modifies single Curtain Wall Frames by their GUID: the frame contour (a1, a2, b1, b2), the frame class and the frame type. The frame element itself is changed, and read back to check that Archicad applied the change. A frame given its own contour or type without a classIndex is made a customized frame (GetDetailsOfElements reports its type as Custom) when Archicad does not keep the change on a frame of a class.
Parameters:
-
frames_with_details(list[CurtainWallFrameWithDetails]) –Curtain Wall Frames to modify (the GUIDs from GetSubelementsOfHierarchicalElements), with the fields to change. Only the given fields are changed. EXPERIMENTAL.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_curtain_wall_panels ¶
modify_curtain_wall_panels(
panels_with_details: list[CurtainWallPanelWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Assigns a panel class to single Curtain Wall Panels by their GUID; the panel takes the settings of the class (thickness, surfaces, building material, cut line, panel type). ACAPI_Element_Change does not take a panel on its own, so the change is written through the memo of the owner curtain wall, and read back to check that Archicad applied it.
Parameters:
-
panels_with_details(list[CurtainWallPanelWithDetails]) –Curtain Wall Panels to modify (the GUIDs from GetSubelementsOfHierarchicalElements), with the fields to change. Only the given fields are changed.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_curtain_walls ¶
modify_curtain_walls(
curtain_walls_with_details: list[
CurtainWallWithDetails
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Curtain Wall elements in place, keeping their GUID, properties and classifications: the height, the bottom elevation and story, the reference line (with the same number of segments), and the column (primary) and row (secondary) pattern with its cell assignments, in the fields of CreateCurtainWalls; the side of the reference line (flipped), the panel offset from the reference line and the nominal width; and the floor plan display settings GetDetailsOfElements reads: story visibility, display option, view depth, cut, uncut and overhead projection modes, and the pens and line types of the frame and panel cut lines and of the uncut and overhead lines.
Parameters:
-
curtain_walls_with_details(list[CurtainWallWithDetails]) –Array of Curtain Wall elements to modify, with the fields to change. Only the given fields are changed; the others, and the frames and panels not affected by them, are left as they are. The fields are those of CreateCurtainWalls, plus flipped, offset and nominalWidth, so a curtain wall can be changed in place instead of being deleted and recreated, keeping its GUID, properties and classifications, and the floor plan display fields GetDetailsOfElements returns for a curtain wall, under the same names. Every given field is read back, and one Archicad did not apply fails the item.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_doors ¶
modify_doors(
doors_with_details: list[DoorWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Door elements based on the given parameters: size, position, sill anchor (verticalLink), sub-floor thickness, reveal and its anchor, surface, plane in slanted walls, fix point and floor plan and section settings. The display option and these settings are read back, and an item fails when Archicad did not apply one.
Parameters:
-
doors_with_details(list[DoorWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_hatches ¶
modify_hatches(
hatches_with_details: list[HatchWithDetails],
database_id: DatabaseId | None = None,
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Changes existing Hatch (Fill) elements with the keys CreateHatches takes and GetDetailsOfElements returns: the contour pen and line type, the fill pen and background pen or their RGB colors, the fill or building material, the fill category, the fill orientation, the area text and the percentage subtracted from the zone area, and the polygon (coordinates with its arcs and holes, replaced as a whole; the hatch keeps its GUID). Only the given settings are changed. With databaseId the hatches are looked for in that database, e.g. a worksheet, a detail or a layout. The hatch is read back, so a value Archicad did not keep is reported as a failure.
Parameters:
-
hatches_with_details(list[HatchWithDetails]) –The Hatches (Fills) to change, each with the settings to change. Only the given settings are changed; the keys are those CreateHatches takes and GetDetailsOfElements returns. coordinates replaces the whole polygon, with its arcs and holes.
-
database_id(DatabaseId | None, default:None) –Optional database the hatches are in, e.g. a worksheet, a detail or a layout (see GetDatabases, or the databaseId CreateWorksheets and CreateDetails return), as CreateHatches takes it. The front window stays as it is: a worksheet or detail whose window was never opened is opened once on Archicad 27 and later, and the front window is brought back. Without it the hatches are looked for in the current database. If Archicad cannot switch to it, nothing is changed and the call fails.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_labels ¶
modify_labels(
labels_with_details: list[LabelsWithDetail],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Label elements based on the given parameters: the text and its style, the symbol label's style, the leader line, and the leader line's coordinates, which move or re-point the label.
Parameters:
-
labels_with_details(list[LabelsWithDetail]) –Array of Label elements to modify, with the fields to change. Only provided fields are changed; omitted fields are left as-is. The label's class (Text/Symbol) cannot be changed after creation. A change of the text, the runs, or a run-level style field (pen, font, faces, height, effects) rebuilds the content (one paragraph per line), which makes the label's text auto-width (word wrap off), as SetDetailsOfElements does, and on a multi-run label applies that style to every run; the other style fields leave the content as it is.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_lamps ¶
modify_lamps(
lamps_with_details: list[LampWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Lamp elements based on the given parameters.
Parameters:
-
lamps_with_details(list[LampWithDetails]) –Array of elements to modify, with the fields to change. Only provided fields are changed; omitted fields are left as- is.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_level_dimensions ¶
modify_level_dimensions(
level_dimensions_with_details: list[
LevelDimensionsWithDetail
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Changes existing Level Dimension elements: the position of the marker and the settings CreateLevelDimensions takes (pen, text height, pen, font and style, marker type and size, plus sign, angle, origin, text content (measured or custom text with Autotext keys) and text box (textBox, secondTextBox) of both texts, and from Archicad 29 hide with associated element), with the same keys, and the static level, the Static checkbox (staticLevel) and the owner element (parentElementId, or ownerElementId as GetDetailsOfElements reads it, which does not change the Static checkbox).
Parameters:
-
level_dimensions_with_details(list[LevelDimensionsWithDetail]) –The Level Dimensions to change, each with the settings to change. Only the given settings are changed.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_meshes ¶
modify_meshes(
meshes_data: list[MeshWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies the attributes of Mesh elements based on the given parameters.
Parameters:
-
meshes_data(list[MeshWithDetails]) –Array of meshes to modify.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_morphs ¶
modify_morphs(
morphs_with_details: list[MorphWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Morph elements based on the given parameters.
Parameters:
-
morphs_with_details(list[MorphWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_objects ¶
modify_objects(
objects_with_details: list[ObjectWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Object elements based on the given parameters.
Parameters:
-
objects_with_details(list[ObjectWithDetails]) –Array of elements to modify, with the fields to change. Only provided fields are changed; omitted fields are left as-is.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_openings ¶
modify_openings(
openings_with_details: list[OpeningsWithDetail],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Opening elements: the width, the height and the base point CreateOpenings takes. Needs Archicad 28 or earlier; in Archicad 29 and later every item fails with a message pointing to SetOpeningDetails, which changes the size and the position of an opening there.
Parameters:
-
openings_with_details(list[OpeningsWithDetail]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_pictures ¶
modify_pictures(
pictures_with_details: list[PictureWithDetails],
database_id: DatabaseId | None = None,
) -> list[ElementIdArrayItem | ErrorItem]
Modifies Picture elements: moves them to a new position, resizes them to a width and height in model units (one of them keeps the picture's proportions), changes the anchor point, the angle, mirrored, transparent and the name. Only the given settings are changed and the image stays as it is. Archicad cannot change a picture in place, so a changed picture is replaced by a new one with the same image, layer, story and ID, and the new elementId is returned; labels, dimensions, properties and classifications of the original are not carried over. With databaseId the pictures are looked for in that database, e.g. a worksheet, a detail or a layout. GetDetailsOfElements reads the settings back.
Parameters:
-
pictures_with_details(list[PictureWithDetails]) –Array of Picture elements to modify, with the settings to change. Only the given settings are changed; the others are left as they are. The image itself is not changed. Archicad cannot change a picture in place, so a picture with a change is replaced by a new picture with the same image, layer, story and ID, and the original is deleted: the new picture has a new elementId (returned in elements), and labels, dimensions, properties and classifications of the original are not carried over.
-
database_id(DatabaseId | None, default:None) –Optional database the pictures are in, e.g. a worksheet, a detail or a layout (see GetDatabases). The front window stays as it is: a worksheet or detail whose window was never opened is opened once on Archicad 27 and later, and the front window is brought back. Without it the pictures are looked for in the current database. If Archicad cannot switch to it, nothing is changed and the call fails.
Returns:
-
list[ElementIdArrayItem | ErrorItem]–One result per item of picturesWithDetails, in the same order. On success elementId is the picture's identifier after the change: a new one when a setting was changed (the picture is replaced), the given one when nothing was to change.
modify_polylines ¶
modify_polylines(
polylines_with_details: list[PolylineWithDetails],
database_id: DatabaseId | None = None,
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Changes existing Polyline elements with the keys CreatePolylines takes and GetDetailsOfElements returns: the pen, the line type, zone boundary (roomSeparator), the dash mode (drawSegmentMode), the arrowheads at both ends, and the polygon (coordinates with its arcs, replaced as a whole; the polyline keeps its GUID). Only the given settings are changed. With databaseId the polylines are looked for in that database, e.g. a worksheet, a detail or a layout. The polyline is read back, so a value Archicad did not keep is reported as a failure.
Parameters:
-
polylines_with_details(list[PolylineWithDetails]) –The Polylines to change, each with the settings to change. Only the given settings are changed; the keys are those CreatePolylines takes and GetDetailsOfElements returns. coordinates replaces the whole polygon, with its arcs. The pen weight override (penWeightMm of CreatePolylines) is not taken: Archicad did not keep a pen weight changed on an existing polyline.
-
database_id(DatabaseId | None, default:None) –Optional database the polylines are in, e.g. a worksheet, a detail or a layout (see GetDatabases, or the databaseId CreateWorksheets and CreateDetails return), as CreatePolylines takes it. The front window stays as it is: a worksheet or detail whose window was never opened is opened once on Archicad 27 and later, and the front window is brought back. Without it the polylines are looked for in the current database. If Archicad cannot switch to it, nothing is changed and the call fails.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_radial_dimensions ¶
modify_radial_dimensions(
radial_dimensions_with_details: list[
RadialDimensionWithDetails
],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Changes the settings of existing Radial Dimension elements with the keys CreateRadialDimensions takes and GetDetailsOfElements returns, written by the same code: the line pen, the marker (DimensionMarker), the text height, pen, position and direction, measured or custom text, the centre mark, onlyDimensionText, the prefix (the R of R 7.55) and the text box of the dimension text (DimensionNote). Only the given settings are changed, also inside marker and textBox. The measured element and the dimension line are not changed: delete the dimension and create it again with CreateRadialDimensions. The element is read back, so a value Archicad did not take is reported as a failure.
Parameters:
-
radial_dimensions_with_details(list[RadialDimensionWithDetails]) –The Radial Dimensions to change, each with the settings to change. Only the given settings are changed, also inside marker and textBox; the keys are those CreateRadialDimensions takes and GetDetailsOfElements returns. The measured element and the dimension line cannot be changed here: delete the dimension and create it again with CreateRadialDimensions.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_railings ¶
modify_railings(
railings_with_details: list[RailingsWithDetail],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Railing elements in place: the height of all their segments, the bottom offset, the home story, the story visibility (visibility, isAutoOnStoryVisibility; Archicad 29 does not let the automatic story visibility be turned off), the pens of the reference line and the contour, and single segments (height, lateral offset) and nodes (post offset, elevation, whether the pattern continues across the node) by their index in the segments and nodes GetDetailsOfElements returns, and the top rail (visible), rails (visible, relative, horizontal offset, height) and handrails (visible, doubleHandrail, horizontal offset, height) of a segment by their index among that segment's rails and handrails, the pattern of a segment (segments[].pattern: the models of its inner posts, panels and baluster sets, with the panel's library part as a symbolId already used by a railing panel of the project, and its distribution, which the inner posts, panels and baluster sets the railing has then follow) and the post model of a node (nodes[].post: vertical position). Archicad generates posts, inner posts, panels and baluster sets from these models; a change to a single one of them (innerPosts, panels, balusterSets, posts, by index) is tried, and on Archicad 29 it is refused with a message that names the model to change instead. On Archicad 29 every segment of a new railing follows the pattern of segment 0. The reference line, the other segments, nodes and components and the railing's GUID stay as they are. Each railing is read back once the change is done, and a value Archicad did not apply gets a failed execution result.
Parameters:
-
railings_with_details(list[RailingsWithDetail]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_roofs ¶
modify_roofs(
roofs_with_details: list[RoofWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies single-plane and multi-plane Roof elements based on the given parameters. The plan outline, its holes (also on their own), level, thickness, structure, trimming body (cutBodyType), the top, side and bottom surface overrides, edgeTrims (the cut of each edge of the outline or contour and its holes), edgeSideMaterials (the custom surface of each edge of the polygon, on a multi-plane roof of its contour; read back after writing), edgeTypes (the Edge Type of each polygon edge, used by schedules; on a multi- plane roof of its contour, read back after writing) and the floor plan and section settings (floor plan display, show on stories, cut fill pens, contour pens and line types, cover fill) apply to both; angle and pivotLine only to single-plane roofs; levels, eavesOverhang, pivotEdges, contourPolygon and the segmentation of curved pivot edges (segmentType, segmentsByArc, segmentsByCircle) only to multi-plane roofs. On a multi-plane roof polygonOutline is the pivot polygon (GetDetailsOfElements' pivotPolygonOutline), not the contour, which follows from it and the eaves overhangs; contourPolygon writes the contour on its own (Manual overhang) without moving the pivot polygon, and the roof is read back to check it. level is absolute (GetDetailsOfElements' zCoordinate, not its story-relative level); without floorIndex it also picks the home story, so send the current floorIndex with it to keep the roof on its story.
Parameters:
-
roofs_with_details(list[RoofWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_shells ¶
modify_shells(
shells_with_details: list[ShellWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies the structure (Basic or Composite, building material or composite), the thickness of Basic shells, the side of the reference surface the thickness is applied to (isFlipped), the trimming body (cutBodyType: Upward or Downward Extrusion), the clipping contour and the holes (each with its polygon, plane and depth), the top, side (edge) and bottom surface overrides, the custom surface of individual edges (edgeMaterials) and the floor plan and section settings (floor plan display, show on stories, cut fill pens, contour pens and line types, cover fill) of Shell elements, the extrusion vector or length and the profile of extruded Shells (keeping their GUID, base plane and extrusion start), the profile, axis, revolution, begin, slant and shear angles and segments of revolved Shells, and the two profiles, their planes and the morphing rule of ruled Shells (keeping their GUID and base plane), based on the given parameters. The reference surface stays in place when the thickness changes; a thickness for a Composite shell is refused, as it comes from the composite.
Parameters:
-
shells_with_details(list[ShellWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_skylights ¶
modify_skylights(
skylights_with_details: list[SkylightsWithDetail],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Skylight elements: anchor position and anchor point, fix mode, width, height, azimuth and elevation angles, mirroring, floor plan display option, pens, line types, section fill and pens, surface and the use-the-library-part's-settings flags - the same settings CreateSkylights takes and GetDetailsOfElements returns. Only the given settings change. Not written by this command: the owner roof or shell, the anchor level and the vertical link (Archicad places the skylight on its owner), the plane of a multi-plane roof it sits on, the dimension marker (a separate element) and the library part's own parameters (use SetGDLParametersOfElements). Archicad may set the elevation angle again from the owner.
Parameters:
-
skylights_with_details(list[SkylightsWithDetail]) –The skylights to modify, each with the settings to change. The settings not given stay as they are.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_slabs ¶
modify_slabs(
slabs_with_details: list[SlabWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Slab elements based on the given parameters. CreateSlabs takes the same surfaces, cut fill pens, floor fill and floor plan and section display, with the keys GetDetailsOfElements reads (contourPen, contourLineTypeId, sectionContourPen, sectionContourLineTypeId, hiddenContourLinePen, hiddenContourLineTypeId, visibility, fillVisibility, isAutoOnStoryVisibility from Archicad 29, materialsChained, linkToSettings). edgeTrim sets the Edge Angle (Vertical or CustomAngle) of every edge of the slab, edgeTrims that of each edge, and edgeSideMaterials the custom surface of each edge, in the order GetDetailsOfElements reports them; they cannot be combined with polygonOutline or holes. A polygonOutline or holes change keeps the Edge Angle and the custom surface of each edge that lies on an edge of the old polygon (also both parts of a split edge), and with the same point counts that of the edge with the same index (moved points); new edges are Vertical with the slab's side surface. Not written: the cut fill pens before Archicad 27. Each slab is read back after the change: a given display setting Archicad did not apply gets a failed execution result naming it, and so does a given cover fill origin or distortion matrix, of whose orientation Archicad applies only the type to a Slab through the API; the other details are applied.
Parameters:
-
slabs_with_details(list[SlabWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_stairs ¶
modify_stairs(
stairs_with_details: list[StairWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Stair elements in place, keeping their baseline and position: the flight width, total height, number of steps, riser height and going with their locks, the top link to a story with its offset, the Rules and Standards (each limit and whether it is applied), the headroom (generation method, height and left and right offset; read back, and one Archicad did not apply is reported as an error), the finish and structure visibility, the extra top and bottom treads, the walking line position and offset, the step numbering, the walking direction (the walking line and the direction are read back, and one Archicad did not apply is reported as an error), the uniform finish, monolith and draining settings, and for the flights and the landings the tread and riser settings (presence, thickness, offset, nosing, riser cross section and position) and the structure of each side (presence, type, underside shape and thickness, the monolith data of a Monolith structure: thinning, thickness, bottom oversize, building material and fill, surfaces, pens, line types and drainings, and the stringer data of a Side structure: width, height above tread and how it is measured; the monolith and stringer data are read back, and one Archicad did not apply is reported as an error), and the floor plan display: whether it is Custom or by the Model View Options, and for the floor plan and the reflected ceiling plan separately the stories the stair is shown on and whether its walking line, numbering, up/down text, description and structure are shown, the symbol on each story (above, top, middle, bottom and below the relevant stories), the break line (angle, gap and position) and the line type, pen and symbol fill overrides, and the line types, pens and fills of the structure symbols per structure type and view (structureSymbols) and of the monolithic structure per view and visible or hidden part (monolithStructureSymbols), and which structures, fills and monolithic parts are shown on each range of the relevant stories, per view (structureVisibilityOnStories); these are read back, and one Archicad did not apply is reported as an error. CreateStairs accepts the same settings. Only the given settings are changed. Archicad solves the stair again within its baseline, so it may adjust the step values; read them back with GetDetailsOfElements. A given going (treadDepth) is pinned in the Rules and Standards as CreateStairs pins it, before the given rules are written. Not written by this command: the baseline with its landings and winders; the subelements (treads, risers, structures) take the per-part settings above and cannot be written one by one through the API; the boundaries and the walking lines GetDetailsOfElements reads, which Archicad lays out itself from the baseline and the flight width and which the API cannot write (here, in CreateStairs and in RecreateStairs an item that gives one is refused with an error that says so).
Parameters:
-
stairs_with_details(list[StairWithDetails]) –Array of Stair elements to modify, with the settings to change. Only the given settings are changed; the baseline, the position and the omitted settings are kept.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_texts ¶
modify_texts(
texts_with_details: list[TextsWithDetail],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies standalone Text elements based on the given parameters.
Parameters:
-
texts_with_details(list[TextsWithDetail]) –Array of Text elements to modify, with the fields to change. Only provided fields are changed; omitted fields are left as-is. A change of the text, the runs, or a run-level style field (pen, font, faces, height, effects) rebuilds the content (one paragraph per line, as SetDetailsOfElements does), and on a multi-run text applies that style to every run; a text that wraps keeps its wrap width through the rebuild unless the same item gives a width. The other style fields and a width leave the content as it is.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_walls ¶
modify_walls(
walls_with_details: list[WallWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Wall elements based on the given parameters. Takes the same wall settings as CreateWalls, applied by the same code, including geometryType (Straight or Trapezoid, with begThickness and endThickness), profileType and the slant angles, plus bottomOffset. A slantAlpha or slantBeta that the wall's profileType cannot take fails the item instead of being dropped. Neither command can write a Polygonal outline (it needs an outline polygon, which these commands do not take), connectionPriority or junctionSequence (Archicad ignores writes to them; GetDetailsOfElements reads them), and on Archicad 29 any story visibility other than 'Home story only' and 'All relevant stories'.
Parameters:
-
walls_with_details(list[WallWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_windows ¶
modify_windows(
windows_with_details: list[WindowWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Window elements based on the given parameters: size, position, sill anchor (verticalLink), sub-floor thickness, reveal and its anchor, surface, plane in slanted walls, fix point and floor plan and section settings. The display option and these settings are read back, and an item fails when Archicad did not apply one.
Parameters:
-
windows_with_details(list[WindowWithDetails]) –
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
modify_zones ¶
modify_zones(
zones_with_details: list[ZoneWithDetails],
) -> list[
FailedExecutionResult | SuccessfulExecutionResult
]
Modifies Zone elements: name, number, category, zone stamp, stamp pen, height, base offset, top link, floor thickness, letter size (roomLSize, in millimetres), contour line, cover fill, 3D surface (one surface on all sides, or the surfaces of the bounding walls), polygon display (gross or net) and area reduction - the same settings as CreateZones, applied by the same helpers. Only the given fields are changed. geometry replaces the polygon (outline, arcs and holes) of a manual zone in place, so the zone keeps its GUID, properties and other settings; a new polygon that would overlap another zone on the same story is refused unless allowOverlap is true. The reference point of an automatic zone cannot be changed here (SetDetailsOfElements moves it).
Parameters:
-
zones_with_details(list[ZoneWithDetails]) –Array of Zone elements to modify, with the fields to change. Only the given fields are changed and the omitted fields are kept; the polygon is kept unless geometry is given. The same fields as the ZoneSettings of SetDetailsOfElements, plus geometry and allowOverlap.
Returns:
-
list[FailedExecutionResult | SuccessfulExecutionResult]–A list of execution results.
Related types¶
These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.
ModifyAngleDimensionsParametersModifyAngleDimensionsResultModifyAssociativeDimensionsParametersModifyAssociativeDimensionsResultModifyBeamsParametersModifyBeamsResultModifyColumnsParametersModifyColumnsResultModifyCurtainWallFramesParametersModifyCurtainWallFramesResultModifyCurtainWallPanelsParametersModifyCurtainWallPanelsResultModifyCurtainWallsParametersModifyCurtainWallsResultModifyDoorsParametersModifyDoorsResultModifyHatchesParametersModifyHatchesResultModifyLabelsParametersModifyLabelsResultModifyLampsParametersModifyLampsResultModifyLevelDimensionsParametersModifyLevelDimensionsResultModifyMeshesParametersModifyMeshesResultModifyMorphsParametersModifyMorphsResultModifyObjectsParametersModifyObjectsResultModifyOpeningsParametersModifyOpeningsResultModifyPicturesParametersModifyPicturesResultModifyPolylinesParametersModifyPolylinesResultModifyRadialDimensionsParametersModifyRadialDimensionsResultModifyRailingsParametersModifyRailingsResultModifyRoofsParametersModifyRoofsResultModifyShellsParametersModifyShellsResultModifySkylightsParametersModifySkylightsResultModifySlabsParametersModifySlabsResultModifyStairsParametersModifyStairsResultModifyTextsParametersModifyTextsResultModifyWallsParametersModifyWallsResultModifyWindowsParametersModifyWindowsResultModifyZonesParametersModifyZonesResultAngleDimensionWithDetailsAssociativeDimensionWithDetailsBeamWithDetailsColumnWithDetailsCurtainWallFrameWithDetailsCurtainWallPanelWithDetailsCurtainWallWithDetailsDatabaseIdDoorWithDetailsElementIdArrayItemErrorItemFailedExecutionResultHatchWithDetailsLabelsWithDetailLampWithDetailsLevelDimensionsWithDetailMeshWithDetailsMorphWithDetailsObjectWithDetailsOpeningsWithDetailPictureWithDetailsPolylineWithDetailsRadialDimensionWithDetailsRailingsWithDetailRoofWithDetailsShellWithDetailsSkylightsWithDetailSlabWithDetailsStairWithDetailsSuccessfulExecutionResultSuccessfulExecutionResultWithWarningsTextsWithDetailWallWithDetailsWindowWithDetailsZoneWithDetails