CN110516381B - CATIA element name rapid changing method and device - Google Patents

CATIA element name rapid changing method and device Download PDF

Info

Publication number
CN110516381B
CN110516381B CN201910814723.8A CN201910814723A CN110516381B CN 110516381 B CN110516381 B CN 110516381B CN 201910814723 A CN201910814723 A CN 201910814723A CN 110516381 B CN110516381 B CN 110516381B
Authority
CN
China
Prior art keywords
module
renaming
name
input
acquiring
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
CN201910814723.8A
Other languages
Chinese (zh)
Other versions
CN110516381A (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.)
Wuxi Jinshang Automotive Technology Development Co ltd
Original Assignee
Wuxi Jinshang Automotive Technology Development 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 Wuxi Jinshang Automotive Technology Development Co ltd filed Critical Wuxi Jinshang Automotive Technology Development Co ltd
Priority to CN201910814723.8A priority Critical patent/CN110516381B/en
Publication of CN110516381A publication Critical patent/CN110516381A/en
Application granted granted Critical
Publication of CN110516381B publication Critical patent/CN110516381B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention belongs to the field of industrial design software auxiliary processing, and particularly relates to a method and a device for quickly changing element names in CATIA software. The method and the device can quickly change the definition of the element names in the CATIA software, are used for changing products and the element names in the CATIA software independently or in batches, realize the purpose of quickly changing the serial numbers and the example names of the products in the assembly of the CATIA products and realizing the change of the element names in the design of parts. The method and the device are based on a macro command interface in CATIA software, can reduce repetitive work in the renaming operation, and are very convenient and practical auxiliary tools.

Description

CATIA element name rapid changing method and device
Technical Field
The invention belongs to the field of industrial design software auxiliary processing, and particularly relates to a method and a device for quickly changing element names in CATIA software.
Background
CATIA is a product development flagship solution by dasotu, france. As an important component of PLM collaborative solutions, it can help manufacturers design their future products through modeling and support all industrial design flows from pre-project stage, detailed design, analysis, simulation, assembly to maintenance.
In the current product design, new elements generated in the CATIA operation process can automatically generate names, if the change needs to be changed in the attribute, if a plurality of elements need to be subjected to name modification at the same time, repeated operation is needed according to the operation for many times, and the operation is very complicated.
Disclosure of Invention
The invention aims to solve the problems of complexity and inconvenience in the name-changing operation of the existing CATIA software, simplify the operation and improve the efficiency.
As a first aspect of the present invention, a method for quickly changing a CATIA element name is provided, including:
s1, acquiring an active window of a CATIA;
s2, acquiring the number of elements in the CATIA active window selected in the previous step;
s3, judging whether the number of the acquired elements is zero, if so, exiting to end; if the number is single, the step S4 is carried out to rename the single element; if the number of the elements is more than one, the step S5 is carried out to rename the elements;
s4, firstly, carrying out error processing, then selecting a renaming method by acquiring whether an error occurs, renaming a single element, and exiting after completion;
s5, acquiring an element object of the selected window, and performing error processing;
s6, inputting a name basic part;
s7, judging whether the content input in the step S6 is blank, if so, exiting to end, and if not, turning to the step S8;
s8, inputting a sequence number for starting ascending;
s9, judging whether the content input in the step S8 is blank, if so, exiting to end, and if not, turning to the step S10;
s10, judging whether the error processing result is 0 or not, if so, turning to the step S11 to obtain a part design module renaming method; otherwise, turning to the step S12, and acquiring a renaming method of the assembly design module;
s11, acquiring an element object of the selected window; changing the names of a plurality of part design simulations by a method of acquiring the rename of the part design module, and exiting to finish after completion;
s12, acquiring an element object of the selected window; and changing the names of a plurality of assembly design simulations by acquiring the method for renaming the assembly design module, and quitting to finish the operation after the completion.
Preferably, the S4 step includes:
s41, acquiring the element object of the selected window, and then carrying out error processing.
S42, if the error number is not equal to 0; turning to the step S43 to obtain the part design module renaming method; otherwise, turning to the method for acquiring the rename of the assembly design module in the step S44.
S43, inputting a set name, and if the input is null, exiting to end; otherwise, naming the element object by the input set name;
s44, inputting a part number, and if the input is null, exiting to end; otherwise, assembling the serial number according to the input part serial number name; inputting a term name, and if the input is null, exiting to end; otherwise, temporarily storing the term name; the element object is named by the term name + part number, with the part number and the term name.
Preferably, the S11 step includes:
s111, acquiring the element object of the selected window.
S112, naming the parts in a mode of name base + serial number, wherein the name base is input initially, and the serial number is obtained by circular processing on the basis of the input initial serial number; in the cyclic processing, the processing of adding 1 is carried out for ten digits less than 10 and adding 1 for each digit, and the processing of adding 1 is carried out for more than 10; namely, the sum of the sequence number of the current element and the initial sequence number minus 1 is compared with 10, and then different processing modes are executed.
Preferably, the step S12 includes:
s121, acquiring the element object of the selected window.
S122, naming the assembly in a mode of name base + sequence number, wherein the name base is input initially, and the sequence number is obtained by circular processing on the basis of the input initial sequence number; in the cyclic processing, the decimal place is subjected to 0 complementing and 1 adding processing respectively when the number is less than 10, and only 1 adding processing is carried out respectively when the number is more than 10; namely, the sum of the sequence number of the current element and the initial sequence number minus 1 is compared with 10, and then different processing modes are executed.
As a second aspect of the present invention, there is provided a CATIA element name quick change apparatus, including:
the window acquisition module is used for acquiring an active window of the CATIA;
the element number obtaining module is used for obtaining the number of elements in the CATIA active window selected by the previous module;
the element non-zero judging module is used for judging whether the number of the acquired elements is zero or not, and if so, exiting to finish; if the number of the elements is single, a first renaming module is switched to rename the single element; if the number of the elements is multiple, the element object acquisition module is switched to rename the multiple elements;
the first renaming module is used for firstly carrying out error processing, then selecting a renaming method by acquiring whether an error occurs, renaming a single element and exiting after the renaming is finished;
the first element object acquisition module is used for acquiring the element object of the selected window and carrying out error processing;
a first name input module for receiving an input name base portion;
the first judging module is used for judging whether the content input in the step S6 is blank, if so, exiting to finish, and if not, turning to the second name input module;
the second name input module is used for receiving and inputting the serial number of the ascending sequence;
a second judging module, configured to judge whether the content input in step S8 is blank, if yes, quit to end, and if not, go to step S10;
the error selection judging module is used for judging whether the error processing result is 0 or not, if so, the second renaming module is switched to obtain the part design module renaming method; otherwise, switching to a third renaming module to obtain the renaming method of the assembly design module;
the second renaming module is used for acquiring the element object of the selected window; changing the names of a plurality of part design simulations by a method of acquiring the rename of the part design module, and exiting to finish after completion;
the third renaming module is used for acquiring the element object of the selected window; and changing the names of a plurality of assembly design simulations by obtaining the method of renaming the assembly design module, and exiting to finish after the completion.
Preferably, the first renaming module includes:
the object acquisition and error processing module is used for acquiring the element object of the selected window and then carrying out error processing;
the error judging module is used for judging the number of errors and selecting a corresponding renaming module, and if the number of errors is not equal to 0; transferring the first part design renaming module to obtain a part design module renaming method; otherwise, turning to the first assembly design renaming module to obtain an assembly design module renaming method;
the first part design renaming module is used for renaming a single part design module, inputting a set name, and exiting to finish if the input is null; otherwise, naming the element object by the input set name;
the first assembly design renaming module is used for renaming a single assembly design module, inputting part numbers, and exiting to finish if the input is null; otherwise, assembling the serial number according to the input part serial number name; inputting a term name, and if the input is null, exiting to end; otherwise, temporarily storing the term name; the element object is named by the term name + part number, with the part number and the term name.
Preferably, the second renaming module includes:
the second element object acquisition module is used for acquiring the element object of the selected window;
the second part design renaming module is used for renaming a single part design module and naming parts in a mode of name basis + sequence number, wherein the name basis is initially input, and the sequence number is obtained by cyclic processing on the basis of the input initial sequence number; in the loop processing, the processing of adding 1 to less than 10 is performed by ten-bit 0-complementing, and the processing of adding 1 to 10 or more is performed.
Preferably, the third renaming module includes:
the third element object acquisition module is used for acquiring the element object of the selected window;
the second assembly design renaming module is used for renaming a single assembly design module and naming the assembly in a mode of name base and sequence number, wherein the name base is input initially, and the sequence number is obtained by circularly processing on the basis of the input initial sequence number; in the above loop processing, the processing is performed by adding 1 to less than 10 bits by adding 0, and the processing is performed by adding 1 to more than 10 bits.
Most preferably, the error processing uses a value.
The method and the device can quickly change the definition of the element names in the CATIA software, are used for changing products and the element names in the CATIA software independently or in batches, realize the purpose of quickly changing the serial numbers and the example names of the products in the assembly of the CATIA products and realizing the change of the element names in the design of parts. The method and the device are based on a macro command interface in CATIA software, can reduce repetitive work in renaming operation, improve efficiency and are very convenient and practical auxiliary tools.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention.
Detailed Description
In order that those skilled in the art will better understand the invention and thus more clearly define the scope of the invention as claimed, it is described in detail below with respect to certain specific embodiments thereof. It should be noted that the following description is only a few embodiments of the present invention, and the specific direct description of the related structures is only for the convenience of understanding the present invention, and the specific features do not, of course, directly limit the implementation scope of the present invention. Such alterations and modifications as are made obvious by those skilled in the art and guided by the teachings herein are intended to be within the scope of the invention as claimed.
Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously, and the order of the operations can be re-arranged. A process may be terminated when its operations are completed, but could have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
A CATIA element name rapid change method, carry on the configuration of the operating environment at first, guarantee CATIA software is in the running state, in order to finish the environment configuration that this method needs; the method is implemented according to the following steps:
s1, obtaining an active window of CATIA software.
And S2, acquiring the number of elements in the CATIA active window selected in the step.
S3, judging whether the number of the acquired elements is zero or not, and if so, exiting; if the number is single (namely < 2), the next step (S4) is carried out, and the name of the single element is renamed; if there are a plurality of elements (i.e., 2 or more), the process proceeds to the next step (S5) to rename the plurality of elements.
S4, firstly, carrying out error processing, then selecting a renaming method by acquiring whether an error occurs, renaming a single element, and exiting after completion; the renaming method comprises two renaming methods of part design module renaming and assembly design module renaming, and the corresponding renaming method is selected according to whether the element is a part or an assembly. Specifically, errors are often processed in programming, in the method, a value. In practical applications, the method can be implemented by Name1= Value1.Partnumber (Name 1, value1 are defined parameters).
S5, acquiring an element object of the selected window, and performing error processing; the error handling method of value name is still adopted at this time, namely, the error handling method is realized by panduun = iValue.
And S6, inputting a name basic part.
S7, judging whether the input name basic part is blank or not, and if so, exiting to end; if not, the next step is carried out.
And S8, inputting a starting sequence number.
S9, judging whether the input starting sequence number is blank or not, and if so, exiting to end; if not, the next step is carried out.
S10, judging whether the error processing result is 0 or not, if so, turning to the step S11 to obtain the part design module renaming method; otherwise, the method for acquiring the rename of the assembly design module in the step S122 is switched.
S11, acquiring an element object of the selected window; and changing the names of the plurality of part design simulations by obtaining the name changing method of the part design module, and exiting to finish after the names are changed.
S12, acquiring an element object of the selected window; and changing the names of a plurality of assembly design simulations by obtaining the method of renaming the assembly design module, and exiting to finish after the completion.
Preferably, the method for selecting a rename by acquiring whether an error occurs in the step S4 specifically includes:
s41, acquiring the element object of the selected window, and then performing error processing.
S42, if the error number is not equal to 0; turning to the method for acquiring the part design module renaming in the next step (S43); otherwise, the next step (S44) is carried out to obtain the name changing method of the assembly design module.
S43, inputting a set name, and if the input is null, exiting to end; otherwise, naming the element object (namely the part design module) by the input collection name;
s44, inputting a part number, and if the input is null, exiting to end; otherwise, assembling the serial number according to the input part serial number name; inputting a term name, and if the input is null, exiting to end; otherwise, temporarily storing the term name; the element object (i.e., the assembly design module) is named by the term name + part number with the part number and term name temporarily stored. Optimally, the naming can be achieved by the following function: value1.Parent. Referenceproduct. Products. Item (value 1. Name). Name = Mingzi2; wherein, mingzi2 is the input term name.
Preferably, the method for renaming a part design module in step S11 specifically includes:
s111, acquiring the element object of the selected window.
S112, naming the parts in a mode of name base + serial number, wherein the name base is input initially, and the serial number is obtained by circular processing on the basis of the input initial serial number; in the cyclic processing, the processing of adding 1 is carried out for ten digits less than 10 and adding 1 for each digit, and the processing of adding 1 is carried out for more than 10; namely, the sum of the sequence number of the current element and the initial sequence number minus 1 is compared with 10, and then different processing modes are executed. Optimally, the naming can be achieved by the following function:
Figure BDA0002186056580000061
wherein MingCheng1 is the inputted 'name basis', mingCheng2 is the inputted 'initial serial number', I is the serial number of the current element, and I is more than 1 and less than or equal to the number of the elements.
Preferably, the renaming method for the assembly design module in the step S12 specifically includes:
s121, acquiring the element object of the selected window.
S122, naming the assembly in a mode of name base + sequence number, wherein the name base is input initially, and the sequence number is obtained by circular processing on the basis of the input initial sequence number; in the cyclic processing, the decimal place is subjected to 0 complementing and 1 adding processing respectively when the number is less than 10, and only 1 adding processing is carried out respectively when the number is more than 10; namely, the sum of the sequence number of the current element and the initial sequence number minus 1 is compared with 10, and then different processing modes are executed. Optimally, the naming can be achieved by the following function:
Figure BDA0002186056580000071
wherein, mingCheng1 is the inputted 'name basis', mingCheng2 is the inputted 'initial sequence number', I is the sequence number of the current element, which is defined in turn after acquisition, and the value range of I is: i is more than 1 and less than or equal to the number of elements.
A CATIA element name quick change device comprises:
the window acquisition module is used for acquiring an active window of the CATIA;
the element quantity acquisition module is used for acquiring the quantity of the elements in the CATIA active window selected by the previous module;
the element non-zero judging module is used for judging whether the number of the acquired elements is zero or not, and if so, exiting to finish; if the number of the elements is single, a first renaming module is switched to rename the single element; if the number of the elements is multiple, the element object acquisition module is switched to rename the multiple elements;
the first renaming module is used for firstly carrying out error processing, then selecting a renaming method by acquiring whether an error occurs, renaming a single element and quitting after completing the renaming;
the first element object acquisition module is used for acquiring the element object of the selected window and carrying out error processing;
a first name input module for receiving an input name base portion;
the first judging module is used for judging whether the content input in the step S6 is blank, if so, exiting to finish, and if not, turning to the second name input module;
the second name input module is used for receiving and inputting the serial number of the ascending sequence;
a second judging module, configured to judge whether the content input in step S8 is blank, if yes, quit to end, and if not, go to step S10;
the error selection judging module is used for judging whether the error processing result is 0 or not, if so, the second renaming module is switched to obtain the renaming method of the part design module; otherwise, switching to a third renaming module to obtain the renaming method of the assembly design module;
the second renaming module is used for acquiring the element object of the selected window; changing the names of a plurality of part design simulations by a method of acquiring the rename of the part design module, and exiting to finish after completion;
the third renaming module is used for acquiring the element object of the selected window; and changing the names of a plurality of assembly design simulations by obtaining the method of renaming the assembly design module, and exiting to finish after the completion.
Preferably, the first renaming module includes:
the object acquisition and error processing module is used for acquiring the element object of the selected window and then carrying out error processing;
the error judging module is used for judging the number of errors and selecting a corresponding renaming module, and if the number of errors is not equal to 0; transferring the first part design renaming module to obtain a part design module renaming method; otherwise, switching to the first assembly design renaming module to obtain the renaming method of the assembly design module;
the first part design renaming module is used for renaming a single part design module, inputting a set name, and if the input is null, exiting to finish; otherwise, naming the element object by the input set name;
the first assembly design renaming module is used for renaming a single assembly design module, inputting part numbers, and exiting to finish if the input is null; otherwise, assembling the serial number according to the input part serial number name; inputting a term name, and if the input is null, exiting to end; otherwise, temporarily storing the term name; the element object is named by the term name + part number, with part number and term name.
Preferably, the second renaming module includes:
the second element object acquisition module is used for acquiring the element object of the selected window;
the second part design renaming module is used for renaming a single part design module and naming parts in a mode of name basis + serial number, wherein the name basis is initially input, and the serial number is obtained by circularly processing on the basis of the input initial serial number; in the above loop processing, the processing is performed by adding 1 to less than 10 bits by adding 0, and the processing is performed by adding 1 to more than 10 bits.
Preferably, the third renaming module includes:
the third element object acquisition module is used for acquiring the element object of the selected window;
the second assembly design renaming module is used for renaming a single assembly design module and naming the assembly in a mode of name basis + sequence number, wherein the name basis is input initially, and the sequence number is obtained by cyclic processing on the basis of the input initial sequence number; in the loop processing, the processing of adding 1 to less than 10 is performed by ten-bit 0-complementing, and the processing of adding 1 to 10 or more is performed.
Preferably, the error processing adopts a value.part name method to distinguish parts from assemblies by judging whether errors occur, and then rename the parts and the assemblies respectively.
The method and the device can quickly change the definition of the element name in the CATIA software, can independently or in batch change the product and the element name in the CATIA software, realize the quick change of the product number and the example name in the assembly of the product in the CATIA, and realize the purpose of changing the element name in the design of parts. The method and the device are based on a macro command interface in CATIA software, can reduce repetitive work in the renaming operation, and are very convenient and practical auxiliary tools.

Claims (10)

1. A CATIA element name rapid changing method is characterized by comprising the following steps:
s1, acquiring an active window of a CATIA;
s2, acquiring the number of elements in the CATIA active window selected in the previous step;
s3, judging whether the number of the acquired elements is zero, if so, exiting to end; if the number is single, the step S4 is carried out to rename the single element; if the number of the elements is more than one, the step S5 is carried out to rename the elements;
s4, firstly carrying out error processing, then selecting a renaming method by acquiring whether an error occurs, renaming the single element, and exiting after the renaming is finished;
s5, acquiring the element object of the selected window, and performing error processing;
s6, inputting a name basic part;
s7, judging whether the content input in the step S6 is blank, if so, exiting to end, and if not, turning to the step S8;
s8, inputting a sequence number for starting ascending;
s9, judging whether the content input in the step S8 is blank, if so, exiting to end, and if not, turning to the step S10;
s10, judging whether the error processing result is 0, if so, turning to the step S11 to obtain a part design module renaming method; otherwise, turning to the step S12, and acquiring a renaming method of the assembly design module;
s11, acquiring an element object of the selected window; changing the names of a plurality of part design simulations by obtaining the method of renaming the part design modules, and exiting to finish after completion;
s12, acquiring an element object of the selected window; and changing the names of a plurality of assembly design simulations by acquiring the method for renaming the assembly design module, and quitting to finish the operation after the completion.
2. The method according to claim 1, wherein the step S4 comprises:
s41, acquiring an element object of the selected window, and then carrying out error processing;
s42, if the error quantity is not equal to 0; s43, obtaining a part design module renaming method; otherwise, turning to the step S44, and acquiring the renaming method of the assembly design module;
s43, inputting a set name, and if the input is null, exiting to end; otherwise, naming the element object by the input set name;
s44, inputting a part number, and if the input is null, exiting to end; otherwise, assembling the serial number according to the input part serial number name; inputting a term name, and if the input is null, exiting to end; otherwise, temporarily storing the term name; and naming the element object by the way of the term name plus the part number according to the temporarily stored part number and the term name.
3. The method according to claim 1, wherein the step S11 comprises: s111, acquiring an element object of the selected window; s112, naming the parts in a mode of name base + serial number, wherein the name base is input initially, and the serial number is obtained by circular processing on the basis of the input initial serial number; in the loop processing, the processing of adding 1 to less than 10 is performed by ten-bit 0-complementing, and the processing of adding 1 to 10 or more is performed.
4. The method according to claim 1, wherein the step S12 comprises:
s121, acquiring an element object of the selected window;
s122, naming the assembly in a mode of name base and sequence number, wherein the name base is input initially, and the sequence number is obtained by circularly processing the input initial sequence number; in the loop processing, the processing of adding 1 to less than 10 is performed by ten-bit 0-complementing, and the processing of adding 1 to 10 or more is performed.
5. The method of any one of claims 1 to 4, wherein the error processing uses value.
6. A CATIA element name rapid change device is characterized by comprising:
the window acquisition module is used for acquiring an active window of the CATIA;
the element number obtaining module is used for obtaining the number of elements in the CATIA active window selected by the previous module;
the element non-zero judging module is used for judging whether the number of the acquired elements is zero or not, and if so, exiting to finish; if the number of the elements is single, a first renaming module is switched to rename the single element; if the number of the elements is multiple, the element object acquisition module is switched to rename the multiple elements;
the first renaming module is used for firstly carrying out error processing, then selecting a renaming method by acquiring whether an error occurs, renaming a single element and quitting after completing the renaming;
the first element object acquisition module is used for acquiring the element object of the selected window and carrying out error processing;
a first name input module for receiving an input name base portion;
the first judging module is used for judging whether the content input in the step S6 is blank or not, if so, exiting to finish, and if not, turning to the second name input module;
the second name input module is used for receiving and inputting the sequence number starting from the ascending sequence;
a second judging module, configured to judge whether the content input in step S8 is blank, if yes, quit to end, and if not, go to step S10;
the error selection judging module is used for judging whether the error processing result is 0 or not, if so, the second renaming module is switched to obtain the part design module renaming method; otherwise, switching to a third renaming module to obtain the renaming method of the assembly design module;
the second name-changing module is used for acquiring the element object of the selected window; changing the names of a plurality of part design simulations by obtaining the method of renaming the part design modules, and exiting to finish after completion;
the third renaming module is used for acquiring the element object of the selected window; and changing the names of a plurality of assembly design simulations by obtaining the method of renaming the assembly design module, and exiting to finish after the completion.
7. The apparatus of claim 6, wherein the first renaming module comprises:
the object acquisition and error processing module is used for acquiring the element object of the selected window and then carrying out error processing;
the error judging module is used for judging the number of errors and selecting a corresponding renaming module, and if the number of errors is not equal to 0; transferring the first part design renaming module to obtain a part design module renaming method; otherwise, turning to the first assembly design renaming module to obtain an assembly design module renaming method;
the first part design renaming module is used for renaming a single part design module, inputting a set name, and if the input is null, exiting to finish; otherwise, naming the element object by the input set name;
the first assembly design renaming module is used for renaming a single assembly design module, inputting part numbers, and exiting to finish if the input is null; otherwise, assembling the serial number according to the input part serial number name; inputting a term name, and if the input is null, exiting to end; otherwise, temporarily storing the term name; and naming the element object by using the temporary stored part number and the term name in a mode of term name + part number.
8. The apparatus of claim 6, wherein the second renaming module comprises: the second element object acquisition module is used for acquiring the element object of the selected window; the second part design renaming module is used for renaming a single part design module and naming parts in a mode of name basis + serial number, wherein the name basis is initially input, and the serial number is obtained by circularly processing on the basis of the input initial serial number; in the above loop processing, the processing is performed by adding 1 to less than 10 bits by adding 0, and the processing is performed by adding 1 to more than 10 bits.
9. The apparatus of claim 6, wherein the third renaming module comprises: the third element object acquisition module is used for acquiring the element object of the selected window;
the second assembly design renaming module is used for renaming a single assembly design module and naming the assembly in a mode of name base and sequence number, wherein the name base is input initially, and the sequence number is obtained by circularly processing on the basis of the input initial sequence number; in the above loop processing, the processing is performed by adding 1 to less than 10 bits by adding 0, and the processing is performed by adding 1 to more than 10 bits.
10. The apparatus according to any one of claims 6 to 9, wherein the error processing uses value.
CN201910814723.8A 2019-08-30 2019-08-30 CATIA element name rapid changing method and device Active CN110516381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910814723.8A CN110516381B (en) 2019-08-30 2019-08-30 CATIA element name rapid changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910814723.8A CN110516381B (en) 2019-08-30 2019-08-30 CATIA element name rapid changing method and device

Publications (2)

Publication Number Publication Date
CN110516381A CN110516381A (en) 2019-11-29
CN110516381B true CN110516381B (en) 2023-02-17

Family

ID=68629503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910814723.8A Active CN110516381B (en) 2019-08-30 2019-08-30 CATIA element name rapid changing method and device

Country Status (1)

Country Link
CN (1) CN110516381B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013425A (en) * 2005-12-30 2007-08-08 达索系统公司 Process for displaying objects of a PLM database and apparatus implementing this process
CN103745031A (en) * 2013-12-17 2014-04-23 福建省电力勘测设计院 Electric transmission line house distribution graph generating method based on GIS mode
CN105426603A (en) * 2015-11-12 2016-03-23 重庆工业职业技术学院 Intelligent CATIA engineering drawing system
CN106021359A (en) * 2016-05-10 2016-10-12 北京数码大方科技股份有限公司 CAD file modification method and device
CN107480374A (en) * 2017-08-14 2017-12-15 中国铁道科学研究院铁道建筑研究所 A kind of bridge BIM model creation methods based on CATIA
CN110069472A (en) * 2019-03-13 2019-07-30 广州明珞汽车装备有限公司 A kind of Fast design method and system based on library

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8065126B2 (en) * 2008-07-29 2011-11-22 Mentor Graphics Corporation GUI-facilitated change management for vehicle electrical/electronic architecture design

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013425A (en) * 2005-12-30 2007-08-08 达索系统公司 Process for displaying objects of a PLM database and apparatus implementing this process
CN103745031A (en) * 2013-12-17 2014-04-23 福建省电力勘测设计院 Electric transmission line house distribution graph generating method based on GIS mode
CN105426603A (en) * 2015-11-12 2016-03-23 重庆工业职业技术学院 Intelligent CATIA engineering drawing system
CN106021359A (en) * 2016-05-10 2016-10-12 北京数码大方科技股份有限公司 CAD file modification method and device
CN107480374A (en) * 2017-08-14 2017-12-15 中国铁道科学研究院铁道建筑研究所 A kind of bridge BIM model creation methods based on CATIA
CN110069472A (en) * 2019-03-13 2019-07-30 广州明珞汽车装备有限公司 A kind of Fast design method and system based on library

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"CATIA二次开发——基于VB的重命名方法";戈家荣;《电子技术与软件工程》;20140530;全文 *

Also Published As

Publication number Publication date
CN110516381A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN102708249B (en) Method and system for product modular configuration
Miller et al. Quantization and overflow effects in digital implementations of linear dynamic controllers
CN112364024B (en) Control method and device for automatic comparison of table data in batches
CN101968784A (en) Digital format conversion method and device
CN110516381B (en) CATIA element name rapid changing method and device
CN115344905A (en) Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model
US10776313B2 (en) Converting source objects to target objects
CN109991950A (en) The balance ameliorative way of cooperation robotic asssembly production line based on genetic algorithm
CN103135975B (en) The element sequence auto arranging method of control strategy configuration and logical connection method thereof
CN111723426A (en) Building design method and system based on BIM
CN111143467A (en) Data sharing method of cloud platform for realizing distributed heterogeneous data sharing
Torres Conservation laws in optimal control
CN110533162B (en) Method and system for automatically generating operation mapping between deep learning frames
CN103870634A (en) Quick design optimization method for large structure
KR102656567B1 (en) Apparatus for enabling the conversion and utilization of various formats of neural network models and method thereof
CN115857361B (en) Optimized control method and system for beer fermentation
CN112926141B (en) Multi-objective optimization collaborative design method for military aircraft horizontal tail corner servo control system
Wang et al. Paths and cycles of hypergraphs
CN103631951A (en) Batch access function merging method and device based on metadata
CN104461569B (en) A kind of C/C++ Program Generating householder methods based on MATLAB
CN114385540A (en) Data unit conversion method and device
CN109711040B (en) Intelligent industrial design reinforcement learning algorithm based on search direction learning
US7082589B2 (en) Method of generating a schematic driven layout for a hierarchical integrated circuit design
CN105677967B (en) A method of promoting ASIC arithmetic accuracy
Zhang et al. Towards scalable spectral sparsification of directed graphs

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