I totally agree with this.
I totally agree with this.
Hi @ebrahim raeyat,
Hi @ebrahim raeyatebrahim raeyat wrote: ↑Fri Jul 31, 2020 12:19 pmHi @suraj Dadral, I think for this situation we can implement section's manner that I mentioned in the above post, we must write just the number of rebars and their diameter and the arrange of rebars will be found from their diameter in section. In my country, this approach is very common.
Hi @balrobsbalrobs wrote: ↑Fri Jul 31, 2020 2:12 pmHi @all,
I totally agree, 1st method looks better and is clearer. With its implementation I think we have all neccessary labeling styles to create wonderfull reinforcement plans. Let's quickly report an overview table with some of IMHO most important labeling styles (good for section views and front views):
I assume that most of them have already been implemented in one form or the other.
If we have the possibility to switch from one style to another and to control
1. position of dimension line with deltaY (inside or outside of the structure)
2. position of labeling text with deltaX (to avoid conflicts with other labels)
3. rotating of labeling text with phi (to avoid conflicts with other labels)
we will rock!
I know it's a lot of work ... and thankfully the motto is: "it's done when it's done".
you are right, I only mentioned for Style1 that represent rebar's label in above of column. thanksbalrobs wrote: ↑Fri Jul 31, 2020 9:54 pmHi @ebrahim raeyat,
Not sure if i understood you correctly. Did you think it would be a problem because multiple section views (one per storey) are required for columns that are one above the other? If that's the case the problem exists only if the column drawing shows every column from the foundation to the last storey. I use to do it differently .. Grouping columns by storey (as they usually are created) on a drawing. So every column on a drawing can have it's own section view. But, as I mentioned, I could also have misunderstood you.
In real-world, it is almost 2 or 3 of different diameter appears in one section that can be recognized from the diameter of those rebars. although it is only for sections and not for other views.Suraj Dadral wrote: ↑Sat Aug 01, 2020 9:25 pm
Hi @ebrahim raeyat
Thanks for your feedback.
If I understood correctly, then there maybe number of different arrangements present from same rebar diameter. In that case, we will not be able to identify rebars from their diameter. Please let me know if I am missing something.
Hi @Suraj, please keep in mind by implementing this function that it would be very usufull if a user can select reinforcements to be drawn. So a user could i.e. decide to create a drawing with lower reinforcements and one with upper reinforcements.
Code: Select all
makeStructuresReinforcementDrawing( structure_list=None, rebars_list=None, view="Front", rebars_stroke_width=REBARS_STROKE_WIDTH, rebars_color_style=REBARS_COLOR_STYLE, rebars_color=REBARS_COLOR, structure_stroke_width=STRUCTURE_STROKE_WIDTH, structure_color_style=STRUCTURE_COLOR_STYLE, structure_color=STRUCTURE_COLOR, drawing_left_offset=DRAWING_LEFT_OFFSET, drawing_top_offset=DRAWING_TOP_OFFSET, drawing_min_right_offset=DRAWING_MIN_RIGHT_OFFSET, drawing_min_bottom_offset=DRAWING_MIN_BOTTOM_OFFSET, drawing_max_width=DRAWING_MAX_WIDTH, drawing_max_height=DRAWING_MAX_HEIGHT, template_file=TEMPLATE_FILE, perform_dimensioning=False, dimension_rebars_filter_list=None, dimension_label_format=DIMENSION_LABEL_FORMAT, dimension_font_family=DIMENSION_FONT_FAMILY, dimension_font_size=DIMENSION_FONT_SIZE, dimension_stroke_width=DIMENSION_STROKE_WIDTH, dimension_line_style=DIMENSION_LINE_STYLE, dimension_line_color=DIMENSION_LINE_COLOR, dimension_text_color=DIMENSION_TEXT_COLOR, dimension_single_rebar_line_start_symbol=( DIMENSION_SINGLE_REBAR_LINE_START_SYMBOL ), dimension_single_rebar_line_end_symbol=( DIMENSION_SINGLE_REBAR_LINE_END_SYMBOL ), dimension_multi_rebar_line_start_symbol=( DIMENSION_MULTI_REBAR_LINE_START_SYMBOL ), dimension_multi_rebar_line_end_symbol=( DIMENSION_MULTI_REBAR_LINE_END_SYMBOL ), dimension_line_mid_point_symbol=DIMENSION_LINE_MID_POINT_SYMBOL, dimension_left_offset=DIMENSION_LEFT_OFFSET, dimension_right_offset=DIMENSION_RIGHT_OFFSET, dimension_top_offset=DIMENSION_TOP_OFFSET, dimension_bottom_offset=DIMENSION_BOTTOM_OFFSET, dimension_left_offset_increment=DIMENSION_LEFT_OFFSET_INCREMENT, dimension_right_offset_increment=DIMENSION_RIGHT_OFFSET_INCREMENT, dimension_top_offset_increment=DIMENSION_TOP_OFFSET_INCREMENT, dimension_bottom_offset_increment=DIMENSION_BOTTOM_OFFSET_INCREMENT, dimension_single_rebar_outer_dim=DIMENSION_SINGLE_REBAR_OUTER_DIM, dimension_multi_rebar_outer_dim=DIMENSION_MULTI_REBAR_OUTER_DIM, dimension_single_rebar_text_position_type=( DIMENSION_SINGLE_REBAR_TEXT_POSITION_TYPE ), dimension_multi_rebar_text_position_type=( DIMENSION_MULTI_REBAR_TEXT_POSITION_TYPE ), ): """makeStructuresReinforcementDrawing([StructureList, RebarsList, View, RebarsStrokeWidth, RebarsColorStyle, RebarsColor, StructureStrokeWidth, StructureColorStyle, StructureColor, DrawingLeftOffset, DrawingTopOffset, DrawingMinRightOffset, DrawingMinBottomOffset, DrawingMaxWidth, DrawingMaxHeight, TemplateFile, PerformDimensioning, DimensionRebarsFilterList, DimensionLabelFormat, DimensionFontFamily, DimensionFontSize, DimensionStrokeWidth, DimensionLineStyle, DimensionLineColor, DimensionTextColor, SingleRebar_DimensionLineStartSymbol, SingleRebar_DimensionLineEndSymbol, MultiRebar_DimensionLineStartSymbol, MultiRebar_DimensionLineEndSymbol, DimensionLineMidPointSymbol, DimensionLeftOffset, DimensionRightOffset, DimensionTopOffset, DimensionBottomOffset, DimensionLeftOffsetIncrement, DimensionRightOffsetIncrement, DimensionTopOffsetIncrement, DimensionBottomOffsetIncrement, SingleRebar_OuterDimension, MultiRebar_OuterDimension, SingleRebar_TextPositionType, MultiRebar_TextPositionType]): Generates Reinforcement Drawing SVG view for structures. structure_list is the list of structural objects. If not provided, structures will be selected from active document acting as Host for rebar objects. rebars_list is the list of rebar objects. If not provided, rebars objects having Host in structure_list will be selected from active document. view can be "Front", "Rear", "Left", "Right", "Top" or "Bottom". rebars_color_style/structure_color_style can be "Automatic" to select color from rebar/structure shape or "Custom" to use color as defined by parameter rebars_color/structure_color. rebars_color/structure_color is tuple of r, g, b values of color. r, g, b must be between 0 to 1 and must be float. Divide r, g, b value of color to get values between 0 and 1. Dimensioning: set perform_dimensioning True to dimension reinforcement drawing, False otherwise. dimension_rebars_filter_list is the list of rebars to perform dimensioning. Set it to None to dimension all visible rebars in drawing. Returns dictionary with structure as key and corresponding reinforcement drawing page as value. """
Code: Select all
from ReinforcementDrawing.make_reinforcement_drawing import ( makeStructuresReinforcementDrawing, ) for view in ("Front", "Rear", "Left", "Right", "Top", "Bottom"): struct_drawing_page_dict = makeStructuresReinforcementDrawing( view=view, perform_dimensioning=True ) for drawing_page in struct_drawing_page_dict.values(): drawing_view = drawing_page.Views drawing_view.setExpression( "LeftOffset", u".Template.Width.Value / 2 - .Width.Value * .Scale / 2", ) drawing_view.setExpression( "TopOffset", u".Template.Height.Value / 2 - .Height.Value * .Scale / 2", ) drawing_view.recompute(True) drawing_page.recompute(True)