RAM DA API - Concrete Members

Hi,

I am trying to create a short VBA Script to use the RAM DA for writing the list of "lSectionID" for concrete beams into an excel sheet. 

I created the identical model with steel members to check my script and it works fine for steel beams, however for the concrete model it doesn't work. 

Is there any reason why:

IBeam.lSectionID

IBeam.lUID

IBeam.lLabel

IBeam.lMaterialID

...

don't work for the concrete beams but work for steel beam?

Thanks,

Raji

Parents
  • I confirmed that these properties appear to be working fine in a simple VBA example in v16.00.  Perhaps the problem is specific to your model.  Have you created and assigned concrete sections to all beams?

    Here's a snippet of my code.

    Set IModel = RAMDataAcc1.GetDispInterfacePointerByEnum(IModel_INT)
    Set IStories = IModel.GetStories
    For i = 0 To IStories.GetCount - 1
      Set IStory = IStories.GetAt(i)
      Set IBeams = IStory.GetBeams
      IBeams.Filter eBeamFilter_Material, EConcreteMat
      For j = 0 To IBeams.GetCount - 1
        Set IBeam = IBeams.GetAt(j)
        Cells(j + 2, 1) = IBeam.lUID
        Cells(j + 2, 2) = IBeam.lLabel
        Cells(j + 2, 3) = IBeam.lSectionID
        Cells(j + 2, 4) = IBeam.lMaterialID
      Next
    Next



Reply
  • I confirmed that these properties appear to be working fine in a simple VBA example in v16.00.  Perhaps the problem is specific to your model.  Have you created and assigned concrete sections to all beams?

    Here's a snippet of my code.

    Set IModel = RAMDataAcc1.GetDispInterfacePointerByEnum(IModel_INT)
    Set IStories = IModel.GetStories
    For i = 0 To IStories.GetCount - 1
      Set IStory = IStories.GetAt(i)
      Set IBeams = IStory.GetBeams
      IBeams.Filter eBeamFilter_Material, EConcreteMat
      For j = 0 To IBeams.GetCount - 1
        Set IBeam = IBeams.GetAt(j)
        Cells(j + 2, 1) = IBeam.lUID
        Cells(j + 2, 2) = IBeam.lLabel
        Cells(j + 2, 3) = IBeam.lSectionID
        Cells(j + 2, 4) = IBeam.lMaterialID
      Next
    Next



Children