Hello All,
The following codes come from help:
Sub ShowTransientElements1() Dim ele As LineElement Dim flags As MsdTransientFlags flags = msdTransientFlagsOverlay + msdTransientFlagsSnappable Set ele = CreateLineElement2(Nothing, Point3dFromXYZ(15.696, 25.045, -0.64), Point3dFromXY(20.194, 23.7592)) Set tec1 = CreateTransientElementContainer1(Nothing, flags, msdViewAll, msdDrawingModeHilite) 'Set tec1 = CreateTransientElementContainer1(ele, flags, msdViewAll, msdDrawingModeHilite) Set ele = CreateLineElement2(Nothing, Point3dFromXYZ(15.696, 23.759, -0.64), Point3dFromXY(20.194, 25.045)) tec1.AppendCopyOfElement ele End Sub
Pay atttention to the codes CreateTransientElementContainer1, if the first parameter is Nothing, it works fine in V8i MVBA, but failed in CE U10 MVBA, it shows "Bad element". Can anyone help me to test it in CE U11? Thank a lot.
Hi Changsong Ling,
I believe Artur Goldsweer had previously discovered this issue too (Defect 889318) and he is currently prioritizing VBA defects for MicroStation CONNECT Update 13 and possibly may be able to provide a work-around and/or prioritize this in that build; since Update 12 is (very) soon to release.
HTH,Bob
I did talk briefly with Artur Goldsweer and he did confirm your post is related to Defect 889318 and is trying to schedule this (with priority) to be addressed in MSCE U13. He also mentioned the work-around (need) to address the current design requirement is to provide an (1) element on creation of the Transient Element Container to avoid the current Runtime error thrown.
I know this is an older post, but I just encountered what I think is related to this same problem. With my situation, I am able to create the transient container and append elements to it, but as soon as the view is redrawn, MCE immediately crashes. Has there been any updates on this?
Hi Dale,
MicroStation CONNECT Update 13 (v10.13.00.48 and later) contain code to resolve Defect 889318 and has been confirmed as fixed. Make sure you are running MicroStation CONNECT Update 13 (or later). If running with the fixed version, then your crash is likely a different (though maybe similar) issue. If you are a programmer you can submit a Test Case as a new forum post here to review. If you are not a programmer, please submit a Test Case to the MicroStation Product team forum to review and/or determine if a problem can be identified and addressed.