Instance Name and Part Number
Instance Name and Part Number
(OP)
Hello,
I am new in this forum and beginner in CATIA too.
My question is because I don´t know why do we have to rename Instance Number and Part Number always with the same name.
Could somebody explain me the reason please?
Thanks for your help in advance
Toni Pérez
I am new in this forum and beginner in CATIA too.
My question is because I don´t know why do we have to rename Instance Number and Part Number always with the same name.
Could somebody explain me the reason please?
Thanks for your help in advance
Toni Pérez





RE: Instance Name and Part Number
Instance Name=Part Number is not a requirement of CATIA.
Good Practice is to have Instance Name=Part Number.<Serial Number>
The .<Serial Number> part is required in order to differentiate two instances of the same product.
Some CATIA Applications, like Structure Design, do that due to the fact that each new PartProduct created by this workbench is autonamed iaw a predefined naming schema.
I hope it helps.
-GEL
RE: Instance Name and Part Number
RE: Instance Name and Part Number
RE: Instance Name and Part Number
And there are few others reasons but from my point of view this is the most important.
Regards
Fernando
RE: Instance Name and Part Number
Certified SolidWorks Professional
RE: Instance Name and Part Number
CODE
Sub CATMain()
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
MsgBox "Select Part, Product or Component"
ReDim InputObjectType(0) : InputObjectType(0)="Product"
Status=Selection.SelectElement2(InputObjectType,"Select Part, Product or Component",true)
if (Status = "Cancel") then Exit Sub
msgbox selection.item(1).value.name
End Sub
Regards
Fernando
RE: Instance Name and Part Number
Can you give me an example about how I can compile the script?
Thank you !
RE: Instance Name and Part Number
Copy-Paste the code as it is in a text editor (NOTEPAD for example), save it, change the extension from txt to CATScript, run it from Tools-Macro...
Regards
Fernando
RE: Instance Name and Part Number
RE: Instance Name and Part Number
RE: Instance Name and Part Number
I only can say that after modify instance Name and Part Number in the tree( window properties ) the part name didn´t change automatically . See my screenshot and you will understand what I am talking about.
Thanks Azrael for the tip
Kind Regards
Toni
RE: Instance Name and Part Number
RE: Instance Name and Part Number
The requirement in Catia is that the instance name is always unique within a product. The requirement from your customer might be more specific. I have one customer that specifies PartNumber.<Serial Number>, and another customer that specifies the Instance Name should be DescriptiveName.<Serial Number>
If this works right, here you can download a catvba macro that I have written a while back, to automate resetting the instance name to the format PartNumber.<Serial Number> It is a recursive function, to work through all levels of a product structure. The intent is to just use this routine once, at the end of a project, before delivering final data to our customer.
http://fil
(Note:There have been a few of these sort of macros floating around, but I didn't find one that worked on all the levels of the whole tree, so I refined it all into my own)
Cheers,
Mark
RE: Instance Name and Part Number
Let's assume that we have a project where 'Product Traceability' is one of the customer requirements. This requirement is very common in military, nuclear, etc projects. For each single piece of the product, the manufacturer shall keep its trace during production of it.
For such a project, the QC Reports shall make reference not only to 'Part Number' but also to 'Instance Name', otherwise the instances of a Product cannot been differentiated. The templates of QC Reports are prepared during 'Detailed Design Phase' and are completed during production of the product.
Furthermore, the Production Drawings and their Bill of Material shall make reference not only to 'Part Number' but also to 'Instance Name' for the same reason. If not, then the QC Records cannot been completed properly during production.
This is just one of many cases where the product's property 'Instance Name' is very usefull, if not necessary.
-GEL
RE: Instance Name and Part Number
a very big macro you have to arrange in fact of your project
RE: Instance Name and Part Number
That's a fair point, and a case I haven't encountered thus far-thanks! It is though, a reinforcement to the original question about why? And the answer is to understand your organization's or customer's requirements.
Cheers
-Mark