Given a DgnAttachmentP pointer, how can I obtain a DgnModelRefP ?
the GetParentModelRefP() seems to be something else (the model that contains the reference); I just need the reference itself, as I should call some functions like :
mdlRefFile_transformAttachment() to manipulate the reference
Hi Alessando,
please respect the best practices! Even when it seems to be unnecessary, to specify product / version / language is recommended habit. E.g. to use standardized subject format (which you ignores completely) defined as [<product> <version> <language>] Issue helps a lot to share standard set of information.
Alessandro Trebbi said:Given a DgnAttachmentP pointer, how can I obtain a DgnModelRefP ?
I have no chance to try it now, but what I see in MicroStationAPI documentation is that DgnAttachment is inherited from DgnModelRef. So I guess it's about standard C++ casting to parent class.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Alessandro Trebbi,
In MicroStation CONNECT for a given model of interest you would:
HTH,Bob