![view1.jpg view1.jpg](https://www.mcadcentral.com/data/attachments/0/750-dc9e6bbf4ac193b430964d3d7ccfaad9.jpg)
![view2.jpg view2.jpg](https://www.mcadcentral.com/data/attachments/0/751-a969f6011313b2f310cef93d0a2fda87.jpg)
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.