CN114564770A - Method for carrying out plane arc marking in batch in CAD (computer-aided design) - Google Patents

Method for carrying out plane arc marking in batch in CAD (computer-aided design) Download PDF

Info

Publication number
CN114564770A
CN114564770A CN202210206774.4A CN202210206774A CN114564770A CN 114564770 A CN114564770 A CN 114564770A CN 202210206774 A CN202210206774 A CN 202210206774A CN 114564770 A CN114564770 A CN 114564770A
Authority
CN
China
Prior art keywords
arc
marking
batch
cad
point
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.)
Pending
Application number
CN202210206774.4A
Other languages
Chinese (zh)
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.)
China Building Decoration Co ltd
Original Assignee
China Building Decoration 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 China Building Decoration Co ltd filed Critical China Building Decoration Co ltd
Priority to CN202210206774.4A priority Critical patent/CN114564770A/en
Publication of CN114564770A publication Critical patent/CN114564770A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Architecture (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method for carrying out plane arc marking in batch in CAD (computer-aided design), which aims at an arc-shaped skin, realizes batch, quick and high-precision marking of arc length according to vertical surface grids under the operations of inputting a dgr command, selecting the arc-shaped skin, selecting a grid line and finishing the marking of the arc size on the arc-shaped skin by opening an AutoCAD functional module in a command line, greatly reduces the workload of designers, and improves the marking efficiency and the marking precision.

Description

Method for carrying out plane arc marking in batch in CAD (computer-aided design)
Technical Field
The invention relates to the technical field of program codes of CAD arc marking based on marking arc length of arc-shaped skin of a curtain wall, in particular to a method for carrying out batch planar arc marking in CAD.
Background
In the current curtain wall design, the arc-shaped skin becomes a common design form, and the arc lengths of all sections of the curtain wall are marked on the arc-shaped skin in a segmented manner according to the vertical surface grids in the size marking process. The arc length marking function provided by the existing CAD is more convenient when marking a section of complete arc length, but when marking a section of arc length according to different lattices in a segmented manner, the following two modes are marked: the first method is as follows: the arc is broken into small arcs of a section according to the division, and the whole is marked, so that the defect that the division marking of the arc is required to be carried out again when the radius of the arc or the division is adjusted; the second method comprises the following steps: selecting an arc, selecting a part mark, selecting a first point, selecting a second point and confirming that one arc size mark can be completed by five parts and a large amount of capture point operations on the arc exist by using a CAD default 'dimrac' command. In the two modes, when the drawing is adjusted, the workload of re-drawing the size is very large, and the redundancy process is very complicated; when the curved surface divides the box more or the adjustment is more frequent, work efficiency can be very low, because of the mark mistake that the precision of catching caused often appears under the high strength work, also causes wrong guide to the site operation easily. The invention provides a method for carrying out plane arc marking in batch in CAD (computer-aided design).
Disclosure of Invention
The invention provides a method for carrying out plane arc marking in batch in CAD (computer-aided design), which realizes batch high-precision marking of arc length.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method for carrying out plane arc labeling in batch in CAD comprises the following steps:
s1, closing the CAD playback and closing the object capture;
s2, reading a marking variable, assigning a global scale factor to sc, calculating a size offset distance dsc, and setting dsc =10 when sc = 0; dsc =8 × sc when sc ≠ 0;
s3, compiling and calling an Active function, loading a Visual LISP extension function to the automatic LISP, and acquiring a ModelSpace set for file activation and file acquisition;
s4, establishing an empty selection set sss for storing data;
s5, adjusting the unit of angle to be radian;
s6, compiling an intersection point solving function, obtaining an intersection point of two primitives through the primitive names, converting the intersection point into an Autolisp point object and returning the object;
s7, selecting an arc surface control line, assigning the object table to an name, and assigning the primitive name to an name 1;
s8, reading the center of the arc-shaped skin control line and assigning the center of the arc-shaped skin control line to p 0;
s9, selecting a dividing line of the curtain wall, assigning values to a selection set xlk, and counting the number n of xlk elements;
s10, repeating for n times, solving the intersection point of the current element in xlk and the arc-shaped skin control line by using an intersection point solving function, forming a new serial by the intersection point, the angle of the center of a circle and the intersection point, and placing the new serial in a selection set sss;
s11, sorting the elements in the selection set according to the order from small to large, and then assigning values to sss;
s12, repeating the execution for n-1 times, sequentially taking out two points in the sss, assigning the two points to pt1 and pt2, and calculating pt3 according to the midpoint and the size offset distance of pt1 and pt 2;
s13, repeatedly executing n-1 times, calling an arc marking command, and respectively using pt1, pt2 and pt3 as an arc marking first point, a second point and a positioning point to finish arc size marking;
and S14, completing the labeling, adjusting the angle unit to decimal degree, and opening the object capture.
Further, in step S2, the program automatically calculates the positioning point of the arc size according to the current global scale factor, and automatically determines the position during all labeling processes.
Further, in step S3, the intersection function is written and solved by using the Visual LISP expansion function, the arc skin does not extend, and the extension of the dividing lines of the curtain wall intersects with the arc lines.
Further, in step S7, the epidermis control line is a two-dimensional arc object.
Further, in step S9, the dividing line of the curtain wall is a planar object in a two-dimensional space, and no three-dimensional point coordinates can appear.
Further, in step S11, all points are sorted in reverse time, and two adjacent points are sequentially extracted and labeled.
The invention has the following beneficial effects:
according to the invention, a new function module of AutoCAD is opened, and the batch, quick and high-precision marking of the arc length is realized according to the vertical surface grid, so that the workload of designers is greatly reduced, and the marking efficiency and the marking precision are improved.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a schematic plan view of the arcuate skin of the present invention;
FIG. 3 is a schematic view of a vertical side line of a vertical side dividing line according to the present invention;
FIG. 4 is a schematic diagram illustrating operation of an embodiment of the present invention;
FIG. 5 is a diagram illustrating an exemplary operation result according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the specification, 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.
In the description of this patent, it is to be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in the orientations and positional relationships indicated in the drawings for the convenience of describing the patent and for the simplicity of description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are not to be considered limiting of the patent.
As shown in fig. 1, 2, 3, 4 and 5, a method for performing planar arc labeling in a CAD in batch includes the following steps:
s1, closing the CAD playback and closing the object capture;
s2, reading a marking variable, assigning a global scale factor to sc, calculating a size offset distance dsc, and setting dsc =10 when sc = 0; dsc =8 × sc if sc ≠ 0;
s3, compiling and calling an Active function, loading a Visual LISP extension function to the automatic LISP, and acquiring a ModelSpace set for file activation and file acquisition;
s4, establishing an empty selection set sss for storing data;
s5, adjusting the angle unit to be radian;
s6, compiling an intersection point solving function, obtaining an intersection point of two primitives through the primitive names, converting the intersection point into an Autolisp point object and returning the object;
s7, selecting an arc surface control line, assigning the object table to an name, and assigning the primitive name to an name 1;
s8, reading the center of the arc-shaped skin control line and assigning the center of the arc-shaped skin control line to p 0;
s9, selecting a dividing line of the curtain wall, assigning values to a selection set xlk, and counting the number n of xlk elements;
s10, repeating for n times, solving the intersection point of the current element in xlk and the arc-shaped skin control line by using an intersection point solving function, forming a new serial by the intersection point, the angle of the center of a circle and the intersection point, and placing the new serial in a selection set sss;
s11, sorting the elements in the selection set according to the order from small to large, then assigning values to sss, and automatically executing the program;
s12, repeating the execution for n-1 times, sequentially taking out two points in the sss, assigning the two points to pt1 and pt2, calculating pt3 according to the midpoint and the size offset distance of pt1 and pt2, and automatically executing the program;
s13, repeatedly executing n-1 times, calling an arc marking command, wherein pt1, pt2 and pt3 are respectively used as a first point, a second point and a positioning point of the arc marking, so that the arc size marking is completed, and the program is automatically executed;
and S14, after the marking is finished, adjusting the angle unit to decimal degree, opening the object capture, and automatically executing the program.
The skin object marked by the invention needs to be an arc, if the skin object is not an arc, an arc skin needs to be drawn or the skin needs to be converted into an arc object, and the skin and the dividing lines need to be two-dimensional plane objects.
Preferably, in step S1, the object capture is first turned off to avoid intersection bias caused by object capture accuracy problems during later program execution.
Further, in step S2, the program automatically calculates the positioning point of the arc size according to the current global scale factor, and automatically determines the position during all labeling processes.
Further, in step S3, the intersection function is written and solved by using the Visual LISP expansion function, the arc skin does not extend, and the extension of the dividing lines of the curtain wall intersects with the arc lines.
Further, in step S7, the epidermis control line is a two-dimensional arc object.
Further, in step S9, the dividing line of the curtain wall is a planar object in a two-dimensional space, and no three-dimensional point coordinates can appear.
Further, in step S11, all points are sorted in reverse time, and two adjacent points are sequentially extracted and labeled.
As shown in fig. 2, 3, 4 and 5, in practical application of the present invention, the sequence of the specific operation steps in the AutoCAD interaction section is as follows: and the command line inputs a dgr command, selects the arc-shaped skin, selects the dividing line and finishes the marking of the arc-shaped size on the arc-shaped skin.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein, and any reference signs in the claims are not intended to be construed as limiting the claim concerned.

Claims (6)

1. A method for carrying out plane arc marking in batch in CAD is characterized by comprising the following steps:
s1, closing the CAD playback and closing the object capture;
s2, reading a marking variable, assigning a global scale factor to sc, calculating a size offset distance dsc, and setting dsc =10 when sc = 0; dsc =8 × sc when sc ≠ 0;
s3, compiling and calling an Active function, loading a Visual LISP extension function to the automatic LISP, and acquiring a ModelSpace set for file activation and file acquisition;
s4, establishing an empty selection set sss for storing data;
s5, adjusting the unit of angle to be radian;
s6, compiling an intersection point solving function, obtaining an intersection point of two primitives through the primitive names, converting the intersection point into an Autolisp point object and returning the object;
s7, selecting an arc surface control line, assigning the object table to an name, and assigning the primitive name to an name 1;
s8, reading the center of the arc-shaped skin control line and assigning the center of the arc-shaped skin control line to p 0;
s9, selecting a dividing line of the curtain wall, assigning values to a selection set xlk, and counting the number n of xlk elements;
s10, repeating for n times, solving the intersection point of the current element in xlk and the arc-shaped skin control line by using an intersection point solving function, forming a new serial by the intersection point, the angle of the center of a circle and the intersection point, and placing the new serial in a selection set sss;
s11, sorting the elements in the selection set according to the order from small to large, and then assigning values to sss;
s12, repeating the execution for n-1 times, sequentially taking out two points in the sss, assigning the two points to pt1 and pt2, and calculating pt3 according to the midpoint and the size offset distance of pt1 and pt 2;
s13, repeatedly executing n-1 times, calling an arc marking command, and respectively using pt1, pt2 and pt3 as an arc marking first point, a second point and a positioning point to finish arc size marking;
and S14, completing the labeling, adjusting the angle unit to decimal degree, and opening the object capture.
2. The method for batch planar arc marking in CAD according to claim 1, which is characterized by the following: in step S2, the program automatically calculates the anchor point of the arc size according to the current global scale factor, and automatically determines the position during all labeling processes.
3. The method for batch planar arc marking in CAD according to claim 1, which is characterized by the following: in step S3, the intersection function is written and solved by using the Visual LISP expansion function, the arc skin does not extend, and the extension of the dividing lines of the curtain wall intersects with the arc lines.
4. The method for batch planar arc marking in CAD according to claim 1, which is characterized by the following: in step S7, the skin control line is a two-dimensional arc object.
5. The method for batch planar arc labeling in CAD according to claim 1, which is characterized in that: in step S9, the dividing lines of the curtain wall are planar objects in a two-dimensional space, and no three-dimensional point coordinates can appear.
6. The method for batch planar arc marking in CAD according to claim 1, which is characterized by the following: in step S11, all points are sorted in reverse time, and two adjacent points are sequentially taken out and labeled.
CN202210206774.4A 2022-03-04 2022-03-04 Method for carrying out plane arc marking in batch in CAD (computer-aided design) Pending CN114564770A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210206774.4A CN114564770A (en) 2022-03-04 2022-03-04 Method for carrying out plane arc marking in batch in CAD (computer-aided design)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210206774.4A CN114564770A (en) 2022-03-04 2022-03-04 Method for carrying out plane arc marking in batch in CAD (computer-aided design)

Publications (1)

Publication Number Publication Date
CN114564770A true CN114564770A (en) 2022-05-31

Family

ID=81717042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210206774.4A Pending CN114564770A (en) 2022-03-04 2022-03-04 Method for carrying out plane arc marking in batch in CAD (computer-aided design)

Country Status (1)

Country Link
CN (1) CN114564770A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115470577A (en) * 2022-08-11 2022-12-13 中国建筑装饰集团有限公司 Operation method for arc and line type marking alignment of arc-shaped contour in cad

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115470577A (en) * 2022-08-11 2022-12-13 中国建筑装饰集团有限公司 Operation method for arc and line type marking alignment of arc-shaped contour in cad

Similar Documents

Publication Publication Date Title
US4845651A (en) Geometric modelling system
US8072450B2 (en) System and method for measuring a three-dimensional object
US5297241A (en) Automated re-layout with dimensional associativity
CN109859317B (en) 3DGIS terrain model rapid modeling method based on CASS and CATIA
CN115063557B (en) Building intelligent extraction method and device based on tilt model
CN114564770A (en) Method for carrying out plane arc marking in batch in CAD (computer-aided design)
CN116851930B (en) Three-dimensional five-axis curved surface laser cutting track generation method and device
CN113569308A (en) Safety monitoring forward three-dimensional design symbolization drawing method based on 3DE platform
US5428715A (en) Three-dimensional figure data generator device
CN111259474B (en) Large-scale BIM model data processing and loading method and equipment
WO2024109959A1 (en) Three-dimensional automatic design method and apparatus for trays and bearers in gallery, and medium and device
EP1091325A1 (en) Defining parameters for an FEA calculation in a CAD program
CN114511652A (en) Automatic normalization method for composite interface line
JP2002207504A (en) Method and apparatus for producing three-dimensional shape data
US11915372B2 (en) Method and 3D modeling engine for managing modeling data during 3D modeling
KR101530895B1 (en) Methods for extracting object data for 2d cad from 3d cad and vice versa
CN109886879A (en) Figure mirror processing method, electronic equipment and storage medium
CN113486419B (en) Combination method and system for accurately positioning multiple monomer models based on BIM
CN117113480B (en) Method and system for quickly generating size typeset based on geometric figure by CAD
CN104678898A (en) Automatic programming system for movement track of ball slice cutting robot based on CAD (computer-aided design)
JP2821245B2 (en) Processing area designation device
CN111382225B (en) Method and system for storing building planning measurement result data
CN117272877B (en) Correlation updating method, system and medium for EDA model modeling
CN117234195A (en) Map region segmentation method, chip, terminal and robot system
CN106909721B (en) Editable section obtaining method and device

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