Reply

SolidEdge ST : Missing OccurrenceDocument.Properties??

[ Edited ]

 

HI,

I was trying to extract BOM from assembly, with an example os SolidEdge conference 2005.

- Windows Vista

-Visual Studio 2005

-SolidEdge ST MP3

It seems that .OccurrenceDocument.Properties is no longer availble.

1. Is correct?

2. Where I can get the properties of an OccurrenceDocument?

Thanks in advance for any info.

Best Regards

Massimo

objPropertySets = objOccurrence.OccurrenceDocument.Properties

Dim objOccurrence As SolidEdgeAssembly.OccurrenceDim objPropertySets As SolidEdgeFramework.PropertySetsDim objProperties As SolidEdgeFramework.PropertiesDim objChildNode As TreeNodeDim objListViewItem As ListViewItemDim i AsInteger

 ' Loop through the occurrences

 

objOccurrence = objOccurrences.Item(i)

objChildNode = objNode.Nodes.Add(objOccurrence.Name)

objChildNode.Tag = objOccurrence

 For i = 1 To objOccurrences.Count' Get some file properties

objPropertySets = objOccurrence.OccurrenceDocument.Properties

objProperties = objPropertySets.Item(

 "ProjectInformation")' Add a ListViewItem representing this occurrence

objListViewItem =

 

.SubItems.Add(objOccurrence.Name)

.SubItems.Add(objProperties.Item(

.SubItems.Add(objProperties.Item(

.SubItems.Add(objOccurrence.Quantity)

.SubItems.Add(objOccurrence.OccurrenceFileName)

.Tag = objChildNode

 Me.lvBOM.Items.Add(level)With objListViewItem"Document Number").Value)"Revision").Value)EndWith

 ' Check to see if this occurrence has suboccurrences

 If (objOccurrence.Subassembly = False) Then

objChildNode.ImageIndex = 2

objChildNode.SelectedImageIndex = objChildNode.ImageIndex

 Else

objChildNode.ImageIndex = 3

objChildNode.SelectedImageIndex = objChildNode.ImageIndex

LoadOccurrences(objChildNode, objOccurrence.OccurrenceDocument.Occurrences, level + 1)

 EndIf

 Next

 EndSub

 

 

 

 

 

 

 

Posted by: Massimo Magris
Post date: 1/31/2009 5:01:24 AM

1 REPLY

RE: SolidEdge ST : Missing OccurrenceDocument.Properties??

[ Edited ]

Massimo,

 

Everything seems ok on my machine. What problem\error are you having exactly?

 

Posted by: Jason Newell
Post date: 1/31/2009 3:38:24 PM