Method and system for converting a bulk of bulb flats to angles or T-sections
By using the LISP programming language and dynamic block technology in AutoCAD software, the system can automatically identify and batch replace bulb flats in ship designs with angle steel or T-sections, solving the problem of low efficiency in traditional design and enabling rapid modification and efficient design.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2026-04-07
AI Technical Summary
In traditional ship design, replacing bulb flats with angle steel or T-sections requires a lot of manual deletion and redrawing of the profile interfaces, which is inefficient.
Using the LISP programming language and dynamic block technology in AutoCAD software, a module was developed to automatically identify bulb flats and replace them in batches with angle steel or T-sections. Automatic identification and replacement are achieved through a main control program unit, a bulb flat identification program unit, a batch replacement program unit, and a profile modification program unit.
It has improved the efficiency of ship design, reduced the amount of repetitive manual drawing work, and shortened the design time from the traditional 2 weeks to 1-2 days.
Smart Images

Figure CN115688215B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method and system for batch conversion of bulb flat steel interfaces into angle steel or T-sections, which is based on CAD drawing and belongs to the field of shipbuilding drawing design technology. Background Technology
[0002] Traditional ships often use marine bulb flats as the aggregate material. However, with the increasing size and lightweight requirements of ships, more and more designs are now using angle steel or T-shaped steel instead of bulb flats as the aggregate material.
[0003] Structural drawings require the depiction of numerous profile interfaces, including profile sections, through holes, and patch plates. Traditional designs primarily use polylines or individual blocks for drawing, but a single ship type utilizes a large number of profiles of varying specifications, as well as different types of through holes and patch plates. When redesigning a ship for a new generation, modifying the flat steel sections of the parent ship's drawings to angle steel or T-sections requires significant manual labor, necessitating the deletion of the original profile interfaces and redrawing the entire design—a highly inefficient process. Summary of the Invention
[0004] Objective: To address the problems and shortcomings of existing technologies, this invention provides a method and system for batch conversion of bulb flat steel interfaces into angle steel or T-sections based on CAD drawings. This invention utilizes the Lisp programming language and AutoCAD dynamic block technology to develop an embedded AutoCAD program that integrates various specifications and forms of profiles. It automatically identifies bulb flat steel drawn using different methods in traditional drawings and batch replaces them with integrated blocks, facilitating rapid modifications later.
[0005] Technical Solution: A method for batch conversion of bulb flat steel interfaces to angle steel or T-sections based on CAD drawings. This method utilizes the LISP programming language and dynamic block technology in AutoCAD software. A secondary development module is implemented to automatically identify bulb flat steel and batch replace it with angle steel or T-sections during the ship design phase. Different specifications and patch plate forms of profile interfaces are drawn on a computer and integrated into dynamic blocks for angle steel, T-sections, and bulb flat steel using dynamic block technology. The method automatically identifies various forms of bulb flat steel in the original drawings according to set rules, calculates the base point, web angle, and bulb head orientation of each bulb flat steel, and batch replaces them with dynamic blocks of the same attributes. A dynamic block modification interface is developed to quickly modify profile specifications and patch plate forms.
[0006] The method includes the following:
[0007] Design a batch replacement module for bulb flats: Using the LISP language and dynamic block technology in AutoCAD software, a secondary development module can automatically identify bulb flats and replace them in batches with angle steel or T-sections during the ship design stage. The batch replacement module for bulb flats includes: a main control program unit, a bulb flat identification program unit, a batch replacement program, and a profile modification program unit.
[0008] The main control program unit starts and calls AutoCAD to enter the batch replacement bulb flat steel module;
[0009] Choose the alternative bulb flat steel pattern, which includes three types: double wire, single wire, and loose wire.
[0010] The ball flat steel identification program unit is invoked. The ball flat steel identification program unit selects the corresponding ball flat steel identification method according to the selected ball flat steel mode, and calculates and obtains the ball flat steel base point, height, rotation angle and ball head orientation.
[0011] The batch replacement program unit is invoked, which replaces the ball flat steel with dynamic blocks of angle steel or T-section steel according to the identification result of the ball flat steel identification program unit.
[0012] The profile modification program unit is invoked, which is used to adjust the specifications of angle steel or T-profiles and the form of the patch plate.
[0013] In the selection of replacement flat steel mode, users can choose between double-line mode, single-line mode, or scattered-line mode through the user interface provided by the main control program unit.
[0014] When calling the bulb flat steel recognition unit, you must first select the range of bulb flat steel to be converted in AutoCAD. The bulb flat steel recognition unit then filters out bulb flat steel that meets the selection criteria and adds it to the selection set based on the selected bulb flat steel pattern. The specific implementation steps are as follows:
[0015] (31) In dual-line mode: In the specified layer, select a closed polyline with 7 vertices and a length range of 270 to 990 mm and add it to the selection set.
[0016] (32) In single-line mode: In the specified layer, select a non-closed polyline with 4 vertices and a length range of 180-600 mm and add it to the selection set.
[0017] (33) In the scattered line mode: use the CAD command "Joint" to connect the scattered lines into multiple lines, and then use the double line mode for filtering.
[0018] The specific implementation steps of the batch replacement program unit are as follows:
[0019] (61) Batch delete elements within a set range around the ball flat steel;
[0020] (62) At the original base point, insert the corresponding angle steel or T-shaped dynamic blocks in batches according to the original bulb flat steel height and rotation angle; the dynamic block implementation steps are as follows: (a) Draw various through hole forms and patch plate forms of profile types according to the hull node layer, and distinguish them by coding; (b) Use "visible parameters" to integrate all forms and control the switching of different forms of through holes and patches in the dynamic block; (c) Use "linear stretching parameters" to control the web height and panel width of the dynamic block and the synchronous stretching of the corresponding through holes and patches; (d) Use "alignment parameters" to control the dynamic block of the profile to be automatically perpendicular to the plate line attached to the profile; (e) Use "flip parameters" to control the orientation of the profile and the orientation of the bulb head.
[0021] (63) Set the ball head orientation of the inserted profile dynamic block according to the original ball head orientation of the ball flat steel in batches.
[0022] Enter the command to start the profile modification program unit in the command prompt area of the main program unit to enter the profile modification program interface: First, specify the through hole type or patch plate type; set the orientation of the weld hole and patch plate; select the profile specification; the profile modification program interface dynamically displays the profile through hole patch plate type through the preview area.
[0023] After setting the specifications and patch type, the profile dynamic block code is generated. By selecting the range, the visible parameters of the profile dynamic block corresponding to the code can be assigned to the profile dynamic block within the modification range. The profile height and panel width can be assigned to the linear stretching parameters of the profile dynamic block, thereby realizing the modification of different specifications and different through hole patch styles of the profile dynamic block.
[0024] In the profile modification program interface, select the profile dynamic block to obtain the profile patch type parameters; select the profile dynamic block to be modified to change it to the currently stored patch type.
[0025] A system for batch conversion of bulb flat steel interfaces into angle steel or T-shaped profiles includes: a main control program unit, a bulb flat steel identification program unit, a batch replacement program, and a profile modification program unit;
[0026] The main control program unit is used to call AutoCAD and interact with the user, allowing the user to select the replacement bulb flat steel mode, which includes three modes: double-line, single-line, and loose-line.
[0027] The bulb flat steel identification program unit selects the corresponding bulb flat steel identification method according to the selected bulb flat steel mode, and calculates and obtains the base point, height, rotation angle and ball head orientation of the bulb flat steel.
[0028] Batch replacement program unit: Based on the identification results of the ball flat steel identification program unit, batch replace ball flat steel with angle steel or T-shaped steel dynamic blocks;
[0029] The profile modification program unit is used to adjust the specifications of angle steel or T-profiles and the form of the patch plate.
[0030] The system implementation process is the same as the method described above, and will not be repeated here.
[0031] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method described above for batch conversion of bulb flat steel interfaces into angle steel or T-shaped profiles.
[0032] A computer-readable storage medium storing a computer program that performs the method described above for batch conversion of bulb flat steel interfaces into angle steel or T-sections.
[0033] Beneficial Effects: Existing technologies mainly rely on AutoCAD's automatic commands for deletion and redrawing, which involves numerous steps and is extremely inefficient. Compared to existing technologies, this invention uses a computer to automatically identify bulb flats and replace them in batches with angle steel or T-sections during the ship design phase, reducing the amount of repetitive manual drawing work for designers and laying the foundation for rapid modification of aggregate types in the future. This improves design efficiency. Taking a bulk carrier cargo hold area drawing as an example, the traditional drawing method takes about two weeks, while the technical solution of this invention can reduce it to one to two days. Attached Figure Description
[0034] Figure 1 This is a flowchart of a method according to an embodiment of the present invention;
[0035] Figure 2 This is a partial dynamic block integrated design display diagram of the profiles according to an embodiment of the present invention; wherein (a) is a partial dynamic display diagram of the profiles, and (b) is a dynamic block modification instruction diagram of the profiles;
[0036] Figure 3 This is a schematic diagram of a single-wire ball flat steel bar;
[0037] Figure 4 This is a schematic diagram of double-wire ball flat steel;
[0038] Figure 5 This is a schematic diagram of the profile dynamic block modification interface according to an embodiment of the present invention. Detailed Implementation
[0039] The present invention will be further illustrated below with reference to specific embodiments. It should be understood that these embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. After reading the present invention, any modifications of the present invention in various equivalent forms by those skilled in the art will fall within the scope defined by the appended claims.
[0040] The method for batch converting bulb flat steel to angle steel or T-sections uses the LISP language and dynamic block technology in AutoCAD software. A batch replacement bulb flat steel module is developed to automatically identify bulb flat steel and replace it with angle steel or T-sections during the ship design stage. The batch replacement bulb flat steel module includes: a main control program unit, a bulb flat steel identification program unit, a batch replacement program, and a profile modification program unit.
[0041] 1) Run the AutoCAD software, embed the main program unit, and start the main control program unit.
[0042] 2) Select or enter the ball flat steel mode in the main program unit. There are three ball flat steel modes: double line (D), single line (S), and loose line (L).
[0043] 3) In CAD, select the area of bulb flats to be converted, and call the bulb flats recognition program unit. The bulb flats recognition program unit will filter out the bulb flats within the selected area based on the selected bulb flats mode and add them to the selection set. The specific implementation steps are as follows:
[0044] (31) such as Figure 4 As shown in (a), in double-line mode: select the double-line ball flat steel elements that meet the conditions within the selected area according to the following conditions;
[0045] Layer: Specifies the layer name; Element type: Polyline (LWPOLYLINE);
[0046] Polyline type: Closed; Number of polyline vertices: 7, e.g., P1-P7; Polyline length range: 270-990mm.
[0047] That is: in the specified layer, select a polyline with 7 vertices, closed structure, and a length range of 270 to 990 mm.
[0048] (32) such as Figure 3 As shown, in single-line mode: select single-line flat steel elements that meet the conditions within the selected area according to the following criteria;
[0049] Layer: Specifies the layer name; Element type: Polyline (LWPOLYLINE);
[0050] Polyline type: non-closed; Number of polyline vertices: 4, such as P1-P4; Polyline length range: 180-600 mm.
[0051] That is, in the specified layer, select a non-closed polyline with 4 vertices and a length range of 180-600 mm.
[0052] (33) In the scattered line mode: use the CAD command "Joint" to connect the scattered lines into multiple lines, and then use the double line mode for filtering.
[0053] 4) The bulb flat steel identification program unit calculates the geometric parameters of the bulb flat steel, including the base point, height, rotation angle, and bulb head orientation of each bulb flat steel. The specific implementation steps are as follows:
[0054] (41) In dual-line mode: refer to Figure 4 Replace P1-P4 with O1-O4 respectively, calculate the lengths of line segments |O1O2| and |O3O4|, and obtain the geometric parameters based on their values.
[0055] If |O1O2|>|O3O4|, then P1=O3, P2=O2, P3=O1; if |O1O2|<|O3O4|, then P1=O2, P2=O3, P3=O4.
[0056] The base point of the spherical flat steel is the coordinate of point P1; the height of the spherical flat steel is the length of the line segment |P1P2|; the rotation angle of the spherical flat steel relative to the x-axis is the direction of vector P1P2; the orientation of the ball head: if the cross product (outer product) of vector P1P2 and vector P1P3 is greater than 0, then vector P1P3 is in the counterclockwise direction of vector P1P2, and the ball head needs to be flipped.
[0057] (42) In single-line mode: refer to Figure 3 Calculate the lengths of line segments |P1P2| and |P3P4|, and obtain the geometric parameters based on their values.
[0058] If |P1P2|>|P3P4|, then it is Figure 3 In (a), otherwise call the CAD command "reverse" to reverse the direction of the polyline;
[0059] The base point of the spherical flat steel is the coordinate of point P1; the height of the spherical flat steel is the length of the line segment |P1P2|; the rotation angle of the spherical flat steel relative to the x-axis is the direction of vector P1P2; the orientation of the ball head: if the cross product (outer product) of vector P1P2 and vector P1P3 is greater than 0, then vector P1P3 is in the counterclockwise direction of vector P1P2, and the ball head needs to be flipped.
[0060] (43) In the scattered line mode: use the CAD command "Joint" to connect the scattered lines into multiple lines, and then use the double line mode for calculation.
[0061] 5) Select or input the replacement profile type "Angle Steel (L)\T Profile (T)" through the main control program unit.
[0062] 6) Call the batch replacement program unit. The specific implementation steps of the batch replacement program unit are as follows:
[0063] Batch delete elements within a set range around the bulb flat steel; where the set range around the bulb flat steel refers to a frame centered on the bulb flat steel, with a width of 300mm and a height of the bulb flat steel height + 150mm.
[0064] At the original base point, insert the corresponding angle steel or T-section dynamic blocks in batches according to the original height and rotation angle of the bulb flat steel; the dynamic block implementation steps are as follows: (a) Figure 2 As shown, various through-hole types and patch plate types of profiles are drawn according to the hull node layer and coded to distinguish them, such as "A1011"; (b) Using "visible parameters", all forms are integrated to control the switching of different forms of through holes and patches in the profile dynamic block; (c) Using "linear stretching parameters", the web height and panel width of the profile dynamic block and the synchronous stretching of the corresponding through holes and patches are controlled; (d) Using "alignment parameters", the profile dynamic block is automatically perpendicular to the plate line to which the profile is attached; (e) Using "flip parameters", the profile orientation and ball head orientation are controlled.
[0065] The orientation of the ball head of the inserted profile dynamic block is set according to the original ball head orientation of the ball flat steel in batches.
[0066] 7) Enter the command to start the profile modification program unit in the command prompt area of the main program unit to enter the profile modification program interface:
[0067] Specify the through-hole type in the "Cut-out Type" option button;
[0068] Specify the patch type in the "Collar Type" option button;
[0069] Set the orientation of the through-hole and the patch plate by checking "Through-Solder Hole" and "Visible";
[0070] Select the profile specification from the drop-down menu;
[0071] The profile modification program interface can dynamically display the profile through-hole patch plate form through the "Preview" area.
[0072] After setting the specifications and patch type, generate the profile dynamic block code such as "A1011". Click the "Update" button, select the range, and you can assign the code such as "A1011" to the visible parameters of the profile dynamic block within the modification range. Assign the profile height and panel width to the linear stretching parameters of the profile dynamic block, thereby realizing the modification of different specifications and different through hole patch styles of the profile dynamic block.
[0073] 8) For example Figure 5 As shown, in the profile modification program interface, select the profile dynamic block using the "Copy" button to obtain the profile patch form parameters; click the "Update" button, select the profile dynamic block to be modified, and it can be modified to the currently stored patch type. The "Copy" and "Update" buttons are used together, similar to the format painter function, to quickly match the specified profile style to the target profile.
[0074] 9) Click the "Cancel" button to close the program interface.
[0075] A system for batch conversion of bulb flat steel interfaces into angle steel or T-shaped profiles includes: a main control program unit, a bulb flat steel identification program unit, a batch replacement program, and a profile modification program unit;
[0076] The main control program unit is used to call AutoCAD and interact with the user, allowing the user to select the replacement bulb flat steel mode, which includes three modes: double-line, single-line, and loose-line.
[0077] The bulb flat steel identification program unit selects the corresponding bulb flat steel identification method according to the selected bulb flat steel mode, and calculates and obtains the base point, height, rotation angle and ball head orientation of the bulb flat steel.
[0078] Batch replacement program unit: Based on the identification results of the ball flat steel identification program unit, batch replace ball flat steel with angle steel or T-shaped steel dynamic blocks;
[0079] The profile modification program unit is used to adjust the specifications of angle steel or T-profiles and the form of the patch plate.
[0080] Obviously, those skilled in the art should understand that the steps of the method for batch conversion of bulb flat steel interfaces into angle steel or T-shaped profiles, or the modules of the system for batch conversion of bulb flat steel interfaces into angle steel or T-shaped profiles, as described in the above embodiments of the present invention, can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by the computing device. Furthermore, in some cases, the steps shown or described can be performed in a different order than presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.
Claims
1. A method for batch conversion of bulb flat steel into angle steel or T-sections, characterized in that, Includes the following: Design a batch replacement module for bulb flats: Using the LISP language and dynamic block technology in AutoCAD software, a batch replacement module for bulb flats is established that can automatically identify bulb flats and replace them in batches with angle steel or T-sections during the ship design stage; the batch replacement module for bulb flats includes: a main control program unit, a bulb flats identification program unit, a batch replacement program, and a profile modification program unit; The main control program unit starts and calls AutoCAD to enter the batch replacement bulb flat steel module; Choose the alternative bulb flat steel pattern, which includes three types: double wire, single wire, and loose wire. The ball flat steel identification program unit is invoked. The ball flat steel identification program unit selects the corresponding ball flat steel identification method according to the selected ball flat steel mode, and calculates and obtains the ball flat steel base point, height, rotation angle and ball head orientation. The batch replacement program unit is invoked, which replaces the ball flat steel with dynamic blocks of angle steel or T-section steel according to the identification result of the ball flat steel identification program unit. The profile modification program unit is invoked, which is used to adjust the specifications of angle steel or T-profile and the form of the patch plate; The specific implementation steps of the batch replacement program unit are as follows: Batch delete elements within a specified range surrounding the ball flat steel; At the original base point, insert the corresponding angle steel or T-shaped dynamic blocks in batches according to the original height and rotation angle of the bulb flat steel; The orientation of the ball head of the inserted profile dynamic block is set according to the original ball head orientation of the ball flat steel in batches. The steps for implementing the profile dynamic block are as follows: (a) Draw various through hole forms and patch plate forms of profile types according to the hull node layer, and distinguish them by coding; (b) Use "visible parameters" to integrate all forms and control the switching of different forms of through holes and patches in the profile dynamic block; (c) Use "linear stretching parameters" to control the web height and panel width of the profile dynamic block, as well as the synchronous stretching of the corresponding through holes and patches; (d) Use "alignment parameters" to control the profile dynamic block to automatically be perpendicular to the plate line to which the profile is attached; (e) Use "flip parameters" to control the profile orientation and ball head orientation.
2. The method for batch conversion of bulb flat steel interfaces into angle steel or T-sections according to claim 1, characterized in that, In the selection of replacement flat steel mode, users can choose between double-line mode, single-line mode, or scattered-line mode through the user interface provided by the main control program unit.
3. The method for batch conversion of bulb flat steel interfaces into angle steel or T-sections according to claim 1, characterized in that, When calling the bulb flat steel recognition unit, you must first select the range of bulb flat steel to be converted in AutoCAD. The bulb flat steel recognition unit will then filter out the bulb flat steel that meets the selection criteria and add it to the selection set based on the selected bulb flat steel pattern. The specific implementation steps are as follows: In dual-line mode: In the specified layer, select a closed polyline with 7 vertices and a length ranging from 270 to 990 mm and add it to the selection set; In single-line mode: In the specified layer, select a non-closed polyline with 4 vertices and a length ranging from 180 to 600 mm and add it to the selection set; In the scattered line mode: use the CAD command "Joint" to connect scattered lines into multiple lines, and then use the double line mode for filtering.
4. The method for batch conversion of bulb flat steel interfaces into angle steel or T-sections according to claim 1, characterized in that, Enter the command to start the profile modification program unit in the command prompt area of the main program unit to enter the profile modification program interface: First, specify the through hole type or patch plate type; set the orientation of the weld hole and patch plate; select the profile specification; the profile modification program interface dynamically displays the profile through hole patch plate type through the preview area. After setting the specifications and patch type, the profile dynamic block code is generated. By selecting the range, the profile dynamic block corresponding to the code can be assigned the visible parameters of the profile dynamic block within the modification range. The profile height and panel width can be assigned the linear stretching parameters of the profile dynamic block, thereby realizing the modification of different specifications of the profile dynamic block and different through hole patch styles. In the profile modification program interface, select the profile dynamic block to obtain the profile patch type parameters; select the profile dynamic block to be modified to change it to the currently stored patch type.
5. A system for realizing the method of batch conversion of bulb flat steel interfaces into angle steel or T-sections as described in claim 1, characterized in that, include: Main control program unit, bulb flat steel identification program unit, batch replacement program and profile modification program unit; The main control program unit is used to call AutoCAD and interact with the user, allowing the user to select the replacement bulb flat steel mode, which includes three modes: double-line, single-line, and loose-line. The bulb flat steel identification program unit selects the corresponding bulb flat steel identification method according to the selected bulb flat steel mode, and calculates and obtains the base point, height, rotation angle and ball head orientation of the bulb flat steel. Batch replacement program unit: Based on the identification results of the ball flat steel identification program unit, batch replace ball flat steel with angle steel or T-shaped steel dynamic blocks; The profile modification program unit is used to adjust the specifications of angle steel or T-profiles and the form of the patch plate.
6. A computer device, characterized in that: The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a method for batch conversion of bulb flat steel interfaces into angle steel or T-sections as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that performs a method for batch conversion of bulb flat steel interfaces into angle steel or T-sections as described in any one of claims 1-4.
Citation Information
Patent Citations
CAD primitive automatic identification and replacement method
CN112256896A