Does anyone have examples of using arrays in SmartAssembly. I am struggling with the admin guide examples.
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
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

