We are working on an application that will generate a panel for a bridge application. The application is supposed to be generic and uses a parameter file to describe the bridge (how many driving lines, 1 or 2 rivers being crossed). The flexibility of the lines and water means that the width of the bridge icon and barrier can change. Yes, we could have over-parametrized but felt that there could be a nicer solution.
We used the OO panels and made a bridge icon that now has a property 'BridgeWidth' where you just specify the number of lanes. we would then use 'setvalue( "icon", "scale", xxxx, 1.0)' to scale the width this icon. Unfortunately we ran into some funny stuff with the reference point and some rounding errors.
This week I installed 3.15P7 and found a new feature just by pure luck. And as far as I know, there is no mention of it in the release notes or in the help. Use your script editor to verify this.
In versions before 3.15P7 you could directly modify the 'points' of a polygon. A very useful function. For example: the water under the bridge is a polygon where we use 'points' to give it the right angles. I found that in 3.15P7 you can use 'points' to modify the coordinates of rectangles, circles, buttons, checkboxes !! Seems like you can directly modify the absolute coordinates of every kind of shape . This is quite useful. It gives me more control over the positioning of a shape and there seem to be no rounding errors. This allows for even more creativity !
Must be a christmas present
share the fun
Frenk Mulder
A christmas gift by ETM ?
- flindecke
- Posts:69
- Joined: Wed Jun 24, 2015 1:54 pm
Re: A christmas gift by ETM ?
This is an amazing feature. My "little programmer" will take a look next week. Perhaps we can use the animation API for modifing the points?
- Andorhal
- Posts:127
- Joined: Wed Nov 12, 2014 8:04 am
Re: A christmas gift by ETM ?
Frank Lindecke wrote:
This feature is not yet available. It has been added to our backlog.
Best regards,
Robert
Hello Frank.Perhaps we can use the animation API for modifing the points?
This feature is not yet available. It has been added to our backlog.
Best regards,
Robert
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
Re: A christmas gift by ETM ?
I was a bit confused by frAnk and frEnk.
Does this mean:
* The 'points' feature works... but is not documented
* The animation feature does not work (and is in a backlog)
Frenk
Does this mean:
* The 'points' feature works... but is not documented
* The animation feature does not work (and is in a backlog)
Frenk
- Andorhal
- Posts:127
- Joined: Wed Nov 12, 2014 8:04 am
Re: A christmas gift by ETM ?
Hello FrEnk 
The point feature works. It is documented as part of the "dynamic panel file write" feature (including the addShape functionality, where the point thing is part of).
We will review the documentation for comprehensibility on that case.
The animation "feature" simple does not exist yet, it is a nice idea which we added to our backlog.
The point feature works. It is documented as part of the "dynamic panel file write" feature (including the addShape functionality, where the point thing is part of).
We will review the documentation for comprehensibility on that case.
The animation "feature" simple does not exist yet, it is a nice idea which we added to our backlog.