Catia Product constrains numbering order......
Catia Product constrains numbering order......
(OP)
Hi,
When I add constrains into a Product, sometimes the numbering do not starts from 1 (please, see the attached picture).
How could I correct that?
CAD 2015
When I add constrains into a Product, sometimes the numbering do not starts from 1 (please, see the attached picture).
How could I correct that?
CAD 2015





RE: Catia Product constrains numbering order......
No attached picture. Anyway, that means you already put some constrains and deleted before, CATIA is keeping the counter in memory, doesn't meter if you don't see them. You will need a macro to renumber them (I don't remember if v6 knows to renumber but I believe yes, it has this functionality without any macro)
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia Product constrains numbering order......
I think that my company placed a filter.
Or my account has problem........
I did download a picture! I can't upload any image anymore!
CAD 2015
RE: Catia Product constrains numbering order......
How could I create the macro to renumber the constrains?
Can you direct the steps, please?
CAD 2015
RE: Catia Product constrains numbering order......
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia Product constrains numbering order......
CODE --> vba
Sub Main() Dim doc, prod, constr, i Set doc = CATIA.ActiveDocument Set prod = doc.Product Set constr = prod.Connections("CATIAConstraints") For i = 1 To constr.Count constr.item(i).Name = "Fix." & i Next End SubTesak
http://scripts4all.eu/txtoncurve/ - Curved text for Catia V5
RE: Catia Product constrains numbering order......
CAD 2015
RE: Catia Product constrains numbering order......
RE: Catia Product constrains numbering order......
Your script didn't work........
CAD 2015
RE: Catia Product constrains numbering order......
Tesak
http://scripts4all.eu/txtoncurve/ - Curved text for Catia V5
RE: Catia Product constrains numbering order......
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia Product constrains numbering order......
Gentleman, let me know if it works on your side.
Thanks
CAD 2015
RE: Catia Product constrains numbering order......
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia Product constrains numbering order......
Tesak
http://scripts4all.eu/txtoncurve/ - Curved text for Catia V5
RE: Catia Product constrains numbering order......
It is curious, all constraints have been converted in "Fix" one....
I used this script:
Sub CATMain()
Dim doc, prod, constr, i
Set doc = CATIA.ActiveDocument
Set prod = doc.Product
Set constr = prod.Connections("CATIAConstraints")
For i = 1 To constr.Count
constr.item(i).Name = "Fix." & i
Next
End Sub
CAD 2015
RE: Catia Product constrains numbering order......
Tesak
http://scripts4all.eu/txtoncurve/ - Curved text for Catia V5
RE: Catia Product constrains numbering order......
CAD 2015