CN115629723A - Engineering drawing batch printing method based on CATIA V6 - Google Patents

Engineering drawing batch printing method based on CATIA V6 Download PDF

Info

Publication number
CN115629723A
CN115629723A CN202211315155.5A CN202211315155A CN115629723A CN 115629723 A CN115629723 A CN 115629723A CN 202211315155 A CN202211315155 A CN 202211315155A CN 115629723 A CN115629723 A CN 115629723A
Authority
CN
China
Prior art keywords
frame
picture frame
catia
picture
printarea
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
CN202211315155.5A
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 Shipbuilding Group Corp 708 Research Institute
Original Assignee
China Shipbuilding Group Corp 708 Research Institute
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 Shipbuilding Group Corp 708 Research Institute filed Critical China Shipbuilding Group Corp 708 Research Institute
Priority to CN202211315155.5A priority Critical patent/CN115629723A/en
Publication of CN115629723A publication Critical patent/CN115629723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • G06F3/1215Improving printing performance achieving increased printing speed, i.e. reducing the time between printing start and printing end
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41MPRINTING, DUPLICATING, MARKING, OR COPYING PROCESSES; COLOUR PRINTING
    • B41M5/00Duplicating or marking methods; Sheet materials for use therein
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/125Page layout or assigning input pages onto output media, e.g. imposition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a CATIA V6-based engineering drawing batch printing method. Compared with the prior art, the invention has the following beneficial effects: 1) The invention solves the problem that the native function can only generate one picture frame in the Sheet, and the picture frame drawing device can automatically generate all required picture frames in the Sheet, thereby improving the picture frame drawing efficiency; 2) The invention realizes the customization and standardization of various styles of the drawing frame based on the 2D Component (2D part) function, and the innovative method and the innovative device can rapidly respond to the requirement change of enterprises; 3) The invention strictly follows the information preset in task systems such as enterprise internal PDM and the like, ensures the accuracy of the drawing frame information and saves the time manually filled by a user; 4) The invention realizes batch printing of the picture frames, has simple, convenient and quick operation and greatly improves the efficiency. Avoid repetitive labor, reduce the waste of human resources.

Description

Engineering drawing batch printing method based on CATIA V6
Technical Field
The invention relates to a CATIA V6-based engineering drawing batch printing method, and belongs to the field of engineering drawing printing.
Background
The CATIA V6 is CAD/CAE/CAM integrated software released by Dasuo corporation, and is widely applied in aerospace, automobile manufacturing, ship building, machinery manufacturing, electronic/electric appliances, mechanical design and consumer goods industries.
The CATIA engineering drawing module (Drafting) enables designers to obtain a two-dimensional engineering drawing completely related to the three-dimensional solid model, and the engineering drawing can also be sent to a printer to be printed. An engineering Drawing is called a Drawing, a plurality of Sheet nodes are divided under a Drawing general node, the Sheet nodes are equivalent to a piece of white paper and contain various views, and generally the Sheet nodes provide layout ranges for the views, as shown in fig. 1. At present, in engineering application, a two-dimensional engineering drawing is indispensable, and as an important technical document material, the engineering drawing must meet certain specifications and standards. The drawing frame is an indispensable drawing element in the engineering drawing and contains a great deal of engineering information such as drawing size, designer, proofreader, product name, proportion and the like.
CAA is a powerful tool for daxol product expansion and secondary development by customers. The CAA is realized by providing a Rapid Application Development Environment (RADE) and different API interface programs. RADE is a visual, integrated development environment that provides a complete set of programming tools. In fact, RADE takes Visual Studio as a vector, and the development tool of CAA is increased in the C + + environment. The API provides methods, tools, and interfaces for manipulating various objects. The user can extend the CATIA V6 by developing a CAA plug-in of the user.
The 2D part is a set of reusable geometric figures and labels. This part is located in the drawing and can be edited as a view. The 2D part may be instantiated multiple times and each instance may provide a particular direction, position, and scale.
The CATIA native print function interface is shown in FIG. 3. Its print area selection provides 4 ways: (1) printing the complete Sheet; (2) print screen visible Sheet range; (3) printing the selected area; and (4) printing the predefined area. It can be seen that the native function does not provide a batch printing function, and printing of only a single area can be performed. Often, dozens or even hundreds of drawings in the engineering drawings need to be printed, and the output efficiency is very low due to a large number of repeated operations. In addition, if a single printing method is adopted, the problems of error printing range, less printing, missing printing and repeated printing are easy to occur. Due to low plotting efficiency, under the condition of a certain design period, the time for other design links is relatively short, and the design quality is influenced.
The printing range of the engineering drawing is often in units of frames, but the CATIA native function frames are in the range of Sheet boundaries, namely one Sheet is an engineering drawing. In addition, in the actual drawing process, multiple views (such as a cut-away View, a detail View and the like) exist in one Sheet, and all the views need respective frames, so that multiple frames need to exist in one Sheet. As shown in fig. 4, it can be seen that the frame generation function of the native function cannot meet the actual printing requirement of the enterprise.
The currently published patent applications and papers on CATIA technology are:
the invention patent application with the publication number of CN 101364172A discloses an implementation method for automatically generating an engineering drawing frame in Catia V5 software. As the CATIA V6 and the CATIA V5 complete the upgrade, replacement, and deletion of the original functions on the engineering drawing module, the technical method disclosed in the patent application falls behind, and a user cannot realize the generation of a drawing frame in the CATIA V6 by using the patent method.
In the document, "engineering drawing jigsaw printing management system based on CATIA", all views in a drawing are fully spliced in a Sheet according to a certain rule by a CAA means, and batch printing is not realized or single Sheet printing is realized.
The native function method used in the literature "engineering drawing frame, title bar and detail bar fast generation technology based on CATIA" is used for generating the drawing frame, the limitation of Sheet on the drawing frame is not broken through, and batch printing in one Sheet cannot be realized.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the frame generation function of the CATIA native function cannot meet the actual printing requirements of enterprises.
In order to solve the technical problem, the technical scheme of the invention is to provide a batch printing method of engineering drawings based on CATIA V6, which is characterized by comprising the following steps:
s1, setting a frame information table for a frame, and storing the frame information for a user through the frame information table;
s2, cutting a picture frame into necessary picture blocks according to the picture frame pattern of the engineering drawing, and establishing a standard 2D component library by taking the picture blocks as units;
step S3, opening a picture frame drawing device: the method comprises the steps that a drawing and outputting development toolkit of a picture frame is configured in a CATIA local environment, namely, a drawing device of the picture frame can be opened in an engineering drawing toolbar of a CATIA V6;
s4, acquiring picture frame information: accessing the picture frame information table established in the step S1, and reading and recording the required picture frame information;
s5, inputting frame information by a user through a frame drawing device;
s6, according to the attribute information of the user-defined picture frame, automatically quoting required components from the standard 2D component library created in the step S2 according to the picture frame style requirement secondary development program, and splicing all the components into a picture frame required by an enterprise;
s7, writing the picture frame information acquired in the step S4 into the 2D component;
s8, automatically splicing and arranging all the 2D parts in the engineering drawing nodes by the drawing device;
step S9, opening the picture frame output device: the drawing and outputting development toolkit of the picture frame is configured in the CATIA local environment, namely the picture frame output device can be opened in an engineering drawing toolbar of the CATIA V6;
step S10, inputting a printing page number and a printing attribute by a user;
s11, traversing the picture frame drawn in the S8 by a CAA secondary development program;
s12, acquiring a frame attribute in the traversing process of the S11;
and S13, completing batch printing of the frames.
Preferably, in step S1, the drawing frame information includes a manufacturing unit, a design unit, a ship name, a drawing number, a drawing name, a drawing, a proofreading, an audit and a marking inspection.
Preferably, in step S2, the tile blocks include an outline of a frame, a tab column, a title column, a drawing number column, and a meeting column.
Preferably, in step S2, the standard 2D component library is an engineering drawing total node in the CATIA V6; classifying the engineering drawing general nodes into chart nodes with different purposes according to the pattern of the drawing blocks of the drawing frame, and storing the 2D parts; using the create 2D part command of CATIA V6, individual 2D parts required for a frame are created in the corresponding chart node, and a local coordinate system position is defined.
Preferably, in step S3, the frame drawing device code is implemented based on the use of the catidftshort class, CATIDftView class, catidwrtextproperties class, catiadarwingcomponent class, and cattdftdrawingplmservices class, which are repeated.
Preferably, in step S4, the drawing frame information table is an EXCEL table, and the language for accessing the EXCEL table uses a C + + secondary interface provided by microsoft.
Preferably, in step S5, the frame information includes: frame size, frame proportion, frame row number, frame column number, line spacing, and row spacing.
Preferably, in step S9, the frame output device code is implemented based on the continuous and repeated use of catiprntermanager class, CATPrintParameters class, CATPrinterDevice class, and CATPrintForm class.
Preferably, in step S12, a GetAlias function is used to obtain a 2D part name, and if the component application is a frame outline, page number, frame size, and frame proportion information are further obtained from the frame outline name, where interfaces GetX and GetY are used to obtain positioning coordinates of a frame outline block in Sheet, and from the positioning coordinates, the frame size, and the frame proportion, and a printing range where the frame can be obtained, the frame outline positioning coordinates are respectively CoverH and CoverV, the frame size is FrameLenth and FrameWidth, and the frame proportion is Scale, the printing range PrintArea is:
PrintArea[0]=CoverH-FrameLength()*Scale;
PrintArea[1]=CoverV;
PrintArea[2]=FrameLength()*Scale;
PrintArea [3] = FrameWidth () + Scale, wherein:
PrintArea [0], printArea [1], printArea [2], and PrintArea [3] respectively represent a printing area bottom x coordinate, a printing area bottom y coordinate, a printing area width, and a printing area height.
Preferably, in step S7, writing the frame information into the 2D part includes the steps of:
setting text content in the 2D part by using an interface SetString to obtain a text object pDftText in the 2D part;
converting the text object pDftText in the 2D component into a CATIDWTextProperties _ var object pDftText2;
refreshing the text content in the 2D component is realized by refreshing the CATIDowTextProperties _ var object pDftText2 by using an interface Refresh.
Compared with the prior art, the invention has the following beneficial effects:
1) The invention solves the problem that the native function can only generate one picture frame in the Sheet, and the picture frame drawing device can automatically generate all required picture frames in the Sheet, thereby improving the picture frame drawing efficiency;
2) The invention realizes the customization and standardization of various styles of the drawing frame based on the 2D Component (2D part) function, and the innovative method and the innovative device can rapidly respond to the requirement change of enterprises;
3) The invention strictly follows the information preset in task systems such as enterprise internal PDM and the like, ensures the accuracy of the drawing frame information and saves the time manually filled by a user;
4) The invention realizes batch printing of the picture frames, has simple, convenient and quick operation and greatly improves the efficiency. Avoid repetitive labor, reduce the waste of manpower resources.
Drawings
FIG. 1 illustrates a CATIA engineering drawing node;
fig. 2 illustrates a 2D part (2D Component), in which (1) denotes a 2D part (reference), (2) denotes an example of the 2D part;
FIG. 3 illustrates a CATIA native print function interface;
FIG. 4 is a drawing sheet example;
FIG. 5 is a flow chart of a drawing and outputting method of a picture frame based on CATIA V6 secondary development disclosed by the invention
FIG. 6 is an example of icon bar information provided by an embodiment of the present invention;
FIGS. 7 (a) to 7 (e) are block diagrams of embodiments of the invention, wherein FIG. 7 (a) is a frame outline, FIG. 7 (b) is a label bar, FIG. 7 (c) is a title bar, FIG. 7 (d) is a number bar, and FIG. 7 (e) is a counterlabel bar;
FIG. 8 is an example of a library of framing standard components provided by an embodiment of the present invention;
FIG. 9 illustrates positioning of a 2D part with an outline in a drawing frame according to an embodiment of the present invention;
fig. 10 is an interface of a frame drawing apparatus according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating an interface of a frame output device according to an embodiment of the present invention;
fig. 12 is an example of a drawing result of a frame according to an embodiment of the present invention.
Detailed Description
The invention will be further illustrated with reference to the following specific examples. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention can be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the claims appended to the present application.
The embodiment takes ship design engineering drawing batch printing as an embodiment, and provides an engineering drawing batch printing method based on CATIA V6, which utilizes a printing program, wherein the printing program comprises a drawing device of a drawing frame and a drawing frame output device, a specific method flow chart is shown in FIG. 5, and the following steps are included:
s1, setting a frame information table (also referred to as "checklist") for the frame, which strictly complies with information preset in task systems such as PDM in the enterprise, as shown in fig. 6, the frame information table stores frame information such as a manufacturing unit, a design unit, a ship name, a drawing number, a drawing name, drawing, proofreading, auditing, and checking for a user.
S2, cutting the picture frame into necessary picture blocks according to the picture frame style of the engineering drawing, dividing the picture frame into a picture frame outer contour, a drawing label column, a title column, a drawing number column, a meeting label column and the like according to the embodiment shown in the figure 7, and creating a standard 2D component library by taking the picture blocks as units.
As shown in fig. 8, in the present embodiment, the standard 2D component library is actually an engineering Drawing master node (draw) in the CATIA V6; classifying the engineering Drawing master nodes (Drawing) into different purpose chart nodes (Detail Sheet) according to the pattern of the Drawing blocks of the Drawing frame for storing 2D parts; using the create 2D part command (2D Component) of CATIA V6, individual 2D parts required for a frame are created in a corresponding graph node (Detail Sheet) and a local coordinate system position is defined, as shown in fig. 8, and the frame outline Component local coordinate is set in the lower right corner.
And S3, opening the picture frame drawing device. The layout drawing and output development kit is configured in the CATIA local environment, that is, the layout drawing device can be opened in the engineering drawing toolbar, and the interface is shown in fig. 10.
In the present embodiment, the basis of the code implementation of the frame drawing apparatus is to use the catifttsheet class (diagram), catifttview class (view), catidrwpproperties class (text), catiawranglongcomponent class (engineering drawing 2D part), cattdftdrawingplmservices (engineering drawing service), and the like, repeatedly.
And S4, obtaining the picture frame information. And accessing the picture frame information table established in the step S1 through CAA language, and reading and recording the required picture frame information. In this example, the frame information table is an EXCEL table, and the language for accessing the EXCEL table mainly uses the C + + secondary interface provided by microsoft.
S5, inputting frame information by a user through a frame drawing device, wherein the frame information comprises: frame size, frame proportion, frame row number, frame column number, line spacing, and row spacing.
And S6, according to the attribute information of the user-defined picture frame, automatically quoting required components from the standard 2D component library created in the step S2 by a secondary development program according to the picture frame style requirement, and splicing all the components into a picture frame required by an enterprise.
In this embodiment, the implementation of 2D component call splicing may be the following key codes:
catiawrangelements p1= NULL; // variable of type CATIADRAWING COMPOUNDS (CATIA engineering FIG. 2D parts set)
pCurrentView- > get _ Components (p 1); // get 2D parts set from Current View Using interface get _ Components
Catiawrangcomponent instance1= NULL; // variable defining the type CATIADARravingComponent (CATIA engineering FIG. 2D component)
p1- > Add (Component 1, x, y, instance 1). V/instantiate 2D Component using Add interface, where Component1 is referenced 2D Component, x is location x coordinate of instantiated 2D Component, y is location y coordinate of instantiated 2D Component, instance1 is instantiated 2D Component
And S7, writing the information acquired in the step S4 into the 2D component by using CAA language.
In this embodiment, the 2D component write information may be the following key codes:
pDftText- > SetString (iModifyValue); and/or setting text content in the 2D part by using an interface SetString, wherein pDftText is a text object in the 2D part, and iModifyValue is modified text content.
Catidwrproperties _ var pDftText2= pDftText; // convert text object to CATIDWTextProperties _ var object
pDftText2- > Refresh (). v/Refresh refreshing of text content in 2D Components Using interface Refresh
And S8, the frame Drawing device finally automatically splices each 2D part in engineering Drawing nodes (Drawing) and arranges all frames, as shown in FIG. 12.
And S9, opening the picture frame output device. The drawing of the drawing frame and the output of the development toolkit are configured in the CATIA local environment, namely, the drawing frame output device can be opened in an engineering drawing toolbar, and the interface of the drawing frame output device is shown in FIG. 11.
In this embodiment, the frame output device code is implemented based on the continuous and repeated use of the catprinermanager class (printer management), the catprinaterameters class (printing parameters), the CATPrinterDevice class (printing device), the CATPrintForm class (printing format), and the like.
S10, inputting a printing page number and a printing attribute by a user, wherein in the embodiment, the printing attribute comprises: printer, paper size, rotation angle, and print color mode (black-and-white print/color print).
In the present embodiment, the print setting CAA program code is as follows:
printer list
CATPLERTER printer = CATPLERTER Manager: getPrinerFromIndex (i); getPrinerFromIndex get Printer Using interface CATPrinerManager:: getPrinerFromIndex
Cattufting printinggetdescription = printer. Acquisition of Printer name from Printer Using interface GetDescription
Defining a print zone
double PrintArea [4]; // define printing Range variable PrintArea
spISheet- > SetPrintArea (PrintArea); // set the Current Chart (SpISheet) print area using the interface SetPrinTarea
Rotation angle
if (str _ Rotation = = "0") parameters setrootation (CATPRINTCCW _ 0); if the interface rotation angle is 0, the printer rotation angle attribute (Parameters) is set to "CATPRINTCCW _0" using interface SetReotion "
else if (str _ Rotation = = "90") parameters settermination (CATPRINTCCW _ 90); if the interface rotation angle is 90, the printer rotation angle attribute (Parameters) is set to "CATPRINTCCW _90" using the interface SetRetation "
else if (str _ Rotation = = = "180") parameters setrootation (CATPRINTCCW _ 180); if the interface rotation angle is 180, the printer rotation angle attribute (Parameters) is set to "CATPRINTCCW _180" using the interface SetRetation "
else if (str _ Rotation = = = "270") parameters setrootation (CATPRINTCCW _ 270); if the interface rotation angle is 270, the printer rotation angle attribute (Parameters) is set to "CATPRINTCCW _270" using the interface SetRetation "
Print color mode
if(_Panel_PrintMain1->_RadioButton_Mono->GetState()==CATDlgCheck)
Parameters. Setcolormode (catrindmo); if black and white printing mode is selected in the interface, the printer color mode attribute (Parameters) is set to "CATRPRINTMONO" using the interface SetColorMode "
else
Parameters. Setcolormode (catrinttrgb). If color print mode is selected in the interface, the interface SetColorMode is used to set the printer color mode attribute (Parameters) to "CATPRINTRGB"
And S11, traversing the picture frame drawn in the step S8 by the CAA secondary development program.
In this embodiment, all Components are obtained by using the get _ Components function, and all 2D parts are traversed in combination with the For statement.
And S12, acquiring the frame attribute in the traversal process of the step S11, wherein in the embodiment, a GetAlias function is used for acquiring a 2D part name, and if the component is used as a frame outer contour, page number, frame size and frame proportion information are further acquired from the frame outer contour name in combination with the illustration in FIG. 9. And acquiring the positioning coordinates of the picture frame outline picture blocks in the Sheet by using the interfaces GetX and GetY, wherein the positioning coordinates, the picture frame size, the picture frame proportion and the printing range of the acquirable picture frame are determined. For example: the outline positioning coordinates of the picture frame are CoverH and CoverV respectively, the picture frame sizes are FrameLenth and FrameWidth, the picture frame proportion is Scale, and then the printing range PrintArea is as follows:
PrintArea[0]=CoverH-FrameLength()*Scale;
PrintArea[1]=CoverV;
PrintArea[2]=FrameLength()*Scale;
PrintArea [3] = FrameWidth () + Scale, wherein:
PrintArea [0], printArea [1], printArea [2], and PrintArea [3] respectively represent a printing area bottom x coordinate, a printing area bottom y coordinate, a printing area width, and a printing area height.
And S13, completing batch printing of the frames.

Claims (10)

1. A CATIA V6-based engineering drawing batch printing method is characterized by comprising the following steps:
s1, setting a picture frame information table for a picture frame, and storing picture frame information for a user through the picture frame information table;
s2, cutting a picture frame into necessary picture blocks according to the picture frame pattern of the engineering drawing, and establishing a standard 2D component library by taking the picture blocks as a unit;
step S3, opening a picture frame drawing device: the drawing and outputting development toolkit of the picture frame is configured in the CATIA local environment, namely the picture frame drawing device can be opened in an engineering drawing toolbar of the CATIA V6;
s4, acquiring picture frame information: accessing the picture frame information table established in the step S1, and reading and recording the required picture frame information;
s5, inputting frame information by a user through a frame drawing device;
s6, according to the attribute information of the user-defined picture frame, automatically quoting required components from the standard 2D component library created in the step S2 according to the picture frame style requirement secondary development program, and splicing all the components into a picture frame required by an enterprise;
s7, writing the picture frame information acquired in the step S4 into the 2D component;
s8, automatically splicing and arranging all the 2D parts in the engineering drawing nodes by the drawing device;
step S9, opening the picture frame output device: the drawing and outputting development toolkit of the picture frame is configured in the CATIA local environment, namely the picture frame output device can be opened in an engineering drawing toolbar of the CATIA V6;
step S10, a user inputs a printing page number and a printing attribute;
s11, traversing the picture frame drawn in the S8 by a CAA secondary development program;
s12, acquiring a frame attribute in the traversing process of the S11;
and S13, completing batch printing of the frames.
2. The CATIA V6-based engineering drawing batch printing method as claimed in claim 1, wherein in step S1, the drawing frame information comprises a manufacturing unit, a design unit, a ship name, a drawing number, a drawing name, a drawing, a proofreading, an audit and a marking inspection.
3. The CATIA V6-based engineering drawing batch printing method as claimed in claim 1, wherein in step S2, the graphic blocks comprise a drawing frame outline, a drawing label bar, a title bar, a drawing number bar and a meeting label bar.
4. The CATIA V6-based engineering drawing batch printing method of claim 1, wherein in step S2, the standard 2D component library is an engineering drawing total node in the CATIA V6; classifying the engineering drawing general nodes into chart nodes with different purposes according to the pattern of the drawing blocks of the drawing frame, and storing the 2D parts; using the create 2D part command of CATIA V6, individual 2D parts required for a frame are created in the corresponding chart node, and a local coordinate system position is defined.
5. The method as claimed in claim 1, wherein the frame drawing means code is implemented based on repeated use of CATIDftSheet class, CATIDftView class, catidwtextproperties class, catiadarwingcomponent class and cattdftdrawingplmservices class in step S3.
6. The CATIA V6-based engineering drawing batch printing method of claim 1, wherein in the step S4, the drawing frame information table is an EXCEL table, and the language for accessing the EXCEL table uses a C + + secondary interface provided by Microsoft.
7. The CATIA V6-based engineering drawing batch printing method of claim 1, wherein in step S5, the drawing frame information comprises: frame size, frame proportion, frame number of columns, frame number of rows, line spacing, and row spacing.
8. The method as claimed in claim 1, wherein the frame output device code implements the basis for continuously and repeatedly using the catipintermanager class, the catprinaterameters class, the CATPrinterDevice class, and the CATPrintForm class in step S9.
9. The method as claimed in claim 1, wherein in step S12, the GetAlias function is used to obtain a 2D part name, and if the component is a frame outline, page, frame size and frame proportion information are further obtained from the frame outline name, wherein interfaces GetX and GetY are used to obtain positioning coordinates of a frame outline block in Sheet, and from the positioning coordinates, the frame size and the frame proportion and the available printing range of the frame, the frame outline positioning coordinates are respectively CoverH and CoverV, the frame size is FrameLenth and FrameWidth, and the frame proportion is Scale, the printing range PrintArea is:
PrintArea[0]=CoverH-FrameLength()*Scale;
PrintArea[1]=CoverV;
PrintArea[2]=FrameLength()*Scale;
PrintArea [3] = FrameWidth () Scale, wherein:
PrintArea [0], printArea [1], printArea [2], and PrintArea [3] respectively represent a printing area bottom x coordinate, a printing area bottom y coordinate, a printing area width, and a printing area height.
10. The CATIA V6-based engineering drawing batch printing method as claimed in claim 1, wherein in the step S7, writing the picture frame information into the 2D part comprises the following steps:
setting text content in the 2D part by using an interface SetString to obtain a text object pDftText in the 2D part;
converting the text object pDftText in the 2D component into a CATIDWTextProperties _ var object pDftText2;
refreshing the text content in the 2D component is realized by refreshing the CATIDowTextProperties _ var object pDftText2 by using an interface Refresh.
CN202211315155.5A 2022-10-26 2022-10-26 Engineering drawing batch printing method based on CATIA V6 Pending CN115629723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211315155.5A CN115629723A (en) 2022-10-26 2022-10-26 Engineering drawing batch printing method based on CATIA V6

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211315155.5A CN115629723A (en) 2022-10-26 2022-10-26 Engineering drawing batch printing method based on CATIA V6

Publications (1)

Publication Number Publication Date
CN115629723A true CN115629723A (en) 2023-01-20

Family

ID=84907506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211315155.5A Pending CN115629723A (en) 2022-10-26 2022-10-26 Engineering drawing batch printing method based on CATIA V6

Country Status (1)

Country Link
CN (1) CN115629723A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116842915A (en) * 2023-07-04 2023-10-03 中国电建集团西北勘测设计研究院有限公司 CATIAV 6-based batch labeling method for hydraulic and hydroelectric engineering drawings

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116842915A (en) * 2023-07-04 2023-10-03 中国电建集团西北勘测设计研究院有限公司 CATIAV 6-based batch labeling method for hydraulic and hydroelectric engineering drawings
CN116842915B (en) * 2023-07-04 2024-05-10 中国电建集团西北勘测设计研究院有限公司 Water conservancy and hydropower engineering drawing batch labeling method based on CATIA V6

Similar Documents

Publication Publication Date Title
US10121286B2 (en) CAD synchronization system and method
Groover et al. CAD/CAM: computer-aided design and manufacturing
US3930237A (en) Method for automating the production of engineering documentation utilizing an integrated digital data base representation of the documentation
CN111475163A (en) Method, device and equipment for generating code file of view template and storage medium
US20020051208A1 (en) Method for image layout using energy minimization
CN102799720B (en) Computer-aided design (CAD) graph and image mixed editing system
CN110543303B (en) Visual service platform
CN105446744A (en) Internet based display material system and display material making method
US5548698A (en) Rule based parametric design apparatus and method
CN113051885B (en) AutoCAD-based design drawing rapid typesetting method
CN115629723A (en) Engineering drawing batch printing method based on CATIA V6
CN114781344A (en) Method for rendering workflow electronic form by adopting reader for safe analysis and reader
CN108133084B (en) Data quality inspection method, device, controller and system
CN111859053A (en) Data definition method of visual chart and chart library realized by data definition method
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN116842915B (en) Water conservancy and hydropower engineering drawing batch labeling method based on CATIA V6
US7711142B2 (en) Method and system for composing a digital signature graphic appearance and specifying a document display location thereof
KR102649627B1 (en) An automatic image placement and execution method using the DTP program, an adobe indesign
CN105373519B (en) A kind of editing device and method of Technical symbol
Khoroshko The Research of the Possibilities and Application of the AutoCAD Software Package for Creating Electronic Versions of Textbooks for" Engineering and Computer Graphics" Course
JP6946482B2 (en) 3D data management equipment, systems, 3D data management methods, control programs and computer-readable recording media
Planchard et al. Drawing and Detailing With Solidworks 2010
Calder Building user interfaces with lightweight objects
Brown Computer-Aided Technical Publications
CN116795791A (en) Visualization method, device, equipment and medium for process and procedure model files

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