API Reference > Functions > SDAI > sdaiCreateNestedAggrByIndexADB Function
sdaiCreateNestedAggrByIndexADB Function
Syntax
C++
DAI_EXPORT SdaiAggr sdaiCreateNestedAggrByIndexADB(SdaiOrderedAggr aggregate, SdaiAggrIndex index, SdaiADB selaggrInstance);

sdai.h

Parameters 
Description 
SdaiOrderedAggr aggregate 
[in] An aggregate instance that contains the created nested aggregate.  
SdaiAggrIndex index 
[in] An index that determines the position of the created item.  
SdaiADB selaggrInstance 
[in] An attribute data block instance that defines the type of the SELECT value.  

The identifier of the newly created aggregate instance.

Creates a nested aggregate instance stored in an attribute data block within a specified aggregate instance at the position specified by the index.

SdaiADB lineIndex = sdaiCreateEmptyADB(); SdaiString lineIndexPath[] = { "ifclineindex" }; sdaiPutADBTypePath(lineIndex, 1, lineIndexPath); SdaiAggr lineIndexAggr = sdaiCreateNestedAggrByIndexADB(segments, 0, lineIndex);

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.