• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

scenProc PointToPolygon len,wid from Attribute

MatthiasKNU

Resource contributor
Messages
962
Country
germany
Hi Arno, hi all other!

Is it possible, to read the len and wid attribute in the PointToPolygon-function directly from attributes?

Quick code example what I want to do:
Code:
AddAttribute|buildtype="resid"|Double;LENG|RND(8,16)
AddAttribute|buildtype="resid"|Double;WIDT|RND(5,10)
AddAttribute|buildtype="indust"|Double;LENG|RND(16,32)
AddAttribute|buildtype="indust"|Double;WIDT|RND(10,20)
AddAttribute|buildtype="row"|Double;LENG|30
AddAttribute|buildtype="row"|Double;WIDT|8
PointToPolygon|code=1502|LENG;WIDT|HDG|Integer;code|1500

I want to improve the creation of the autogen again, but Scenproc always tells me:
10:11 PointToPolygon Error Attribute LENG is not a valid number

Thanks in advance!
 
Let me check if those values are tried from attributes first. If not, it's easy to add.
 
Hi,

I have made the code change, the next development release will include it.
 
Hi Arno!

Wow, you're so fast, I haven't even gotten around to answering, and you've already implemented that in ScenProc!
Thank you so much!
 
Hi Arno!

I just tried out the new development release from yesterday evening, but seems that it still doesn't work...
zwischenablage01mvj95.png
 
Ah, oops, I didn't test enough. I have to change the data type for the validation as well.
 
Although yesterday I was quick, it might be Friday or Saturday now before I have time. Next few evenings are busy already.
 
Hi,

I have fixed it now, the new development release will be online later today.
 
Hi Arno!
Ehm, sorry, but are you sure?
Just tried the latest dev release, but... it seems that it still doesn't work...
 
Yes, I made a test case here and that one works.

Which issue do you encounter?
 
Hi Arno,

the problem was on my side.
The ScenProc update was probably still in Chrome's cache, so the 22.9. version was downloaded, not the current one.
Now I downloaded the new one, and it is working!

Thanks so much!
 
Hi,

I don't think you have the latest development release, your build is from 22 September, while the latest is from 26 September.
 
Yes, that was the problem, and Chrome always downloaded the version from 22.9. ...
Then I tried Edge and it downloaded the latest one.
 
Back
Top