Quantcast
Channel: PTC Community : Unanswered Discussions - Creo
Viewing all articles
Browse latest Browse all 8685

Does anyone have examples of using arrays in SmartAssembly. I am struggling with the admin guide examples.

$
0
0

I do not understand why the DELETE_ARRAY_ELEM won't work....

 

 

                SEARCH_DRW_VIEWS CurrentDrawing "*" "*" ViewArray

 

                DECLARE_VARIABLE INTEGER DeleteIndex 0

 

                FOR EachView REF ARRAY ViewArray

                                GET_DRW_VIEW_ORIENTATION EachView ViewOrientation

                                PRINT "before_EachView = % ViewOrientation = %" EachView ViewOrientation

                END_FOR

 

                !@@@ error checking for background and overlay views....

                FOR EachView REF ARRAY ViewArray

                                GET_DRW_VIEW_ORIENTATION EachView ViewOrientation

                                IF ViewOrientation == "UNKNOWN"

                                                DELETE_ARRAY_ELEM ViewArray DeleteIndex

                                END_IF

                                DeleteIndex++

                END_FOR

 

                FOR EachView REF ARRAY ViewArray

                                GET_DRW_VIEW_ORIENTATION EachView ViewOrientation

                                PRINT "after_EachView = %  ViewOrientation = %" EachView ViewOrientation

                END_FOR


Viewing all articles
Browse latest Browse all 8685

Trending Articles



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