How to Set Prediction Area by Winprop API

Tianhang Yu_20657
Tianhang Yu_20657 Altair Community Member
edited July 2023 in Community Q&A

Hi,

I'm currently attempting to calculate the received power of networks using the Winprop API. And I found I need to manually set the prediction area using 'GeneralParameters.UrbanLowerLeft' and 'GeneralParameters.UrbanUpperRight'. Is there an automated method for setting the prediction area? I have 2000 odb files that need to be calculated, and I can't manually set each one. Any help would be greatly appreciated.

Best Answer

  • Reiner_Hoppe
    Reiner_Hoppe
    Altair Employee
    edited July 2023 Answer ✓

    Hi,
    you can try to use the fct. OutdoorPlugIn_ReadPredictionArea() which reads the parameters for the prediction area from the map database i.e. by using this function call and passing the .odb Filename and the DATABASE_TYPE_WINPROP_ODB you should get back the lower left and upper right corners i.e. 2 corners (NumberCorners will be set to 2) in the argument Polygon.

    Hopefully this will help.

Answers

  • Reiner_Hoppe
    Reiner_Hoppe
    Altair Employee
    edited July 2023 Answer ✓

    Hi,
    you can try to use the fct. OutdoorPlugIn_ReadPredictionArea() which reads the parameters for the prediction area from the map database i.e. by using this function call and passing the .odb Filename and the DATABASE_TYPE_WINPROP_ODB you should get back the lower left and upper right corners i.e. 2 corners (NumberCorners will be set to 2) in the argument Polygon.

    Hopefully this will help.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.