Itoo Software Forum

Author Topic: Error when using the Export API  (Read 5995 times)

TB4709

  • Newbie
  • *
  • Posts: 4
Error when using the Export API
« on: August 23, 2024, 07:02:01 PM »
Hi,

we are having an issue when we try to use the Export API with Forestpack like it is said in this documentation. This is what we are using

Forest_pro.ForestPack.exportData c:\tmp\test.xml "index geomID geomName finalTM"

it doesn't generate any error, and only returns "2". Note that it works when using the button of the interface.

Here is a test scene so you can see the issue.

Thank you for your help.

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2678
Re: Error when using the Export API
« Reply #1 on: August 26, 2024, 09:31:43 AM »
Hi,

I'm sorry to hear you're experiencing issues with it. Which version of ForestPack you're using? While there was a known issue in FP8, it was resolved in FP9 and the following command in the latest beta version (FP 9.0.8b) should work just fine:
Code: [Select]
Forest_pro.ForestPack.exportData "c:\\tmp\\test.xml" "index geomID geomName finalTM"
I hope this helps.

Best regards,