Hi,
I tried to use ItemTypes in Parametric cell, but it seems it does not work in all scenarios.
I'd like to know whether it's bug or it's "by design behavior".
What I tried (I used Strairs cell from MetroStation example):
[Edited paragraph] When I placed the cell to a model, I see:
With regards,
Jan
Hi Jan,
Although I cannot say this issue and the issue lined immediately below are 100% related (e.g. underlying issue with MDL API vs. VBA layer only) I thought it may be worth mentioning/referencing:
[VBA CE U13] Place cell with Item Type does not attach the Item Type (Defect 893174)
HTH,Bob
Hi Bob,
thanks for your comment.
Robert Hook said:Although I cannot say this issue and the issue lined immediately below are 100% related
I think it's not related, because in the discussed case, when ItemTypes are attached to the cell (to the model), they are not placed together with the cell. This scenario works fine in my case (at least when parametric cell is placed by a user).
What does not work is when ItemTypes are attached to elements, that are used to define the cell. In such case ItemTypes are swallowed and not presented to a user. It's not clear whether it's bug (and should be fixed) or it's by design feature (and should be explained in documentation).
Accordingly my tests, ItemTypes EC schema is copied to design file together with parametric cell, but not used.
From my "external perspective", it relates to this my programming question. Whereas it's possible to iterate content of all elements in some way (do not recall any exception), both parametric cell definition (in dictionary) and parametric cell instance (in a model) are opaque and there is no way how to analyze the source elements (including their custom data).
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point