Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

Removing Features Using VBA

$
0
0

Hello,

I am trying to remove features from some linear forms in a DGN 3D-model using VBA, but I cannot figure out how to remove these features, I tried to suppress, and move the features but nothing occurs, any one has any idea , and thanks in advance

here is the code

Sub DeleteOpennings()

Dim ce As Element
Dim ee As ElementEnumerator

Dim flist As TFFeatureList
Dim formrecipe As TFFormRecipe

Dim tfrecipelist As New TFFormRecipeList

Set ee = ActiveModelReference.GetSelectedElements

While ee.MoveNext
    Set ce = ee.Current

wend

    tfrecipelist.InitFromElement ce
    Set flist = tfrecipelist.AsTFFormRecipe.GetFeatureList()
    flist.AsTFFeature.SetSuppressed (True)

End Sub


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>