TiagoFigueiredo
Industrial
I need a macro to create the function "New from", for principal product and for it's parts.
I found an way to do, but only for the principal product, all of it's parts remains the same, and I want to create new ones. The principal product and it's parts or products.
but in this way, only the Cilindro a gas.CATProduct has been performed the new from function. None of it's parts has been performed the new from.
So I want to pass from this:
to this:
After this, I want to rename all of its parts, and save in a new destination folder.
Tiago Figueiredo
Tooling Engineer
I found an way to do, but only for the principal product, all of it's parts remains the same, and I want to create new ones. The principal product and it's parts or products.
Code:
Sub CATMain()
Dim documents1 As Documents
Set documents1 = CATIA.Documents
Dim productDocument1 As ProductDocument
Set productDocument1 = documents1.NewFrom("C:\CATIA Library\STANDARDS\Springs\cilindro a gas\Cilindro a gas.CATProduct")
End Sub
but in this way, only the Cilindro a gas.CATProduct has been performed the new from function. None of it's parts has been performed the new from.
So I want to pass from this:
to this:
After this, I want to rename all of its parts, and save in a new destination folder.
Tiago Figueiredo
Tooling Engineer