ducpy.builders.element_builders =============================== .. py:module:: ducpy.builders.element_builders .. autoapi-nested-parse:: Helper functions for creating DUC elements with a user-friendly API. Classes ------- .. autoapisummary:: ducpy.builders.element_builders.BaseElementParams ducpy.builders.element_builders.ElementBuilder ducpy.builders.element_builders.ElementSpecificBuilder ducpy.builders.element_builders.RectangleElementBuilder ducpy.builders.element_builders.EllipseElementBuilder ducpy.builders.element_builders.PolygonElementBuilder ducpy.builders.element_builders.LinearElementBuilder ducpy.builders.element_builders.ArrowElementBuilder ducpy.builders.element_builders.ImageElementBuilder ducpy.builders.element_builders.PdfElementBuilder ducpy.builders.element_builders.ParametricElementBuilder ducpy.builders.element_builders.TextElementBuilder ducpy.builders.element_builders.TableFromDataBuilder ducpy.builders.element_builders.TableElementBuilder ducpy.builders.element_builders.FrameElementBuilder ducpy.builders.element_builders.PlotElementBuilder ducpy.builders.element_builders.ViewportElementBuilder ducpy.builders.element_builders.FreeDrawElementBuilder ducpy.builders.element_builders.DocElementBuilder ducpy.builders.element_builders.LinearDimensionBuilder ducpy.builders.element_builders.AlignedDimensionBuilder ducpy.builders.element_builders.AngularDimensionBuilder ducpy.builders.element_builders.RadiusDimensionBuilder ducpy.builders.element_builders.DiameterDimensionBuilder ducpy.builders.element_builders.ArcLengthDimensionBuilder ducpy.builders.element_builders.CenterMarkDimensionBuilder ducpy.builders.element_builders.RotatedDimensionBuilder ducpy.builders.element_builders.SpacingDimensionBuilder ducpy.builders.element_builders.ContinueDimensionBuilder ducpy.builders.element_builders.BaselineDimensionBuilder ducpy.builders.element_builders.JoggedLinearDimensionBuilder ducpy.builders.element_builders.LeaderElementBuilder ducpy.builders.element_builders.FeatureControlFrameElementBuilder ducpy.builders.element_builders.BlockInstanceElementBuilder ducpy.builders.element_builders.MermaidElementBuilder ducpy.builders.element_builders.EmbeddableElementBuilder ducpy.builders.element_builders.XrayElementBuilder Functions --------- .. autoapisummary:: ducpy.builders.element_builders._create_element_wrapper ducpy.builders.element_builders.create_duc_path ducpy.builders.element_builders.create_datum_reference ducpy.builders.element_builders.create_tolerance_clause ducpy.builders.element_builders.create_fcf_segment ducpy.builders.element_builders.create_fcf_segment_row ducpy.builders.element_builders.create_bound_element ducpy.builders.element_builders.create_table_column ducpy.builders.element_builders.create_table_row ducpy.builders.element_builders.create_table_cell_span ducpy.builders.element_builders.create_table_cell ducpy.builders.element_builders.create_table_auto_size ducpy.builders.element_builders.create_table_column_entry ducpy.builders.element_builders.create_table_row_entry ducpy.builders.element_builders.create_table_cell_entry Module Contents --------------- .. py:function:: _create_element_wrapper(element_class, base_params, element_params, explicit_properties_override=None) Helper function to create an ElementWrapper with the given parameters. .. py:class:: BaseElementParams .. py:attribute:: x :type: float .. py:attribute:: y :type: float .. py:attribute:: width :type: float .. py:attribute:: height :type: float .. py:attribute:: scope :type: str .. py:attribute:: angle :type: float :value: 0.0 .. py:attribute:: styles :type: Optional[ducpy.classes.ElementsClass.DucElementStylesBase] :value: None .. py:attribute:: id :type: Optional[str] :value: None .. py:attribute:: label :type: str :value: '' .. py:attribute:: locked :type: bool :value: False .. py:attribute:: is_visible :type: bool :value: True .. py:attribute:: z_index :type: float :value: 0.0 .. py:attribute:: description :type: str :value: '' .. py:attribute:: group_ids :type: Optional[List[str]] :value: [] .. py:attribute:: region_ids :type: Optional[List[str]] :value: [] .. py:attribute:: layer_id :type: str :value: '' .. py:attribute:: frame_id :type: Optional[str] :value: None .. py:attribute:: bound_elements :type: Optional[List[ducpy.classes.ElementsClass.BoundElement]] :value: [] .. py:attribute:: link :type: str :value: '' .. py:attribute:: custom_data :type: Union[str, Dict[str, Any]] :value: '' .. py:attribute:: is_plot :type: bool :value: True .. py:attribute:: is_annotative :type: bool :value: False .. py:attribute:: is_deleted :type: bool :value: False .. py:attribute:: index :type: Optional[int] :value: None .. py:class:: ElementBuilder(x: float = 0.0, y: float = 0.0, width: float = 1.0, height: float = 1.0, scope: str = DEFAULT_SCOPE) .. py:attribute:: base .. py:attribute:: extra .. py:method:: at_position(x: float, y: float) .. py:method:: with_size(width: float, height: float) .. py:method:: with_angle(angle: float) .. py:method:: with_styles(styles: ducpy.classes.ElementsClass.DucElementStylesBase) .. py:method:: with_id(id: str) .. py:method:: with_label(label: str) .. py:method:: with_scope(scope: str) .. py:method:: with_locked(locked: bool) .. py:method:: with_visible(is_visible: bool) .. py:method:: with_z_index(z_index: float) .. py:method:: with_description(description: str) .. py:method:: with_group_ids(group_ids: List[str]) .. py:method:: with_region_ids(region_ids: List[str]) .. py:method:: with_layer_id(layer_id: str) .. py:method:: with_frame_id(frame_id: str) .. py:method:: with_bound_elements(bound_elements: List[ducpy.classes.ElementsClass.BoundElement]) .. py:method:: with_bound_element(element_id: str, element_type: str) Adds a single bound element to the current element. .. py:method:: with_link(link: str) .. py:method:: with_custom_data(custom_data: Union[str, Dict[str, Any]]) .. py:method:: with_plot(is_plot: bool) .. py:method:: with_annotative(is_annotative: bool) .. py:method:: with_deleted(is_deleted: bool) .. py:method:: with_index(index: int) .. py:method:: with_extra(**kwargs) .. py:method:: build_rectangle() .. py:method:: build_ellipse() .. py:method:: build_polygon() .. py:method:: build_linear_element() .. py:method:: build_arrow_element() .. py:method:: build_image_element() .. py:method:: build_pdf_element() .. py:method:: build_parametric_element() .. py:method:: build_text_element() .. py:method:: build_table_from_data() .. py:method:: build_table_element() .. py:method:: build_frame_element() .. py:method:: build_plot_element() .. py:method:: build_viewport_element() .. py:method:: build_freedraw_element() .. py:method:: build_doc_element() .. py:method:: build_linear_dimension() .. py:method:: build_aligned_dimension() .. py:method:: build_angular_dimension() .. py:method:: build_radius_dimension() .. py:method:: build_diameter_dimension() .. py:method:: build_arc_length_dimension() .. py:method:: build_center_mark_dimension() .. py:method:: build_rotated_dimension() .. py:method:: build_spacing_dimension() .. py:method:: build_continue_dimension() .. py:method:: build_baseline_dimension() .. py:method:: build_jogged_linear_dimension() .. py:method:: build_leader_element() .. py:method:: build_feature_control_frame_element() .. py:method:: build_block_instance_element() .. py:method:: build_mermaid_element() .. py:method:: build_embeddable_element() .. py:method:: build_xray_element() .. py:function:: create_duc_path(line_indices: List[int], background: Optional[ducpy.classes.ElementsClass.ElementBackground] = None, stroke: Optional[ducpy.classes.ElementsClass.ElementStroke] = None) -> ducpy.classes.ElementsClass.DucPath Helper function to create a DucPath object for path overrides. .. py:function:: create_datum_reference(letters: str, modifier: Optional[ducpy.Duc.MATERIAL_CONDITION.MATERIAL_CONDITION] = None) -> ducpy.classes.ElementsClass.DatumReference Helper function to create a DatumReference object. .. py:function:: create_tolerance_clause(value: str, zone_type: Optional[ducpy.Duc.TOLERANCE_ZONE_TYPE.TOLERANCE_ZONE_TYPE] = None, feature_modifiers: Optional[List[ducpy.Duc.FEATURE_MODIFIER.FEATURE_MODIFIER]] = None, material_condition: Optional[ducpy.Duc.MATERIAL_CONDITION.MATERIAL_CONDITION] = None) -> ducpy.classes.ElementsClass.ToleranceClause Helper function to create a ToleranceClause object. .. py:function:: create_fcf_segment(symbol: ducpy.Duc.GDT_SYMBOL.GDT_SYMBOL, tolerance: ducpy.classes.ElementsClass.ToleranceClause, datums: List[ducpy.classes.ElementsClass.DatumReference]) -> ducpy.classes.ElementsClass.FeatureControlFrameSegment Helper function to create a FeatureControlFrameSegment object. .. py:function:: create_fcf_segment_row(segments: List[ducpy.classes.ElementsClass.FeatureControlFrameSegment]) -> ducpy.classes.ElementsClass.FCFSegmentRow Helper function to create an FCFSegmentRow object. .. py:function:: create_bound_element(element_id: str, element_type: str) -> ducpy.classes.ElementsClass.BoundElement Helper to create a BoundElement using a builder-like approach. .. py:function:: create_table_column(id: str, width: float = 100.0, style_overrides: Optional[ducpy.classes.ElementsClass.DucElementStylesBase] = None) -> ducpy.classes.ElementsClass.DucTableColumn Helper to create a DucTableColumn object. .. py:function:: create_table_row(id: str, height: float = 30.0, style_overrides: Optional[ducpy.classes.ElementsClass.DucElementStylesBase] = None) -> ducpy.classes.ElementsClass.DucTableRow Helper to create a DucTableRow object. .. py:function:: create_table_cell_span(columns: int = 1, rows: int = 1) -> ducpy.classes.ElementsClass.DucTableCellSpan Helper to create a DucTableCellSpan object. .. py:function:: create_table_cell(row_id: str, column_id: str, data: str = '', locked: bool = False, span: Optional[ducpy.classes.ElementsClass.DucTableCellSpan] = None, style_overrides: Optional[ducpy.classes.ElementsClass.DucElementStylesBase] = None) -> ducpy.classes.ElementsClass.DucTableCell Helper to create a DucTableCell object. .. py:function:: create_table_auto_size(columns: bool = True, rows: bool = True) -> ducpy.classes.ElementsClass.DucTableAutoSize Helper to create a DucTableAutoSize object. .. py:function:: create_table_column_entry(key: str, value: ducpy.classes.ElementsClass.DucTableColumn) -> ducpy.classes.ElementsClass.DucTableColumnEntry Helper to create a DucTableColumnEntry object. .. py:function:: create_table_row_entry(key: str, value: ducpy.classes.ElementsClass.DucTableRow) -> ducpy.classes.ElementsClass.DucTableRowEntry Helper to create a DucTableRowEntry object. .. py:function:: create_table_cell_entry(key: str, value: ducpy.classes.ElementsClass.DucTableCell) -> ducpy.classes.ElementsClass.DucTableCellEntry Helper to create a DucTableCellEntry object. .. py:class:: ElementSpecificBuilder(base: BaseElementParams, extra: dict) .. py:attribute:: base .. py:attribute:: extra .. py:class:: RectangleElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: EllipseElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_ratio(ratio: float) .. py:method:: with_start_angle(start_angle: float) .. py:method:: with_end_angle(end_angle: float) .. py:method:: with_show_aux_crosshair(show_aux_crosshair: bool) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: PolygonElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_sides(sides: int) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: LinearElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_points(points: List[tuple]) .. py:method:: with_lines(lines: Optional[List[ducpy.classes.ElementsClass.DucLine]]) .. py:method:: with_bezier_handles(bezier_handles: Optional[dict]) .. py:method:: with_line_definitions(line_definitions: Optional[List[dict]]) .. py:method:: with_path_overrides(path_overrides: Optional[List[ducpy.classes.ElementsClass.DucPath]]) .. py:method:: with_last_committed_point(last_committed_point: Optional[ducpy.classes.ElementsClass.DucPoint]) .. py:method:: with_start_binding(start_binding: Optional[ducpy.classes.ElementsClass.DucPointBinding]) .. py:method:: with_end_binding(end_binding: Optional[ducpy.classes.ElementsClass.DucPointBinding]) .. py:method:: with_wipeout_below(wipeout_below: bool) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: ArrowElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_points(points: List[tuple]) .. py:method:: with_start_binding(start_binding: Optional[ducpy.classes.ElementsClass.DucPointBinding]) .. py:method:: with_end_binding(end_binding: Optional[ducpy.classes.ElementsClass.DucPointBinding]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: ImageElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_file_id(file_id: str) .. py:method:: with_scale(scale: List[float]) .. py:method:: with_status(status: ducpy.Duc.IMAGE_STATUS.IMAGE_STATUS) .. py:method:: with_crop(crop: Optional[ducpy.classes.ElementsClass.ImageCrop]) .. py:method:: with_filter(filter: Optional[ducpy.classes.ElementsClass.DucImageFilter]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: PdfElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_file_id(file_id: str) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: ParametricElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_file_id(file_id: str) .. py:method:: with_source_type(source_type: ducpy.Duc.PARAMETRIC_SOURCE_TYPE.PARAMETRIC_SOURCE_TYPE) .. py:method:: with_code(code: str) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: TextElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_text(text: str) .. py:method:: with_text_style(text_style: Optional[ducpy.classes.ElementsClass.DucTextStyle]) .. py:method:: with_auto_resize(auto_resize: bool) .. py:method:: with_dynamic(dynamic: Optional[List[ducpy.classes.ElementsClass.DucTextDynamicPart]]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: TableFromDataBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_data(data: List[List[str]]) .. py:method:: with_column_headers(column_headers: Optional[List[str]]) .. py:method:: with_column_widths(column_widths: Optional[List[float]]) .. py:method:: with_row_height(row_height: float) .. py:method:: with_header_row_count(header_row_count: int) .. py:method:: with_table_style(style: Optional[ducpy.classes.ElementsClass.DucTableStyle]) .. py:method:: with_auto_size(auto_size: Optional[ducpy.classes.ElementsClass.DucTableAutoSize]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: TableElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_columns(columns: List[ducpy.classes.ElementsClass.DucTableColumn]) .. py:method:: with_rows(rows: List[ducpy.classes.ElementsClass.DucTableRow]) .. py:method:: with_cells(cells: List[ducpy.classes.ElementsClass.DucTableCell]) .. py:method:: with_table_style(style: Optional[ducpy.classes.ElementsClass.DucTableStyle]) .. py:method:: with_header_row_count(header_row_count: int) .. py:method:: with_auto_size(auto_size: Optional[ducpy.classes.ElementsClass.DucTableAutoSize]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: FrameElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_stack_base(stack_base: Optional[ducpy.classes.ElementsClass.DucStackBase]) .. py:method:: with_clip(clip: bool) .. py:method:: with_label_visible(label_visible: bool) .. py:method:: with_standard_override(standard_override: Optional[ducpy.classes.StandardsClass.Standard]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: PlotElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_margins(margins: Optional[ducpy.classes.ElementsClass.Margins]) .. py:method:: with_style(style: Optional[ducpy.classes.ElementsClass.DucPlotStyle]) .. py:method:: with_stack_base(stack_base: Optional[ducpy.classes.ElementsClass.DucStackBase]) .. py:method:: with_clip(clip: bool) .. py:method:: with_label_visible(label_visible: bool) .. py:method:: with_standard_override(standard_override: Optional[ducpy.classes.StandardsClass.Standard]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: ViewportElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_points(points: List[tuple]) .. py:method:: with_view(view: ducpy.classes.ElementsClass.DucView) .. py:method:: with_view_scale(scale: float) .. py:method:: with_viewport_style(style: Optional[ducpy.classes.ElementsClass.DucViewportStyle]) .. py:method:: with_stack_base(stack_base: Optional[ducpy.classes.ElementsClass.DucStackBase]) .. py:method:: with_standard_override(standard_override: Optional[ducpy.classes.StandardsClass.Standard]) .. py:method:: with_shade_plot(shade_plot: Optional[ducpy.Duc.VIEWPORT_SHADE_PLOT.VIEWPORT_SHADE_PLOT]) .. py:method:: with_frozen_group_ids(frozen_group_ids: Optional[List[str]]) .. py:method:: with_start_binding(start_binding: Optional[ducpy.classes.ElementsClass.DucPointBinding]) .. py:method:: with_end_binding(end_binding: Optional[ducpy.classes.ElementsClass.DucPointBinding]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: FreeDrawElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_points(points: list) .. py:method:: with_pressures(pressures: list) .. py:method:: with_size_thickness(size: float) .. py:method:: with_thinning(thinning: float) .. py:method:: with_smoothing(smoothing: float) .. py:method:: with_streamline(streamline: float) .. py:method:: with_easing(easing: str) .. py:method:: with_simulate_pressure(simulate_pressure: bool) .. py:method:: with_start_cap(cap: bool) .. py:method:: with_start_taper(taper: float) .. py:method:: with_start_easing(easing: str) .. py:method:: with_end_cap(cap: bool) .. py:method:: with_end_taper(taper: float) .. py:method:: with_end_easing(easing: str) .. py:method:: with_last_committed_point(last_committed_point: Optional[ducpy.classes.ElementsClass.DucPoint]) .. py:method:: with_svg_path(svg_path: Optional[str]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: DocElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_text(text: str) .. py:method:: with_doc_style(style: Optional[ducpy.classes.ElementsClass.DucDocStyle]) .. py:method:: with_columns_layout(columns: Optional[ducpy.classes.ElementsClass.ColumnLayout]) .. py:method:: with_auto_resize(auto_resize: bool) .. py:method:: with_flow_direction(flow_direction: Optional[ducpy.Duc.TEXT_FLOW_DIRECTION.TEXT_FLOW_DIRECTION]) .. py:method:: with_dynamic(dynamic: Optional[List[ducpy.classes.ElementsClass.DucTextDynamicPart]]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: LinearDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_origin1(origin1: ducpy.classes.ElementsClass.GeometricPoint) .. py:method:: with_origin2(origin2: ducpy.classes.ElementsClass.GeometricPoint) .. py:method:: with_location(location: ducpy.classes.ElementsClass.GeometricPoint) .. py:method:: with_dimension_style(style: Optional[ducpy.classes.ElementsClass.DucDimensionStyle]) .. py:method:: with_text_override(text_override: Optional[str]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: AlignedDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: AngularDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: RadiusDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: DiameterDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: ArcLengthDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: CenterMarkDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: RotatedDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: SpacingDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: ContinueDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: with_continue_from_dimension_id(continue_from_dimension_id: str) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: BaselineDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: with_base_dimension_id(base_dimension_id: str) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: JoggedLinearDimensionBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`LinearDimensionBuilder` .. py:method:: with_jog_x(jog_x: float) .. py:method:: with_jog_y(jog_y: float) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: LeaderElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_content_anchor_x(content_anchor_x: float) .. py:method:: with_content_anchor_y(content_anchor_y: float) .. py:method:: with_content(content: Optional[ducpy.classes.ElementsClass.LeaderContent]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: FeatureControlFrameElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_segments(segments: List[ducpy.classes.ElementsClass.FCFSegmentRow]) .. py:method:: with_frame_modifiers(frame_modifiers: Optional[ducpy.classes.ElementsClass.FCFFrameModifiers]) .. py:method:: with_leader_element_id(leader_element_id: Optional[str]) .. py:method:: with_datum_definition(datum_definition: Optional[ducpy.classes.ElementsClass.FCFDatumDefinition]) .. py:method:: with_style(style: Optional[ducpy.classes.ElementsClass.DucFeatureControlFrameStyle]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: BlockInstanceElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_block_id(block_id: str) .. py:method:: with_element_overrides(element_overrides: Optional[List[ducpy.classes.ElementsClass.StringValueEntry]]) .. py:method:: with_attribute_values(attribute_values: Optional[List[ducpy.classes.ElementsClass.StringValueEntry]]) .. py:method:: with_duplication_array(duplication_array: Optional[ducpy.classes.ElementsClass.DucBlockDuplicationArray]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: MermaidElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_source(source: str) .. py:method:: with_theme(theme: Optional[str]) .. py:method:: with_svg_path(svg_path: Optional[str]) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: EmbeddableElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_link(link: str) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper .. py:class:: XrayElementBuilder(base: BaseElementParams, extra: dict) Bases: :py:obj:`ElementSpecificBuilder` .. py:method:: with_origin_x(origin_x: float) .. py:method:: with_origin_y(origin_y: float) .. py:method:: with_direction_x(direction_x: float) .. py:method:: with_direction_y(direction_y: float) .. py:method:: with_color(color: str) .. py:method:: with_start_from_origin(start_from_origin: bool) .. py:method:: build() -> ducpy.classes.ElementsClass.ElementWrapper