Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / EntityList Class / SetCurrentStack Method
The stack of BlockReferences to set as current (the bottom-most is the first parent, which must be in the Entities, the top-most is the last parent of the hierarchy). If null or empty, the current BlockReference is unset.
If true, updates the scene bounding box. Set it to false for better performances in off-screen methods that call this to just use the devDept.Eyeshot.Entities.BlockReference.AccumulatedParentsTransform

In This Topic
    SetCurrentStack Method
    In This Topic
    Sets a sequence of BlockReferences as current.

    When a BlockReference is set as current, the following changes happen:

    - A Block is added to the devDept.Eyeshot.ViewportLayout.ParentBlocks with the entities of the current scene except the devDept.Eyeshot.Entities.BlockReference that is set as current.

    - The Entities collection contains the current Block entities.

    - The current devDept.Eyeshot.Entities.BlockReference is pushed on the CurrentBlockReferencesData stack.

    - The BoxMin and BoxMax are updated to consider the new entities, without the CurrentTransformation.

    Since the collection is modified, this method can't be called in a Foreach loop.

    To add or remove entities from a BlockReference set as current, do it on the Entities and not on the Block.Entities.

    Syntax
    'Declaration
     
    Public Sub SetCurrentStack( _
       ByVal parents As Stack(Of BlockReference), _
       Optional ByVal updateBoundingBox As Boolean _
    ) 
    public void SetCurrentStack( 
       Stack<BlockReference> parents,
       bool updateBoundingBox
    )

    Parameters

    parents
    The stack of BlockReferences to set as current (the bottom-most is the first parent, which must be in the Entities, the top-most is the last parent of the hierarchy). If null or empty, the current BlockReference is unset.
    updateBoundingBox
    If true, updates the scene bounding box. Set it to false for better performances in off-screen methods that call this to just use the devDept.Eyeshot.Entities.BlockReference.AccumulatedParentsTransform
    See Also