Hi,
Thanks for the reply.
I should of mentioned that the "Location" property I require is part of a BOM export VBA module.
Here is a bigger snippet of code (reduced from its original to post to the forum)
Public Function QueryBOMRowProperties(oBOMRows As BOMRowsEnumerator)
For Counter = 1 To oBOMRows.Count
Dim oRow As BOMRow
Set oRow = oBOMRows.Item(Counter)
Dim oCompDef As ComponentDefinition
Set oCompDef = oRow.ComponentDefinitions.Item(1)
PROBLEM LINE!!!!
Set oLocationProperty = oCompDef.Document.PropertySets.Item("Design Tracking Properties").Item("Location")
Set oPartNumberProperty = oCompDef.Document.PropertySets.Item("Design Tracking Properties").Item("Part Number")
Set oDescriptionProperty = oCompDef.Document.PropertySets.Item("Design Tracking Properties").Item("Description")
Set oStockNumberProperty = oCompDef.Document.PropertySets.Item("Design Tracking Properties").Item("Stock Number")
Location = Trim(oLocationProperty.Value)
PartNumber = Trim(oPartNumberProperty.Value)
Description = UCase$(Trim(oDescriptionProperty.Value))
StockNumber = Trim(oStockNumberProperty.Value)
Quantity = Val(oRow.ItemQuantity)
ItemNumber = oRow.ItemNumber
If Not oRow.ChildRows Is Nothing Then Call QueryBOMRowProperties(oRow.ChildRows)
Next
End Function
Everything else (Description, Stocknumber etc works fine, its just the "Location" property that is the problem!
Can you help?
Kindest Regards
IsoCAM