I have used the function mdlMlineStyle_traverse from VBA to get an array with all existing multilinestyles in a drawing, this works fine with Microstation V8i

Now I woild like same funtion in Connect Edition, but I get an error telling "mdlMlineStyle_traverse is not a function"

As far as I can see the funtion is still in the SDK.

Anyone who has got same or similar issue and found a solution.

Thanks in advance


Parents Reply Children
  • CExpression = "mdlMlineStyle_traverse(" & val(AddressOf TraverseFunction) & ", " & _
                  &nbsp  VarPtr(GetMultiLineStyles) & ", " & MR.MdlModelRefP & ", -1)"

    "mdlMlineStyle_traverse is not a function"

    You're assembling a string to be passed to MicroStation's C expression handler.  If a function from the MicroStationAPI is used in such a string, it must be published for the C expression handler to be able to see it. We cannot publish a Bentley function — that must be performed when MicroStation is built.

    Clearly, that function is published in MicroStation V8, because your VBA worked.  We must assume that the function is not published in MicroStation CONNECT.

    I don't see a simple solution for your problem.  Can you switch your development to .NET or C++?

    Regards, Jon Summers
    LA Solutions