Proportions
Aerospace
- Mar 24, 2025
- 3
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub Main()
Dim doc As ProductDocument
Set doc = CATIA.ActiveDocument
Dim rootPrd As Product
Set rootPrd = doc.Product
ClearDescription rootPrd
End Sub
Sub ClearDescription(prd As Product)
prd.DescriptionInst = ""
Dim subPrd As Product
For Each subPrd In prd.Products
ClearDescription subPrd
Next
End Sub
You can use recursion with a VBA macro to iterate through each Product in your assembly and clear its description property. Here is my code
Code:Sub Main() Dim doc As ProductDocument Set doc = CATIA.ActiveDocument Dim rootPrd As Product Set rootPrd = doc.Product ClearDescription rootPrd End Sub Sub ClearDescription(prd As Product) prd.DescriptionInst = "" Dim subPrd As Product For Each subPrd In prd.Products ClearDescription subPrd Next End Sub