How do we obtain element metrics with DgnPlatformNet? For example, I want to get the length of a line, the area of a shape or the volume of a sphere. Is there a DgnPlatformNet equivalent to VBA's PropertyHandler?
Unknown said:Use interfaces like CurvePathQuery
What other interfaces are like CurvePathQuery?
Unknown said:Use interfaces like CurvePathQuery to get such info directly
I don't see any measurement methods or properites of CurvePathQuery.
Please be explicit: how do we measure the area of a shape element?
Regards, Jon Summers LA Solutions
Answer Verified By: Jon Summers
Unknown said:See e.g. CurveVector.CentroidNormalArea(
I would love to see that method, but it's not in the documentation. Nor is CurveVector.
When the documentation is lacking, and there are no examples for such basic functionality, we rely on you guys to fill in the gaps. So thanks for your help, but please prod into activity whoever is responsible for documenting and writing examples for .NET developers.
Unknown said:You can also use WireCentroid...
Thanks! I would like to encourage Bentley Systems to include that in the documentation, examples or preferably both. Rumours, gossip and secret methods are not a substitute for formal aids.
For example, you previously helped answer the question of Placing Cells with C# in CONNECT. While I've no doubt that your proposal works, it's no substitute for a simple PlaceCell method in the DgnPlatformNet API. The simple approach exists for C++ and VBA programmers, so why not for .NET developers?