Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: TB4709 on August 23, 2024, 07:02:01 pm

Title: Error when using the Export API
Post by: TB4709 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.
Title: Re: Error when using the Export API
Post by: Michal KarmazĂ­n 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,