Hello
I am trying to make a vba-code to create a simple structural elements ( beam , column etc) in AECOsim.
But i cant find in vba help files the list of element names and functions to use in that case.
I found examples for lines and shapes:
Dim oStringElements(1) As ChainableElement Dim oLine As lineElement
Set oLine = CreateLineElement1(Nothing, startPoints) Set oStringElements(0) = oLine
Dim oComplexShape As ComplexShapeElement Dim oComplexString As ComplexStringElement,
Set oComplexShape = CreateComplexShapeElement1(oStringElements, msdFillModeFilled)
Set oComplexString = CreateComplexStringElement1(oStringElements)
oComplexShape.Redraw oComplexString.Redraw msdDrawingModeNormalActiveModelReference.addElement oComplexShape ActiveModelReference.addElement oComplexString
Where i could find the list of all VBA types and functions (such as marked red color) for AECOsim?
to get some guidance with structural vba, have a look at the STFAlongCenterlines and STRcustomDrawingLabels sample vba in the delivered dataset, or the delivered STF spreadsheet. The help file, stfcom.chm, was missing from the standard installation as well as the SDK, which was where it was supposed to be, the last time I had to look for it. So your best bet would be to special request it through SR.
Thank you for answer!
I've looked this example, also i found here one more (last post with code in topic below
https://communities.bentley.com/products/programming/microstation_programming/f/archived-microstation-v8i-programming-forum/71688/can-someone-point-me-to-an-example-of-reading-writing-bentley-structral-v8i-parts-i-don-t-see-any-examples-delivered/189690#189690
In both examples there are next types:
Dim member As STFLinearMemberDim section As STFSection
I tried to use this types, but result is "Compile error: User-defined type not defined".
I dont understand why. It looks like types are not valid for AECOsim
Thaks a lot!
I found the library "Bentley MicroStation Structural DGN 1.0 Library", attached it as ref. Now compile is ok!
and how to find the this library in ProSteel? "Bentley MicroStation Structural DGN 1.0 Library"or how can get the start (end) point coordindation in MVBA?
which version of prosteel do you have? I don't think ABD and PS share the same VBA libraries. Also, there's a PS dedicated forum, I reckon you will have better response there.
I have ProStructure CE Update 4
PS CE isn't using the same VBA libraries (if any) for structural elements as ABD.
Answer Verified By: Marc Thomas