Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get dimensions as per the selected layer with VB.net

  • Thread starter Thread starter Kaixuan
  • Start date Start date
K

Kaixuan

Guest
View attachment 6892View attachment 6893
As shown in attachments. In Cero, Different view layer has different dimensions. I need to achieve this by VB api.
I have tried IpfcLayer as follow:
layerModelItems = CType(model, IpfcModelItemOwner).ListItems(EpfcModelItemType.EpfcITEM_LAYER)

Dim itemsInLayer As IpfcModelItems
Dim layer As IpfcLayer
For i = 0 To layerModelItems.Count - 1
layer = CType(layerModelItems.Item(i), IpfcLayer)
Debug.WriteLine(layerModelItems.Item(i).GetName())
If (Not layer Is Nothing) Then
itemsInLayer = layer.ListItems()
For j = 0 To itemsInLayer.Count
Debug.WriteLine((itemsInLayer.Item(j).GetName()))
Next
End If

Next

However, it is not what I want.

Is there any idea on this? I will appreciate for any suggestions/idea.
 

Attachments

  • view1.jpg
    view1.jpg
    9.5 KB · Views: 4
  • view2.jpg
    view2.jpg
    12.3 KB · Views: 3

Part and Inventory Search

Sponsor

Back
Top