• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

file name, number part, "new from"

  • Thread starter Thread starter marcofa
  • Start date Start date

marcofa

Guest
new by:
the total or partial reuse, after modification, of part and product is very useful
this command cannot be executed by pointing to an open document: close the document and try again.

if you point a part opens a window where a new part number is proposed (or instance) : old part number_1 (can be changed)

photos1

Confirming ok is created and displayed a new part that will have the new part number and file name as set in the mask above.
save by name will save by default with the new filename = part number.
you get to all effects a new part.

if you point to a product you will open the following window

photos

moves under what you want to duplicate with the command
in the first colon the instance or number part that is not modified and is mistakenly called file name instead of number part
in the last column the old filename_1 with which the file will be saved, which can be changed highlighting it and “rename document”. only the last column will be modified.
How do you edit the first column?

the result is the following in order from above
product1_1.catproduct = file name with extension although not yet saved
product1 = part number or instance equal to source
part2 = part number (equal to the source) that will be saved as part2_1.catpart






not saved after rescue

photo3 photos4


this is an inconsistency of behavior because a part treated alone will have number equal and new files to pleasure (the original part can be used again without conflict), instead a part treated inside and together with a product will have number old part and file name new, (the original part will no longer be used and if present in other product will generate a conflict and will be asked to rename it:

photos6

rename part2 (part2_1.catpart) in part2_1(part2_1.catpart)


for this command to be usable at product level, it should be that in the mask opened by “new from”, all the objects present (product), or moved from the upper window, in the lower one were automatically renamed with the file name = new part number.
This means that all objects that must be modified will be moved below and renamed while above will remain those not to be changed, and all, including sources will remain usable without conflicts in the same model.

airbus ap2255 rules
http://cadm.zut.edu.pl/pub/catia/airbus - 3d modelling rules for catia v5.pdf


2.1 designation and numbering of files
_ consult ap2610.
caution: in catia v5, when a new xxx.catpart file is saved in a directory, the part
number field of the part properties (visualised in the tree) is not systematically filled in
with the xxx character string.correspondence is absolutely necessary between the filename (l53s12345200.catpart) and the part reference (part number = l53s12345200).
on creation of a new part (file + new + part or command new part in assembly design
workshop), immediately fill the part number field in the part name window. then save
the file (save as): the filename is then initialised with the part reference.
remarks:
the part name window is systematically proposed when option ‘tools + options +
infrastructure + product structure + part number + manual input’ is activated. this
option should be locked by the catia administrator.
to modify the part number, modify the properties of the part (contextual menu).
if properties are modified after 'save as', the part reference must be entered twice

marco
 

Attachments

  • Foto1.webp
    Foto1.webp
    5.3 KB · Views: 78
  • Foto2.webp
    Foto2.webp
    22.7 KB · Views: 71
  • Foto3.webp
    Foto3.webp
    26.6 KB · Views: 65
  • Foto4.webp
    Foto4.webp
    32.6 KB · Views: 62
  • Foto6.webp
    Foto6.webp
    33.8 KB · Views: 37
su gtwiki ho trovato lo script che fà al caso mio, e cioè rinomina i "numeri parte" come il "nome file"
nel caso di product creato con il comando "nuovo da" i numeri parte non vengono cambiati, ma solo i nomi file.
eseguendo questo script dopo il comando nuovo da, si otterranno nuovi numeri parte coincidenti con i nuovi nomi file.
questo script è un catvba.
qualcuno potrebbe dirmi per favore come si lancia?
marco

partnumber renamer by file name

often, users will name the partnumber and file name differently.

to clear up some confusion,
the partnumber is the parameter that controls the catpart/catproduct name. it resides in the file and exists at the top of the digital project tree structure.
the file name is the title of the file, and it usually ends with ".catpart" or ".catproduct. it is only accessible from windows explorer or other directory structure interfaces. you can view a read-only version of this name in digital project under file > document properties > document.

in the process of developing an assembly, some users would like to coordinate differing the names. this script changes the partnumber to match the file name.

script download
click here to download the script.
http://www.gtwiki.org/mwiki/index.ph...r_by_file_name

important things to note
the changes are permanent. if you select a directory and choose the option to recursive cycle through all sub-directories, it will rename everything. there is no cancel or "stop script.
catproducts that hold onto changed catparts will lose the links. it's recommended that users only utilize this script for catpart directories, but the option is open.
when converting catproducts, you'll probably be prompted with the desk management dialog box. ignore this until the script has finished--it will not impact the performance of the code and you can cancel them all at the end of the procedure.
the equals sign (=) cannot be in the file name of a catproduct. you will be able to save the name, but the partnumber will not accept that string of characters. the script will not prompt you with an error and catparts allow equals signs in the file name and partnumber.
 
the macro mentioned above is coming from hairitan.

Now another problem.

the command "new from" has another drawback in my opinion huge.
to run the command the file should not be loaded in the session.
so if I want to do a new from a part that is in the model on which I am working a mistake imposes me to close everything in order to run the command, and then reopen the model. this is aberrant especially if the model is heavy.
Is there a solution? ?
Mar
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top