CN109190157B - Refreshing method for object position information of Autodesk AutoCAD P & ID - Google Patents
Refreshing method for object position information of Autodesk AutoCAD P & ID Download PDFInfo
- Publication number
- CN109190157B CN109190157B CN201810836407.6A CN201810836407A CN109190157B CN 109190157 B CN109190157 B CN 109190157B CN 201810836407 A CN201810836407 A CN 201810836407A CN 109190157 B CN109190157 B CN 109190157B
- Authority
- CN
- China
- Prior art keywords
- axis
- position information
- refreshing
- autocad
- autodesk autocad
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Abstract
The invention relates to the technical field of refreshing of object position information in AutoCAD P & ID, in particular to a refreshing method of object position information for Autodesk AutoCAD P & ID, which comprises the following steps: step S1, opening drawings which need to refresh the position information of an object one by one; s2, locating point coordinates of an object needing to be subjected to position information refreshing in a reading paper; step S3, obtaining the length, the height and the center point of the view port of the current opened drawing, calculating the maximum point coordinate of the inner frame by combining the minimum point coordinate of the inner frame of the current opened drawing, determining the display area of the current opened drawing according to the minimum point coordinate and the maximum point coordinate, equally dividing the X axis and the Y axis of the display area into a plurality of sections to form an XY axis network, and respectively marking each section of the X axis and the Y axis. And S4, obtaining the position information of the object on the XY-axis network according to the positioning point coordinates, wherein the position information refers to the identification of the sections of the X axis and the Y axis corresponding to the object on the XY-axis network.
Description
Technical Field
The invention relates to the technical field of automatic acquisition of object position information in AutoCAD P & ID, in particular to a refreshing method for object position information of Autodesk AutoCAD P & ID.
Background
AutoCAD P & ID is a design software product based on an AutoCAD platform for creating, modifying, managing pipelines and process flow diagrams. As an important component of the euterk digital plant design solution, autoCAD P & ID can greatly improve the work efficiency of plant designers and easily cope with increasingly complex plant design problems. European Teck provides an easy-to-use two-dimensional and three-dimensional design solution for engineering departments.
Because the area positions of the symbols of the equipment, the valves and the page-to-page connectors in the AutoCAD P & ID are determined according to the area position information formed by the horizontal axis and the vertical axis of the picture frame, for example, when the area position information of one valve needs to be determined, the positioning point of the valve needs to be determined, then each line segment is respectively confirmed to be drawn in the XY two directions to accurately position the area code of the valve in the drawing, finally, the two area codes are filled in the area position attribute, and because the P & ID does not have the function of automatically calculating the position of a special object area, the position is calculated on the drawing object by object and then the characteristic is filled manually at present, the operation efficiency is very low, and if the drawing is too many, the items need to be opened one by one drawing for similar operation.
Disclosure of Invention
The invention aims at solving the problems and provides a batch calculation method for quickly positioning the P & ID objects, which aims at improving the efficiency of refreshing the position information of the objects in the drawing designed by adopting Autodesk AutoCAD P & ID.
In order to achieve the above object, the present invention adopts a technical scheme that is a refreshing method for object position information of Autodesk AutoCAD P & ID, which is used for refreshing position information of an object in a drawing designed by Autodesk AutoCAD P & ID, and includes the following steps:
step S1, opening the drawings which need to refresh the position information of the object in the drawings one by one in Autodesk AutoCAD P & ID, judging whether only one layout exists in the drawings which are opened currently, if yes, executing step S2, otherwise, ending;
s2, reading the positioning point coordinates of the object needing to be subjected to position information refreshing in the currently opened drawing;
step S3, acquiring the length, the height and the center point of a viewing port of the current opened drawing, calculating the maximum point coordinate of an inner frame of the current opened drawing by combining the minimum point coordinate of the inner frame, determining the display area of the current opened drawing according to the minimum point coordinate and the maximum point coordinate, equally dividing an X axis and a Y axis of the display area into a plurality of sections to form an XY axis network, and respectively marking each section of the X axis and the Y axis;
and S4, obtaining the position information of the object on the XY-axis network according to the positioning point coordinates, wherein the position information refers to the identification of the sections of the X axis and the Y axis corresponding to the object on the XY-axis network.
Further, in the step S3, the X-axis and the Y-axis of the display area are equally divided into 8 segments, the X-axis being identified by letters and the Y-axis being identified by numerals.
Further, in the step S4, the recording of the position information into the "Area Pos" characteristic of the object is further included.
Further, after the step S4, a step S5 is further included, in which whether there is any opened drawing is checked, if not, the process is ended, if yes, the process is used as the currently opened drawing, and the process returns to the step S1, in which whether there is only one layout in the currently opened drawing is judged, if yes, the step S2 is executed, otherwise, the process is ended.
Further, in the step S2, the object to be subjected to the position information refreshing includes a device, a valve, and an inter-page connector on the drawing.
Further, in the step S2, the location point of the object requiring the location information refresh is a "Position" point.
Further, in the step S1, the number of the drawings is one or more.
Further, a program corresponding to the refreshing method of the object position information for Autodesk AutoCAD P & ID is developed by using C# language, and finally a DLL file is compiled and generated, wherein the DLL file can be set to Autodesk AutoCAD P & ID for automatic loading, and the position information refreshing operation can be rapidly carried out on the object in the drawing designed by Autodesk AutoCAD P & ID by calling an interface provided by Autodesk AutoCAD P & ID.
The invention has the beneficial effects that:
the method can rapidly refresh the position information of the P & ID drawing and the object, is simple to realize, and greatly improves the efficiency of calculating the position of the object and filling in the characteristics. The program can be widely applied to P & ID software items used in an ACP1000 type nuclear power plant and an AP1000 type nuclear power plant. The procedure can geometrically multiply the improvement of the working efficiency. For example, for the ACP1000 type nuclear power plant project, the object in a drawing is processed to refresh the position information, if the traditional manual calculation mode needs 4 hours, the program programmed by the method provided by the invention can be completed in 1 second.
Drawings
Fig. 1 is a flowchart of a method for refreshing object location information of Autodesk AutoCAD P & ID according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and examples.
As shown in fig. 1, the method for refreshing object position information for Autodesk AutoCAD P & ID provided by the present invention is used for refreshing position information of an object in a drawing designed by Autodesk AutoCAD P & ID, and includes the following steps:
step S1, opening the drawings requiring refreshing the position information of the objects in the drawings one by one in Autodesk AutoCAD P & ID, judging whether only one layout exists in the currently opened drawings, if yes, executing step S2, otherwise, ending;
s2, reading the positioning point coordinates of an object needing to refresh the position information in the current opened drawing; the object needing to refresh the position information comprises equipment, a valve and an inter-page connector on a drawing; the positioning point of the object needing to refresh the Position information is a Position point;
s3, acquiring the length and the height of a view port of the current opened drawing, calculating the maximum point coordinate of an inner frame by combining the minimum point coordinate of the inner frame of the current opened drawing, determining the display area of the current opened drawing according to the minimum point coordinate and the maximum point coordinate, equally dividing the X axis and the Y axis of the display area into a plurality of sections to form an XY axis network, and respectively marking each section of the X axis and the Y axis; specifically, the X-axis and Y-axis of the display area are equally divided into 8 segments, the X-axis is identified by letters, and the Y-axis is identified by numbers. Namely, the X axis is equally divided into 8 sections which are marked by H, G, F, E, D, C, B and A letters from left to right, and the Y axis is equally divided into 8 sections which are marked by 1,2,3,4,5,6,7 and 8 numbers from bottom to top. The number of the drawings is one or more.
And S4, obtaining the position information of the object on the XY-axis network according to the positioning point coordinates, wherein the position information refers to the identification of the sections of the X axis and the Y axis corresponding to the object on the XY-axis network. The location information is recorded into the "Area Pos" characteristic of the object.
After step S4, step S5 is further included, checking whether there is any open drawing, if not, ending, if yes, taking it as the current open drawing, returning to step S1, judging whether there is only one layout in the current open drawing, if yes, executing step S2, otherwise ending.
A program corresponding to a refreshing method for the position information of the object of Autodesk AutoCAD P & ID is developed by using C# language, and finally a DLL file is compiled and generated, wherein the DLL file can be set to Autodesk AutoCAD P & ID for automatic loading, and the position information refreshing operation can be rapidly carried out on the object in a drawing designed by Autodesk AutoCAD P & ID by calling an interface provided by Autodesk AutoCAD P & ID.
The following illustrates the process of refreshing the location information of objects in the drawing designed by Autodesk AutoCAD P & ID according to the method provided by the present invention.
Take the valve with the coordinate (411.1085,264.6400) in the A1 frame as an example
1. The program can directly obtain the length (h=841), the width (w=594), the center point PCenter (x, y) =pcenter (420.5,297) of the visual port of the frame A1, and calculate the coordinates of the maximum point max_s (x, y) and the minimum point min_s (x, y) of the visual port of the frame A1 according to the above data:
Max_s(x,y)=Max_s(PCenter.X+H/2,PCenter.Y+W/2)
=Max_s(420.5+841/2,297+594/2)
=Max_s(841,594)
Min_s(x,y)=Min_s(PCenter.X-H/2,PCenter.Y-W/2)
=Min_s(420.5-841/2,297-594/2)
=Min_s(0,0)
2. since the distance between the maximum point and the minimum point of the outer frame and the maximum point and the minimum point of the inner frame are fixed, the coordinates of the maximum max_n (x, y) and the minimum point min_n (x, y) of the inner frame can be calculated:
Max_n(x,y)=Max_n(Min_s.X+H-10,Min_s.Y+W-10)
=Max_n(841-10,594-10)
=Max_n(831,584)
Min_n(x,y)=Min_n(Min_s.X+25,Min_s.Y+10)
=Min_n(25,10)
3. the average length xLength of the inner frame after 8 equal divisions of the X-axis length and the average length yLength of the inner frame after 8 equal divisions of the Y-axis length can be calculated:
xLength=(Max_n.X-Min_n.X)/8
=100.75
yLength=(Max_n.Y-Min_n.Y)/8
=71.75
on the XY axis network, the X axis 8 equally corresponds to the designated area A, B, C, D, E, F, G, H, the Y axis 8 equally corresponds to the designated areas 1,2,3,4,5,6,7,8,
4. the valve with the coordinate (411.1085,264.6400) is compared with the minimum point Min_s (0, 0) of the outer frame by the length of equal division to obtain 4.08 equal division of the valve on the X axis 8 and 3.68 equal division of the valve on the Y axis 8, so that the position of the valve on the XY axis network is D4.
The device according to the invention is not limited to the examples described in the specific embodiments, and a person skilled in the art obtains other embodiments according to the technical solution of the invention, which also belong to the technical innovation scope of the invention.
Claims (8)
1. A method for refreshing object position information for Autodesk AutoCAD P & ID, for refreshing position information of an object in a drawing designed with Autodesk AutoCAD P & ID, comprising the steps of:
step S1, opening the drawings which need to refresh the position information of the object in the drawings one by one in Autodesk AutoCAD P & ID, judging whether only one layout exists in the drawings which are opened currently, if yes, executing step S2, otherwise, ending;
s2, reading the positioning point coordinates of the object needing to be subjected to position information refreshing in the currently opened drawing;
step S3, acquiring the length, the height and the center point of a viewing port of the current opened drawing, calculating the maximum point coordinate of an inner frame of the current opened drawing by combining the minimum point coordinate of the inner frame, determining the display area of the current opened drawing according to the minimum point coordinate and the maximum point coordinate, equally dividing an X axis and a Y axis of the display area into a plurality of sections to form an XY axis network, and respectively marking each section of the X axis and the Y axis;
and S4, obtaining the position information of the object on the XY-axis network according to the positioning point coordinates, wherein the position information refers to the identification of the sections of the X axis and the Y axis corresponding to the object on the XY-axis network.
2. The method as claimed in claim 1, wherein: in the step S3, the X-axis and the Y-axis of the display area are equally divided into 8 segments, the X-axis being indicated by letters and the Y-axis being indicated by numerals.
3. The method as claimed in claim 1, wherein: in the step S4, the method further includes recording the position information into an "Area Pos" characteristic of the object.
4. The method as claimed in claim 1, wherein: after the step S4, a step S5 is further included, in which whether there is any opened drawing is checked, if not, the process is finished, if yes, the process is used as the currently opened drawing, and the process returns to the step S1, in which whether there is only one layout in the currently opened drawing is judged, if yes, the step S2 is executed, otherwise, the process is finished.
5. The method as claimed in claim 1, wherein: in the step S2, the object to be subjected to the position information refreshing includes a device, a valve, and an inter-page connector on the drawing.
6. The method as claimed in claim 1, wherein: in the step S2, the location point of the object requiring the location information refreshing is a "Position" point.
7. The method as claimed in claim 1, wherein: in the step S1, the number of the drawings is one or more.
8. The method as claimed in claim 1, wherein: and developing a program corresponding to the refreshing method of the object position information for Autodesk AutoCAD P & ID by using C# language, and finally compiling to generate a DLL file, wherein the DLL file is set to be Autodesk AutoCAD P & ID automatic loading, and the object in the drawing designed by Autodesk AutoCAD P & ID can be quickly subjected to position information refreshing operation by calling an interface provided by Autodesk AutoCAD P & ID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810836407.6A CN109190157B (en) | 2018-07-26 | 2018-07-26 | Refreshing method for object position information of Autodesk AutoCAD P & ID |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810836407.6A CN109190157B (en) | 2018-07-26 | 2018-07-26 | Refreshing method for object position information of Autodesk AutoCAD P & ID |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109190157A CN109190157A (en) | 2019-01-11 |
CN109190157B true CN109190157B (en) | 2023-05-23 |
Family
ID=64937017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810836407.6A Active CN109190157B (en) | 2018-07-26 | 2018-07-26 | Refreshing method for object position information of Autodesk AutoCAD P & ID |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109190157B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782602A (en) * | 2020-06-12 | 2020-10-16 | 万翼科技有限公司 | Method for creating examination report and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102024077A (en) * | 2010-11-26 | 2011-04-20 | 江苏省交通科学研究院股份有限公司 | Engineering drawing processing method |
CN102830979A (en) * | 2012-08-30 | 2012-12-19 | 江苏省交通科学研究院股份有限公司 | CAD (computer-aided design) drawing information batch processing method based on ObjectArx |
CN103761331A (en) * | 2014-01-27 | 2014-04-30 | 刘玉芳 | Processing system for drawing data and processing method thereof |
CN103793145A (en) * | 2014-02-21 | 2014-05-14 | 湖南省交通规划勘察设计院 | Drawing frame parameter identification and drawing output method based on autoCAD |
CN105589982A (en) * | 2014-10-23 | 2016-05-18 | 亿阳信通股份有限公司 | Method and device for importing design drawings on basis of symbol templates |
CN106650091A (en) * | 2016-12-21 | 2017-05-10 | 天津理工大学 | Method of extracting connection relations of devices in indoor distribution drawing based on AutoCAD platform |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6464740A (en) * | 1987-04-14 | 1989-03-10 | Northrop Corp | Built-up data model system |
US5742297A (en) * | 1994-11-04 | 1998-04-21 | Lockheed Martin Corporation | Apparatus and method for constructing a mosaic of data |
JP2671842B2 (en) * | 1994-12-26 | 1997-11-05 | 日本電気株式会社 | Computer-aided design apparatus and computer-aided design method |
JP3844174B2 (en) * | 1998-10-26 | 2006-11-08 | マツダ株式会社 | CAD data processing apparatus and storage medium |
JP2000231584A (en) * | 1999-02-10 | 2000-08-22 | Toyo Eng Corp | Plant designing method |
EP1353297A3 (en) * | 2002-04-11 | 2006-01-18 | J.S.T. Mfg. Co., Ltd. | CAD system for 3D objects |
JP2005317617A (en) * | 2004-04-27 | 2005-11-10 | Nikon Corp | Position detecting mark and reticle or sensitive substrate equipped therewith, position detecting method, mark evaluating method, mark detecting method and mark detecting device, exposing method and exposure device |
JP4837405B2 (en) * | 2006-03-09 | 2011-12-14 | 任天堂株式会社 | Coordinate calculation apparatus and coordinate calculation program |
EP2410406A1 (en) * | 2010-07-23 | 2012-01-25 | Anoto AB | Display with coding pattern |
EP2518444B1 (en) * | 2011-04-29 | 2014-06-11 | Harman Becker Automotive Systems GmbH | Navigation device and method of determining a height coordinate |
CN103258473A (en) * | 2013-02-07 | 2013-08-21 | 祝明敬 | Geographical coordinate code marking method applied to map service |
EP2833326B1 (en) * | 2013-07-30 | 2016-04-06 | Dassault Systèmes | Lossless compression of a 3D mesh including transforming of the mesh to a image |
CN106777644B (en) * | 2016-12-08 | 2020-04-10 | 华能国际电力股份有限公司 | Automatic generation method and device for power plant identification system code |
CN107368621B (en) * | 2017-06-06 | 2022-11-18 | 中国核电工程有限公司 | Method for generating CAD format two-dimensional standard three-view by three-dimensional support model in PDMS |
-
2018
- 2018-07-26 CN CN201810836407.6A patent/CN109190157B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102024077A (en) * | 2010-11-26 | 2011-04-20 | 江苏省交通科学研究院股份有限公司 | Engineering drawing processing method |
CN102830979A (en) * | 2012-08-30 | 2012-12-19 | 江苏省交通科学研究院股份有限公司 | CAD (computer-aided design) drawing information batch processing method based on ObjectArx |
CN103761331A (en) * | 2014-01-27 | 2014-04-30 | 刘玉芳 | Processing system for drawing data and processing method thereof |
CN103793145A (en) * | 2014-02-21 | 2014-05-14 | 湖南省交通规划勘察设计院 | Drawing frame parameter identification and drawing output method based on autoCAD |
CN105589982A (en) * | 2014-10-23 | 2016-05-18 | 亿阳信通股份有限公司 | Method and device for importing design drawings on basis of symbol templates |
CN106650091A (en) * | 2016-12-21 | 2017-05-10 | 天津理工大学 | Method of extracting connection relations of devices in indoor distribution drawing based on AutoCAD platform |
Also Published As
Publication number | Publication date |
---|---|
CN109190157A (en) | 2019-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200273177A1 (en) | Assembly monitoring method and device based on deep learning, and readable storage medium | |
US7596468B2 (en) | Method for measuring a selected portion of a curved surface of an object | |
CN107610131A (en) | A kind of image cropping method and image cropping device | |
CN109887030A (en) | Texture-free metal parts image position and posture detection method based on the sparse template of CAD | |
CN111062196A (en) | Batch process flow card generation method based on CAD and Excel | |
US20150269759A1 (en) | Image processing apparatus, image processing system, and image processing method | |
CN113689578B (en) | Human body data set generation method and device | |
US20130162642A1 (en) | Computing device and method for establishing three dimensional coordinate system using graphics | |
CN109190157B (en) | Refreshing method for object position information of Autodesk AutoCAD P & ID | |
CN111369279A (en) | Revit-based engineering settlement method, system, device and storage medium | |
CN105068918A (en) | Page test method and device | |
CN110188495A (en) | A method of the two-dimentional floor plan based on deep learning generates three-dimensional floor plan | |
US8909504B2 (en) | Computing device, storage medium and method for processing dimension numbers using the computing device | |
CN107729511B (en) | Customizable geographic information data rectangular framing method | |
CN110033507B (en) | Method, device and equipment for drawing internal trace of model map and readable storage medium | |
CN116051540B (en) | Method and system for acquiring positioning pose of transformer wiring terminal based on point cloud model | |
CN116894849A (en) | Image segmentation method and device | |
CN113884036B (en) | Coordinate conversion method and device, electronic equipment and storage medium | |
CN110096540A (en) | Surveying and mapping data conversion method, equipment, storage medium and device | |
CN115510525A (en) | Automatic labeling method and system for pipeline three-dimensional building information model | |
CN111563883B (en) | Screen vision positioning method, positioning equipment and storage medium | |
CN109919828B (en) | Method for judging difference between 3D models | |
EP2975850A1 (en) | Method for correcting motion estimation between at least two frames of a video sequence, corresponding device, computer program and non-transitory computer-readable medium | |
CN109509234B (en) | Urban building group high-definition grid map vectorization-based method | |
CN109408656B (en) | Geochemical survey vector data automatic processing method and system based on MapGIS |
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 |