CN106919742B - Method and device for automatically marking section position - Google Patents

Method and device for automatically marking section position Download PDF

Info

Publication number
CN106919742B
CN106919742B CN201710071091.1A CN201710071091A CN106919742B CN 106919742 B CN106919742 B CN 106919742B CN 201710071091 A CN201710071091 A CN 201710071091A CN 106919742 B CN106919742 B CN 106919742B
Authority
CN
China
Prior art keywords
section
cutting line
current drawing
position information
marking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710071091.1A
Other languages
Chinese (zh)
Other versions
CN106919742A (en
Inventor
吕立坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Volkswagen Automotive Co Ltd
Original Assignee
FAW Volkswagen Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Volkswagen Automotive Co Ltd filed Critical FAW Volkswagen Automotive Co Ltd
Priority to CN201710071091.1A priority Critical patent/CN106919742B/en
Publication of CN106919742A publication Critical patent/CN106919742A/en
Application granted granted Critical
Publication of CN106919742B publication Critical patent/CN106919742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for automatically marking a section position, belonging to the field of engineering design, wherein the method comprises the following steps: according to a marking instruction input by a user, acquiring a section on a current drawing, wherein the section is a section of a drawing object; according to the section, determining a cutting line of a drawing object corresponding to the section; respectively acquiring the position information of a section on a current drawing and the position information of a cutting line on the current drawing; and marking the position information of the section on the current drawing on the cutting line, and marking the position information of the cutting line on the current drawing on the section. Therefore, the efficiency of marking the section position on the drawing can be improved, and meanwhile, the marking error rate is reduced.

Description

Method and device for automatically marking section position
Technical Field
The invention relates to the field of engineering design, in particular to a method and a device for automatically marking a section position.
Background
In the engineering drawing process, in order to express the sectional shape of the form or member, an engineer usually adopts a sectional view, wherein the sectional view is a figure obtained by orthographic projection of a contact part of a sectional plane and an object after the object is cut by the sectional plane. For a product with a complex structure, a plurality of cross-sectional views may be required to be matched with the product view to express the structure, wherein the plurality of cross-sectional views respectively correspond to different cutting lines on the product view.
In order to conveniently view the cross-sectional view corresponding to the cutting line on the view, the position information of the cross-sectional view on the drawing is correspondingly marked on the cutting line corresponding to the cross-sectional view, and correspondingly, the position information of the cutting line on the drawing is marked on the cross-sectional view. In the prior art, the position information of the cutting line on the drawing and the position information of the section corresponding to the cutting line on the drawing can only be manually checked by engineering designers, and manual marking is respectively carried out correspondingly, the more complicated the engineering drawing is, the more time and energy are required to be invested by the engineering designers, so that the efficiency is low and mistakes are easily made when the position of the section is marked.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a method and an apparatus for automatically marking a cross-section position, so as to improve efficiency of marking the cross-section position on a drawing and reduce a marking error rate. The purpose of the invention is realized by the following technical scheme:
in a first aspect, a method for automatically marking a section position is provided, the method comprising:
acquiring a section on a current drawing according to a marking instruction input by a user, wherein the section is a section of a drawing object;
according to the section, determining a cutting line of the drawing object corresponding to the section;
respectively acquiring the position information of the section on the current drawing and the position information of the cutting line on the current drawing;
and marking the position information of the section on the current drawing on the cutting line, and marking the position information of the cutting line on the current drawing on the section.
With reference to the first aspect, in a first possible implementation manner, the acquiring a section on a current drawing includes:
acquiring the graphic names of all the graphics on the current drawing, and acquiring the section consistent with the section name from the graphic names on the current drawing; and/or
Acquiring a section on the current drawing according to the shapes of all the graphs on the current drawing; and/or
And acquiring the section from all the graphs on the current drawing according to the special mark of the section.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the determining, according to the cross section, a tangent line of the drawing object corresponding to the cross section includes:
and acquiring a cutting line consistent with the name of the section from all cutting lines of the drawing object according to the name of the section.
With reference to the first aspect, in a third possible implementation manner, the location information includes coordinates and/or a region.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the marking the position information of the cross section on the current drawing on the cutting line, and marking the position information of the cutting line on the current drawing on the cross section includes:
marking the position information of the section on the current drawing on the cutting line according to a preset marking mode, and marking the position information of the cutting line on the current drawing on the section;
the preset labeling mode comprises at least one of a labeling position and a labeling character attribute.
With reference to the first aspect, in a fifth possible implementation manner, the method further includes:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the changed position information of the section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the changed position information of the cutting line on the current drawing.
In a second aspect, a method for automatically marking a section position is provided, the method comprising:
according to a marking instruction input by a user, a cutting line on a current drawing is obtained, wherein the cutting line is a cutting line of a drawing object;
determining a section of the drawing object corresponding to the cutting line according to the cutting line;
respectively acquiring the position information of the cutting line on the current drawing and the position information of the section on the current drawing;
and marking the position information of the cutting line on the current drawing on the cutting line, and marking the position information of the cutting line on the current drawing on the cutting line.
With reference to the second aspect, in a first possible implementation manner, the obtaining a cutting line on the current drawing includes:
and acquiring the cutting line on the current drawing according to the name of the cutting line on the drawing object.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the determining, according to the cutting line, a section of the drawing object corresponding to the cutting line includes:
and acquiring a section consistent with the name of the cutting line from the current drawing according to the name of the cutting line of the drawing object.
With reference to the second aspect, in a third possible implementation manner, the method further includes:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the changed position information of the section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the changed position information of the cutting line on the current drawing.
In a third aspect, there is provided an apparatus for automatically marking a section position, the apparatus comprising:
the first acquisition module is used for acquiring a section on the current drawing according to a marking instruction input by a user, wherein the section is a section of a drawing object;
the first determination module is used for determining a cutting line of the drawing object corresponding to the section according to the section;
the second acquisition module is used for respectively acquiring the position information of the section on the current drawing and the position information of the cutting line on the current drawing;
and the first marking module is used for marking the position information of the section on the current drawing on the cutting line and marking the position information of the cutting line on the current drawing on the section.
With reference to the third aspect, in a first possible implementation manner, the first obtaining module is specifically configured to:
acquiring the graphic names of all the graphics on the current drawing, and acquiring the section consistent with the section name from the graphic names on the current drawing; and/or
Acquiring a section on the current drawing according to the shapes of all the graphs on the current drawing; and/or
And acquiring the section from all the graphs on the current drawing according to the special mark of the section.
With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner, the first determining module is specifically configured to:
and acquiring a cutting line consistent with the name of the section from all cutting lines of the drawing object according to the name of the section.
With reference to the third aspect, in a third possible implementation manner, the position information includes coordinates and/or a region.
With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the first labeling module is specifically configured to:
marking the position information of the section on the current drawing on the cutting line according to a preset marking mode, and marking the position information of the cutting line on the current drawing on the section;
the preset labeling mode comprises at least one of a labeling position and a labeling character attribute.
With reference to the third aspect, in a fifth possible implementation manner, the apparatus further includes a first updating module, where the first updating module is specifically configured to:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the changed position information of the section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the changed position information of the cutting line on the current drawing.
In a fourth aspect, an apparatus for automatically marking a cross-section position is provided, the apparatus comprising:
the third acquisition module is used for acquiring a cutting line on the current drawing according to a marking instruction input by a user, wherein the cutting line is a cutting line of a drawing object;
the second determination module is used for determining the section of the drawing object corresponding to the cutting line according to the cutting line;
the fourth acquisition module is used for respectively acquiring the position information of the cutting line on the current drawing and the position information of the section on the current drawing;
and the second marking module is used for marking the position information of the cutting line on the current drawing on the section and marking the position information of the section on the current drawing on the cutting line.
With reference to the fourth aspect, in a first possible implementation manner, the third obtaining module is specifically configured to:
and acquiring the cutting line on the current drawing according to the name of the cutting line on the drawing object.
With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the second determining module is specifically configured to:
and acquiring a section consistent with the name of the cutting line from the current drawing according to the name of the cutting line of the drawing object.
With reference to the fourth aspect, in a third possible implementation manner, the apparatus further includes a second updating module, where the second updating module is specifically configured to:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the changed position information of the section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the changed position information of the cutting line on the current drawing.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: according to a marking instruction input by a user and the acquired section on the current drawing, determining a cutting line of a drawing object corresponding to the section, or determining the section of the drawing object corresponding to the cutting line according to the acquired cutting line on the current drawing, so that the section or the cutting line on the current drawing can be automatically acquired without requiring an engineering designer to spend time on viewing the drawing, and the cutting line of the drawing object corresponding to the section or the section of the drawing object corresponding to the cutting line is determined; in addition, the problem of errors possibly caused by searching the position information of the section on the drawing and the position information of the cutting line on the drawing in a manual mode is solved by respectively acquiring the position information of the section on the current drawing and the position information of the cutting line on the current drawing; in addition, through will the section is in positional information on the current drawing mark in the dissection line, and will the dissection line is in positional information on the current drawing mark in the section, can avoid artifical mark operation time's waste and the wrong problem of mistake that probably produces to and the convenience is to looking over the section and corresponding dissection line, thereby improved and carried out efficiency and the degree of accuracy of marking the section position at the drawing.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for automatically marking a cross-section position according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for automatically marking a cross-section position according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for automatically marking a cross-section position according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface for automatically marking a position of a cross section according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for automatically marking a cross-section position according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus for automatically marking a cross-section position according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for automatically marking a cross-section position according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment of the invention provides a method for automatically marking a section position, which is shown in figure 1 and comprises the following steps:
101. and acquiring a section on the current drawing according to a marking instruction input by a user, wherein the section is the section of the drawing object.
Specifically, the process may include:
acquiring the graphic names of all the graphics on the current drawing, and acquiring the section consistent with the section name from the graphic names on the current drawing; and/or
Acquiring a section on the current drawing according to the shapes of all the figures on the current drawing; and/or
And acquiring a drawing object, and acquiring a section successfully matched with the shape of the drawing object from all the figures on the current drawing.
102. According to the section, a cutting line of the drawing object corresponding to the section is determined.
Specifically, the process may include:
according to the name of the section, a section line consistent with the name of the section is obtained from all section lines of the drawing object.
103. And respectively acquiring the position information of the section on the current drawing and the position information of the cutting line on the current drawing.
Specifically, the location information includes coordinates and/or regions.
104. And marking the position information of the section on the current drawing on the cutting line, and marking the position information of the cutting line on the current drawing on the section.
Specifically, the process may include:
marking the position information of the section on the current drawing on the cutting line according to a preset marking mode, and marking the position information of the cutting line on the current drawing on the section;
the preset labeling mode comprises at least one of a labeling position and a labeling character attribute.
Optionally, in addition to the above steps, the method provided in the embodiment of the present invention may further include:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the position information of the changed section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the position information of the changed cutting line on the current drawing.
Optionally, the method provided in the embodiment of the present invention may further include:
the method is applied to CATIA software.
The embodiment of the invention provides a method for automatically marking a section position, which is characterized in that a section of a drawing object corresponding to a section is determined according to a marking instruction input by a user and the acquired section on a current drawing, so that the section on the current drawing can be automatically acquired without requiring engineering designers to spend time on checking the drawing, and the section of the drawing object corresponding to the section is determined; moreover, the problem of errors possibly caused by manually searching the position information of the section on the drawing and the position information of the cutting line on the drawing is solved by respectively acquiring the position information of the section on the current drawing and the determined position information of the cutting line corresponding to the section on the current drawing; in addition, the position information of the section on the current drawing is marked on the cutting line, and the position information of the cutting line on the current drawing is marked on the section, so that the problems of waste of manual marking operation time and errors possibly generated can be avoided, the section and the corresponding cutting line can be conveniently checked, and the efficiency and the accuracy of marking the position of the section on the drawing are improved.
Example two
The embodiment of the invention provides a method for automatically marking a section position, which is shown in figure 2 and comprises the following steps:
201. and acquiring a cutting line on the current drawing according to a marking instruction input by a user, wherein the cutting line is the cutting line of the drawing object.
Specifically, the process may include:
and acquiring the cutting line on the current drawing according to the name of the cutting line on the drawing object.
202. And determining the section of the drawing object corresponding to the cutting line according to the cutting line.
Specifically, the process may include:
and acquiring a section consistent with the name of the cutting line from the current drawing according to the name of the cutting line of the drawing object.
203. And respectively acquiring the position information of the cutting line on the current drawing and the position information of the section on the current drawing.
Specifically, the location information includes coordinates and/or regions.
204. And marking the position information of the cutting line on the current drawing on the cutting line.
Specifically, the process may include:
marking the position information of the cutting line on the current drawing on the section according to a preset marking mode, and marking the position information of the section on the current drawing on the cutting line;
the preset labeling mode comprises at least one of a labeling position and a labeling character attribute.
Optionally, in addition to the above steps, the method provided in the embodiment of the present invention may further include:
if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the position information of the changed section on the current drawing; and/or
And if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the position information of the changed section on the current drawing.
Optionally, the method provided in the embodiment of the present invention may further include:
the method is applied to CATIA software.
The embodiment of the invention provides a method for automatically marking a section position, which is characterized in that a section of a drawing object corresponding to a cutting line is determined according to a marking instruction input by a user and the obtained cutting line on a current drawing, so that the cutting line on the current drawing can be automatically obtained without needing an engineering designer to spend time on viewing the drawing, and the section of the drawing object corresponding to the cutting line is determined; moreover, the problem of errors possibly caused by searching the position information of the section on the drawing and the position information of the cutting line on the drawing in a manual mode is solved by respectively acquiring the position information of the cutting line on the current drawing and the determined position information of the cutting line corresponding to the section on the current drawing; in addition, through will the subdivision line is in positional information on the current drawing mark in the section, and will the section is in positional information on the current drawing mark in the subdivision line, can avoid artifical mark operation time's waste and the wrong problem of mistake that probably produces to and the convenience is to looking over the section and the subdivision line that corresponds, thereby improved and carried out efficiency and the degree of accuracy of marking the section position at the drawing.
EXAMPLE III
The embodiment of the invention provides a method for automatically marking a section position, which is shown in figure 3 and comprises the following steps:
301. acquiring a marking instruction input by a user, and after the step 301, executing at least one of the steps 302 to 304.
Specifically, the marking instruction indicates that the position information of the section corresponding to the section on the current drawing is marked on the section, and the position information of the section corresponding to the section on the current drawing is marked on the section line, wherein the section is a section of a drawing object on the current drawing, and the section line is a section of the drawing object.
The annotation instructions may represent others in addition to these.
Specifically, acquiring a trigger instruction input by a user, where the process may include;
when a user clicks a labeling icon, acquiring a labeling instruction input by the user; or
And acquiring a marking instruction input by the user according to the characters input by the user in the preset input box.
In addition, the annotation instruction input by the user may also be obtained in other manners, and the specific obtaining manner is not limited in the embodiment of the present invention.
302. Acquiring the graphic names of all the graphics on the current drawing, acquiring the section consistent with the section name from the graphic names on the current drawing, and executing step 305 after step 302.
Specifically, all the figures on the current drawing may include drawing objects, one or more of six views of the drawing objects, and a cross-section of the drawing objects or the six views of the drawing objects, and in addition, all the figures may include other figures.
Specifically, according to a marking instruction input by a user, extracting graphic names of all graphics on the current drawing; and judging whether the extracted graph name contains a preset field which is used for indicating the section, and if so, determining that the graph represented by the graph name is the section.
Illustratively, the preset field is "Schnitt", and if the extracted graph name includes "Schnitt", the graph represented by the graph name is a cross section.
303. And acquiring a section on the current drawing according to the shapes of all the graphs on the current drawing, and after the step 303, executing a step 305.
Wherein the shape of the figure comprises an inner shape and an outer shape of the figure.
Specifically, whether a graph with the same shape as the preset section exists in all graphs on the current drawing is judged, and if yes, the graph with the same shape as the preset section is determined to be the section.
The method comprises the steps of pre-storing a preset section shape, and determining the figure with the same shape as the preset section shape as the section if the figure with the same shape as the preset section shape exists in all figures on the current drawing.
304. According to the special mark of the section, the section is obtained from all the graphs on the current drawing, and after step 304, step 305 is executed.
The special mark of the section can be various shadow lines, and the shadow lines can be oblique parallel straight lines and/or two groups of crossed parallel straight lines with different inclinations.
Specifically, the embodiments of the present invention do not limit the specific modes.
It should be noted that, step 302 to step 304 are in a parallel relationship, and in practical applications, the process of obtaining the cross section on the current drawing can be implemented through at least one of step 302 to step 304.
In addition, the acquisition of the section on the current drawing can be realized by the following method:
and acquiring a drawing object, and acquiring a section successfully matched with the shape of the drawing object from all the figures on the current drawing.
Specifically, a drawing object is obtained according to the name of the drawing object;
according to the drawing object, a cutting line of the drawing object and an external shape of the drawing object, which may be an outer contour shape of the drawing object, are acquired.
Determining a cutting plane corresponding to the cutting line of the drawing object;
acquiring the shape of a graph at the intersection of the drawing object and the cutting plane according to the outer contour shapes of the cutting plane and the drawing object;
judging whether a graph with the shape consistent with that of the graph at the intersection exists in all the graphs on the current drawing, if so, acquiring the graph with the shape consistent with that of the graph at the intersection, and determining the graph with the shape consistent with that of the graph at the intersection as a cross section.
In addition, the acquisition of the section on the current drawing can be realized by the following method:
acquiring a drawing object, acquiring a figure with a consistent section corresponding to the cutting line of the drawing object from all figures on the current drawing, and determining the figure with the consistent section corresponding to the cutting line of the drawing object as the section.
Specifically, a cutting line of a drawing object and internal features of the drawing object are obtained;
acquiring a section corresponding to a cutting line of the drawing object according to the cutting line of the drawing object and the internal characteristics of the drawing object;
judging whether a graph with a consistent section corresponding to the cutting line of the drawing object exists in all graphs on the current drawing, and if so, acquiring a graph with a consistent section corresponding to the cutting line of the drawing object;
and determining a figure which is consistent with the section corresponding to the section line of the drawing object as the section.
Wherein the internal features of the drawing object include a shape of one or more portions of the drawing object, a height, a width, and/or an angular direction of the one or more portions of the drawing object, and a relationship between the plurality of portions of the drawing object.
305. From the cross section, a cutting line of the drawing object corresponding to the cross section is determined, and after step 305, step 306 is performed.
Specifically, according to the name of the section, a section line that matches the name of the section is obtained from all section lines of the drawing object.
Furthermore, in addition to this, the process of determining a cutting line of the drawing object corresponding to the cross section may be realized by:
determining the internal shape of a drawing object with the same shape as the cross section according to the cross section;
a section line of the drawing object is determined based on the internal shape of the drawing object which is the same as the shape of the cross section.
306. Position information of the section on the current drawing and position information of the cutting line on the current drawing are acquired, respectively, and after step 306, step 307 is executed.
Specifically, the location information includes coordinates and/or regions.
Wherein, respectively obtain the coordinate of the section on the current drawing and the coordinate of the cutting line on the current drawing, the process may include:
constructing a coordinate system on a current drawing;
acquiring the coordinate of the name of the section on the current drawing, and determining the coordinate of the section according to the coordinate of the name of the section on the current drawing; and
and acquiring the coordinate of the name of the cutting line on the current drawing, and determining the coordinate of the cutting line according to the coordinate of the name of the cutting line on the current drawing.
Wherein, respectively obtain the plot area of the section on the current drawing and the plot area of the cutting line on the current drawing, the process may include:
obtaining the picture partition information of the current drawing, wherein the picture partition is obtained by respectively equally dividing two mutually vertical sides of the current drawing according to the size of the current drawing, and the number of the partitions is determined according to the current drawing;
and respectively determining a region of the section on the current drawing and a region of the cutting line on the current drawing according to the picture partition information of the current drawing.
Besides, the process may be implemented in other manners, and the specific process is not limited in the embodiment of the present invention.
307. And marking the position information of the section on the current drawing on the cutting line according to a preset marking mode, and marking the position information of the cutting line on the current drawing on the section.
Specifically, the preset labeling mode includes at least one of a labeling position and a labeling text attribute.
The position of the tangent line may be located in front of, behind, above, or below the name of the tangent line, the position of the cross section may be located in front of, behind, above, or below the name of the cross section, the position of the tangent line may be located in other directions of the tangent line, and the position of the cross section may be located in other directions of the cross section, which is not limited in this embodiment of the present invention.
The marked text attribute comprises at least one of a text font, a text font size, a text color or a text space.
In addition, the preset labeling manner may also include other manners, such as placing the label text in parentheses, and placing the label text in a label frame, where the shape of the label frame may be a rectangle, a circle, a flag, or a cloud, and in addition, the filling color of the label frame may also be preset.
In order to further understand the method of the embodiment of the present invention, the method of the embodiment of the present invention will be further described with reference to the drawings, assuming that the cutting line of the drawing object is shown in fig. 4, the position information of the cutting line on the current drawing is a region a1, and the position information of the cross section on the current drawing is a region a4, after the user clicks the marking tool on the display interface, the position information of the cross section corresponding to the cutting line is marked on the cutting line, which is a4, and the position information of the cutting line corresponding to the cross section is marked on the cross section, which is a 1.
Optionally, the method provided in the embodiment of the present invention may further include:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the position information of the changed section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the position information of the changed cutting line on the current drawing.
For example, if the position information of the section on the current drawing is changed from region a10 to region A8, and the position information region a7 of the cutting line corresponding to the section on the current drawing is kept unchanged, after the user inputs a annotation command, the annotation on the cutting line corresponding to the section is changed from region a10 to region A8, and the annotation a7 on the section is kept unchanged; if the position information of the cutting line on the current drawing is changed from the region A7 to the region A5, and the position information region A10 of the section corresponding to the cutting line on the current drawing is kept unchanged, after a user inputs a marking instruction, the mark on the section corresponding to the cutting line is changed from the region A7 to the region A5, and the mark A10 on the cutting line is kept unchanged; if the position information of the cutting line on the current drawing is changed from region a7 to region a5, and the position information of the cross section corresponding to the cutting line on the current drawing is changed from region a10 to region A8, after the user inputs a marking instruction, the marking on the cross section corresponding to the cutting line is changed from region a7 to region a5, and the marking on the cutting line corresponding to the cross section is changed from region a10 to region A8.
Optionally, after step 307, the method provided in the embodiment of the present invention may further include:
after clicking the section, jumping to a cutting line corresponding to the section, and displaying the cutting line; and/or
After the cutting line is clicked, the display interface jumps to the section corresponding to the cutting line and displays the section.
Optionally, the method provided in the embodiment of the present invention may further include:
the method is applied to CATIA software.
The CATIA is an interactive CAD/CAE/CAM system, and can support all industrial design flows from a project front stage, specific design, analysis, simulation, assembly to maintenance.
In particular, automatic marking of the section position is realized under a Drafting module of the CATIA V5.
The embodiment of the invention provides a method for automatically marking a section position, which is characterized in that a section of a drawing object corresponding to a section is determined according to a marking instruction input by a user and the acquired section on a current drawing, so that the section on the current drawing can be automatically acquired without requiring engineering designers to spend time on checking the drawing, and the section of the drawing object corresponding to the section is determined; moreover, the problem of errors possibly caused by manually searching the position information of the section on the drawing and the position information of the cutting line on the drawing is solved by respectively acquiring the position information of the section on the current drawing and the determined position information of the cutting line corresponding to the section on the current drawing; in addition, the position information of the section on the current drawing is marked on the cutting line, and the position information of the cutting line on the current drawing is marked on the section, so that the problems of waste of manual marking operation time and errors possibly generated can be avoided, the section and the corresponding cutting line can be conveniently checked, and the efficiency and the accuracy of marking the position of the section on the drawing are improved.
Example four
The embodiment of the invention provides a method for automatically marking a section position, which is shown in figure 5 and comprises the following steps:
401. and acquiring a marking instruction input by a user, and after the step 401, executing a step 402.
Specifically, the process may be the same as step 301 in the third embodiment, and will not be described again here
402. According to the name of the cutting line on the drawing object, the cutting line on the current drawing is obtained, and after step 402, step 403 is executed.
Specifically, the embodiments of the present invention do not limit the specific modes.
It should be noted that step 402 is a process for obtaining a cutting line on the current drawing, and the process may be implemented in other ways besides the above-mentioned steps, and the specific process is not limited in the embodiment of the present invention.
403. According to the name of the cutting line of the drawing object, a section consistent with the name of the cutting line is obtained from the current drawing, and after step 403, step 404 is executed.
Specifically, the embodiments of the present invention do not limit the specific modes.
It should be noted that step 403 is to implement a process of determining a cross section of the drawing object corresponding to the cutting line according to the cutting line, and the process may be implemented in other ways besides the above-mentioned steps, and the specific process is not limited in the embodiment of the present invention.
404. Position information of a cutting line on the current drawing and position information of a cross section on the current drawing are acquired, respectively, and after step 404, step 405 is executed.
Specifically, the location information includes coordinates and/or regions.
The process may be the same as step 306 in the third embodiment, and is not described herein again
405. And marking the position information of the cutting line on the current drawing on the cutting line.
Marking the position information of the cutting line on the current drawing on the section according to a preset marking mode, and marking the position information of the section on the current drawing on the cutting line;
the preset labeling mode comprises at least one of a labeling position and a labeling character attribute.
The process may be the same as step 307 in the third embodiment, and is not further described here
Optionally, in addition to the above steps, the method provided in the embodiment of the present invention may further include:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the position information of the changed section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the position information of the changed cutting line on the current drawing.
Optionally, after step 405, the method provided in the embodiment of the present invention may further include:
after the cutting line is clicked, the display interface jumps to the section corresponding to the cutting line and displays the section; and/or
And after clicking the section, jumping to a cutting line corresponding to the section and displaying the cutting line.
Optionally, the method provided in the embodiment of the present invention may further include:
the method is applied to CATIA software.
The CATIA is an interactive CAD/CAE/CAM system, and can support all industrial design flows from a project front stage, specific design, analysis, simulation, assembly to maintenance.
In particular, automatic marking of the section position is realized under a Drafting module of the CATIA V5.
The embodiment of the invention provides a method for automatically marking a section position, which is characterized in that a section of a drawing object corresponding to a cutting line is determined according to a marking instruction input by a user and the obtained cutting line on a current drawing, so that the cutting line on the current drawing can be automatically obtained without needing an engineering designer to spend time on viewing the drawing, and the section of the drawing object corresponding to the cutting line is determined; moreover, the problem of errors possibly caused by searching the position information of the section on the drawing and the position information of the cutting line on the drawing in a manual mode is solved by respectively acquiring the position information of the cutting line on the current drawing and the determined position information of the cutting line corresponding to the section on the current drawing; in addition, through will the subdivision line is in positional information on the current drawing mark in the section, and will the section is in positional information on the current drawing mark in the subdivision line, can avoid artifical mark operation time's waste and the wrong problem of mistake that probably produces to and the convenience is to looking over the section and the subdivision line that corresponds, thereby improved and carried out efficiency and the degree of accuracy of marking the section position at the drawing.
EXAMPLE five
The embodiment of the invention provides a device for automatically marking a section position, and as shown in fig. 6, the device 6 comprises:
the first obtaining module 61 is configured to obtain a cross section on the current drawing according to a labeling instruction input by a user, where the cross section is a cross section of a drawing object;
a first determining module 62, configured to determine, according to the section, a cutting line of the drawing object corresponding to the section;
the second obtaining module 63 is configured to obtain position information of the section on the current drawing and position information of the cutting line on the current drawing respectively;
the first labeling module 64 is configured to label the position information of the cross section on the current drawing on the cutting line, and label the position information of the cutting line on the current drawing on the cross section.
Optionally, the first obtaining module 61 is specifically configured to:
acquiring the graphic names of all the graphics on the current drawing, and acquiring the section consistent with the section name from the graphic names on the current drawing; and/or
Acquiring a section on the current drawing according to the shapes of all the figures on the current drawing; and/or
And acquiring a drawing object, and acquiring a section successfully matched with the shape of the drawing object from all the figures on the current drawing.
Optionally, the first determining module 62 is specifically configured to:
according to the name of the section, a section line consistent with the name of the section is obtained from all section lines of the drawing object.
Optionally, the location information comprises coordinates and/or regions.
Optionally, the first labeling module 64 is specifically configured to:
marking the position information of the section on the current drawing on the cutting line according to a preset marking mode, and marking the position information of the cutting line on the current drawing on the section;
the preset labeling mode comprises at least one of a labeling position and a labeling character attribute.
Optionally, the apparatus 6 further includes a first updating module 65, where the first updating module 65 is specifically configured to:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the position information of the changed section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the position information of the changed cutting line on the current drawing.
Optionally, the apparatus 6 is applied to CATIA software.
The embodiment of the invention provides a device for automatically marking a section position, which is characterized in that a section cutting line of a drawing object corresponding to the section is determined according to a marking instruction input by a user and the acquired section on a current drawing, so that the section on the current drawing can be automatically acquired without spending time on looking up the drawing by engineering designers, and the section cutting line of the drawing object corresponding to the section is determined; moreover, the problem of errors possibly caused by manually searching the position information of the section on the drawing and the position information of the cutting line on the drawing is solved by respectively acquiring the position information of the section on the current drawing and the determined position information of the cutting line corresponding to the section on the current drawing; in addition, the position information of the section on the current drawing is marked on the cutting line, and the position information of the cutting line on the current drawing is marked on the section, so that the problems of waste of manual marking operation time and errors possibly generated can be avoided, the section and the corresponding cutting line can be conveniently checked, and the efficiency and the accuracy of marking the position of the section on the drawing are improved.
EXAMPLE six
The embodiment of the invention provides a device for automatically marking a section position, and referring to fig. 7, the device 7 comprises:
a third obtaining module 71, configured to obtain a cutting line on the current drawing according to a labeling instruction input by a user, where the cutting line is a cutting line of a drawing object;
a second determining module 72, configured to determine, according to the cutting line, a cross section of the drawing object corresponding to the cutting line;
a fourth obtaining module 73, configured to obtain position information of a cutting line on the current drawing and position information of a cross section on the current drawing, respectively;
and the second marking module 74 is configured to mark the position information of the cutting line on the current drawing on the cutting line, and mark the position information of the cutting line on the current drawing on the cutting line.
Optionally, the third obtaining module 71 is specifically configured to:
and acquiring the cutting line on the current drawing according to the name of the cutting line on the drawing object.
Optionally, the second determining module 72 is specifically configured to:
and acquiring a section consistent with the name of the cutting line from the current drawing according to the name of the cutting line of the drawing object.
Optionally, the apparatus 7 further includes a second updating module 75, where the second updating module 75 is specifically configured to:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the changed position information of the section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the changed position information of the cutting line on the current drawing.
Optionally, the apparatus 7 is applied to CATIA software.
The embodiment of the invention provides an automatic section marking position device, which determines the section of a drawing object corresponding to a cutting line according to a marking instruction input by a user and the obtained cutting line on a current drawing, so that the cutting line on the current drawing can be automatically obtained without needing an engineering designer to spend time on viewing the drawing, and the section of the drawing object corresponding to the cutting line is determined; moreover, the problem of errors possibly caused by searching the position information of the section on the drawing and the position information of the cutting line on the drawing in a manual mode is solved by respectively acquiring the position information of the cutting line on the current drawing and the determined position information of the cutting line corresponding to the section on the current drawing; in addition, through will the subdivision line is in positional information on the current drawing mark in the section, and will the section is in positional information on the current drawing mark in the subdivision line, can avoid artifical mark operation time's waste and the wrong problem of mistake that probably produces to and the convenience is to looking over the section and the subdivision line that corresponds, thereby improved and carried out efficiency and the degree of accuracy of marking the section position at the drawing.
It is to be noted that, the device for automatically marking a cross-section position provided in the embodiment of the present invention may only include each module described in the fifth embodiment and implement its corresponding function, may also only include each module described in the sixth embodiment and implement its corresponding function, and may also include each module included in the fifth embodiment and the sixth embodiment and implement its corresponding function; moreover, when the apparatus includes the modules included in the fifth embodiment and the sixth embodiment, the modules having the same function may be combined into the same module to implement the corresponding functions.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the method for automatically marking a cross-section position according to the embodiment, only the division of the functional modules is used for illustration, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device for automatically marking a cross-section position is divided into different functional modules to complete all or part of the functions described above. In addition, the device for automatically labeling the position of the cross section and the method for automatically labeling the position of the cross section provided by the embodiment belong to the same concept, and the specific implementation process is described in the method embodiment and is not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for automatically marking a cross section position, the method comprising:
acquiring a section on a current drawing according to a marking instruction input by a user, wherein the section is a section of a drawing object;
according to the section, determining a section line corresponding to the section from all section lines of the drawing object;
respectively acquiring the position information of the section on the current drawing and the position information of the cutting line on the current drawing;
and marking the position information of the section on the current drawing on the cutting line, and marking the position information of the cutting line on the current drawing on the section.
2. The method of claim 1, wherein the obtaining the section on the current drawing comprises:
acquiring the graphic names of all the graphics on the current drawing, and acquiring the section consistent with the section name from the graphic names on the current drawing; and/or
Acquiring a section on the current drawing according to the shapes of all the graphs on the current drawing; and/or
And acquiring the section from all the graphs on the current drawing according to the special mark of the section.
3. The method of claim 2, wherein the determining, from the cross-sections, a cross-section corresponding to the cross-section from all cross-sections of the drawing object comprises:
and acquiring a cutting line consistent with the name of the section from all cutting lines of the drawing object according to the name of the section.
4. The method of claim 1, wherein the location information comprises coordinates and/or regions.
5. The method of claim 4, wherein the marking the position information of the section on the current drawing on the section line and the marking the position information of the section line on the current drawing on the section line comprises:
marking the position information of the section on the current drawing on the cutting line according to a preset marking mode, and marking the position information of the cutting line on the current drawing on the section;
the preset labeling mode comprises at least one of a labeling position and a labeling character attribute.
6. The method of claim 1, further comprising:
if the position information of the section on the current drawing is changed, updating the mark of the cutting line according to the changed position information of the section on the current drawing; and/or
And if the position information of the cutting line on the current drawing is changed, updating the label of the section according to the changed position information of the cutting line on the current drawing.
7. An apparatus for automatically marking a cross-section position, the apparatus comprising:
the first acquisition module is used for acquiring a section on the current drawing according to a marking instruction input by a user, wherein the section is a section of a drawing object;
a first determining module, configured to determine, according to the cross section, a cutting line corresponding to the cross section from all cutting lines of the drawing object;
the second acquisition module is used for respectively acquiring the position information of the section on the current drawing and the position information of the cutting line on the current drawing;
and the first marking module is used for marking the position information of the section on the current drawing on the cutting line and marking the position information of the cutting line on the current drawing on the section.
8. A method for automatically marking a cross section position, the method comprising:
according to a marking instruction input by a user, a cutting line on a current drawing is obtained, wherein the cutting line is a cutting line of a drawing object;
according to the cutting line, determining a section corresponding to the cutting line from the current drawing;
respectively acquiring the position information of the cutting line on the current drawing and the position information of the section on the current drawing;
and marking the position information of the cutting line on the current drawing on the cutting line, and marking the position information of the cutting line on the current drawing on the cutting line.
9. The method of claim 8, wherein the obtaining a cut line on the current drawing comprises:
and acquiring the cutting line on the current drawing according to the name of the cutting line on the drawing object.
10. An apparatus for automatically marking a cross-section position, the apparatus comprising:
the third acquisition module is used for acquiring a cutting line on the current drawing according to a marking instruction input by a user, wherein the cutting line is a cutting line of a drawing object;
the second determining module is used for determining a section corresponding to the cutting line from the current drawing according to the cutting line;
the fourth acquisition module is used for respectively acquiring the position information of the cutting line on the current drawing and the position information of the section on the current drawing;
and the second marking module is used for marking the position information of the cutting line on the current drawing on the section and marking the position information of the section on the current drawing on the cutting line.
CN201710071091.1A 2017-02-09 2017-02-09 Method and device for automatically marking section position Active CN106919742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710071091.1A CN106919742B (en) 2017-02-09 2017-02-09 Method and device for automatically marking section position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710071091.1A CN106919742B (en) 2017-02-09 2017-02-09 Method and device for automatically marking section position

Publications (2)

Publication Number Publication Date
CN106919742A CN106919742A (en) 2017-07-04
CN106919742B true CN106919742B (en) 2020-05-15

Family

ID=59454682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710071091.1A Active CN106919742B (en) 2017-02-09 2017-02-09 Method and device for automatically marking section position

Country Status (1)

Country Link
CN (1) CN106919742B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110322531B (en) * 2019-07-01 2023-03-10 上海外高桥造船有限公司 Automatic marking method, system, equipment and storage medium for flat steel support

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441780A (en) * 2008-11-05 2009-05-27 武汉大学 Method for slitting three-dimensional gridding model
CN102651146A (en) * 2012-04-09 2012-08-29 铁道第三勘察设计院集团有限公司 Three-dimensional multi-track railway cross section graphic display method
CN104572647A (en) * 2013-10-11 2015-04-29 北大方正集团有限公司 Labeling device and labeling method
CN105589990A (en) * 2015-11-30 2016-05-18 攀钢集团攀枝花钢钒有限公司 Parameterization design method of rail section
US9465894B1 (en) * 2012-02-10 2016-10-11 Dassault Systemes Solidworks Corporation Generation of section view cutting lines with automatic constraints

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441780A (en) * 2008-11-05 2009-05-27 武汉大学 Method for slitting three-dimensional gridding model
US9465894B1 (en) * 2012-02-10 2016-10-11 Dassault Systemes Solidworks Corporation Generation of section view cutting lines with automatic constraints
CN102651146A (en) * 2012-04-09 2012-08-29 铁道第三勘察设计院集团有限公司 Three-dimensional multi-track railway cross section graphic display method
CN104572647A (en) * 2013-10-11 2015-04-29 北大方正集团有限公司 Labeling device and labeling method
CN105589990A (en) * 2015-11-30 2016-05-18 攀钢集团攀枝花钢钒有限公司 Parameterization design method of rail section

Also Published As

Publication number Publication date
CN106919742A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
CN109165401B (en) Method and device for generating two-dimensional construction map based on civil structure three-dimensional model
CN108228183B (en) Front-end interface code generation method and device, electronic equipment and storage medium
CN108267154B (en) Map display method and device
RU2430421C2 (en) Applying effects to merged text path
JP2012155424A (en) Design support device, method and program
CN106528762B (en) Electronic map processing method and processing system for identifying interest points
CN104407779A (en) Arrangement display method and device for graphical interface
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
CN102467519A (en) Visualization plotting method and system based on geographic information system
CN113569308A (en) Safety monitoring forward three-dimensional design symbolization drawing method based on 3DE platform
JP2010277115A (en) Harness verification device and harness verification program
CN106919742B (en) Method and device for automatically marking section position
JPH05346957A (en) Device and method for presenting shape feature quantity
JP6571428B2 (en) Shield tunnel plotter
CN113791760A (en) Commercial intelligent instrument panel generation method and device, electronic equipment and storage medium
CN109934894B (en) CAD (computer-aided design) drawing method and device and computer-readable storage medium
US20140136966A1 (en) Method and System for Generating Instructions According to Change of Font Outline
CN112131626A (en) CAD model geometric feature interaction method and system for non-regional Engine
CN108744520B (en) Method and device for determining placement position of game model and electronic equipment
CN110516333A (en) Device layout methods, device, equipment and readable storage medium storing program for executing in a kind of PCB
JP4966898B2 (en) Program, apparatus, and method for generating neutral plane mesh data
CN112132927B (en) Drawing system and method for generating two-dimensional and three-dimensional models on webpage interface
JP3898485B2 (en) Drawing drawing display device, drawing drawing display method, and recording medium
CN114564268A (en) Equipment management method and device, electronic equipment and storage medium
KR101530895B1 (en) Methods for extracting object data for 2d cad from 3d cad and vice versa

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant