jzecha
Aerospace
- Jan 20, 2016
- 236
I have this section of code that creates a Part Properties I can export to Excel Via Analyze BOM function.
The issue is that when I Analyze BOM in Catia and Click the Define Formats Button, the "BB Length" property appears 2X on my Hidden Properties list.
When I add both, only one of them has the Length value applied.
Any idea why this is happening or what I am doing wrong?
The issue is that when I Analyze BOM in Catia and Click the Define Formats Button, the "BB Length" property appears 2X on my Hidden Properties list.
When I add both, only one of them has the Length value applied.
Any idea why this is happening or what I am doing wrong?
Code:
Dim oPartDoc As Document
Set oPartDoc = CATIA.ActiveDocument
Dim oPart As CATBaseDispatch
Set oPart = oPartDoc.GetItem("")
Dim oParameter As Parameters
Set oParameter = oPart.UserRefProperties
oLength = oLength * 25.4
Dim length1 As Length
Set length1 = oParameter.CreateDimension("BB Length ", "LENGTH", 0#)
length1.Value = oLength