Hi @philippe_larouche8LWMF. It looks like you are looking at the wrong collection object. I believe you would need to use the OrdinateDimensionSets.Add Method, instead of the OrdinateDimensions.Add method. Both collection objects originate from the same common origin...the DrawingDimensions collection object. The one route lets you create a whole 'set' at once, so that they are all associated with each other. The other route is for creating individual ones that are not necessarily part of a 'set'. When placing individual ordinate dimensions, you must have already defined an 'origin point' (OriginIndicator - DrawingView.OriginIndicator) in that view for the individual ordinate dimensions to reference their dimensions from. If that origin point does not exist yet, it will throw an error. I pretty much always use 'sets' instead of individual ones because of that myself.
DrawingDimensions.OrdinateDimensionSets
DrawingDimensions.OrdinateDimensions
Wesley Crihfield

(Not an Autodesk Employee)