Hi Alban
Glad to see the function is getting used - even without a proper interface! I am planning on adding an interface too.
Your image got squeezed too much so it's hard to see what it shows.
One way to do this is by using the center of the sector, the point passed to the DTCreateCircularSector function.
This center can be offset in the same direction and distance as the middle line of the sector and so giving you the middle of the curved section.
You can use the function Offset to do this: Offset( object, angle, distance, units )
Do let me know if you need more information
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------