Hi Aced2X,
I am not certain if the OPM SDK provides this example however see if this code snip can help you start to get the desired results.
MSCE SDK U16.2 Example: C:\Program Files\Bentley\MicroStationCONNECTSDK\examples\DgnEC\DgnECExample\WriteInstanceOnElementTool…