GetValue FillColor (fill color)

10 views
Skip to first unread message

Matt Stovall

unread,
Nov 24, 2009, 12:27:52 PM11/24/09
to IADS
I'm trying to create a derived parameter to obtain the fillcolor
property of an IadsText box. I then want to use that derived
parameter to define the color for other text boxes as well as the flap
colors in one of the IADS aircraft models. The problem is my derived
equation only returns zero no matter what the fill color is. Is there
something wrong with my derived equation or the the parameter type?
I've tried all the parameter types and nothing seems to work. Should
I even be able to do this? I'm using IADS 6.2.

My derived equation is of the form:
GetValue("AnalysisWindowName.PositiveFlapColorInput","FillColor")

-Matt

James Bretz

unread,
Nov 24, 2009, 2:00:47 PM11/24/09
to ia...@googlegroups.com
Hi Matt,
Yes, you certainly should be able to do this.. It sounds like the equation
isn't finding the display for some reason. Try this:

GetValue( "DisplayName", "FillColor" )

In other words, nix the AnalysisWindow name. As long as the display name is
unique for the entire desktop, the equation should find the display.

Technically, the ParmType for the derived equation should be set to
"discrete" by the way. Color properties are 32 bit unsigned int. But don't
worry about it.... Iads should convert it no matter what type you set the
equation so float/in/discrete should all work.

If you are still having a problem, double/triple check the display name and
it's spelling. If you're off by one character it will cause a failure.

Let me know how that goes. We still have other experiments to try,
Jim

James Bretz

unread,
Nov 24, 2009, 2:10:53 PM11/24/09
to ia...@googlegroups.com
Matt,

> I'm trying to create a derived parameter to obtain the fillcolor
> property of an IadsText box. I then want to use that derived
> My derived equation is of the form:
> GetValue("AnalysisWindowName.PositiveFlapColorInput","FillColor")

Just a quick question: Are you talking about the IadsPrimitives.IadsText
(text output) object or the IadsInputObjects.IadsTextInput (text input) box?

Jim

Matt Stovall

unread,
Nov 24, 2009, 3:17:04 PM11/24/09
to IADS
>
> Let me know how that goes. We still have other experiments to try,
> Jim

Thanks for the help. I got it to work without the AnalysisWindow
name, I also got it to work with the AnalysisWindow name. In my
original equation that I deleted somewhere along the way I must have
had an incorrect characheter in a name that was just too subtle to
notice. Thanks for all the help and the quick response.

Matt

Matt Stovall

unread,
Nov 24, 2009, 3:21:12 PM11/24/09
to IADS
> Just a quick question: Are you talking about the IadsPrimitives.IadsText
> (text output) object or the IadsInputObjects.IadsTextInput (text input) box?
>
> Jim

I was referring to the IadsPrimitives.IadsText (text output) object.
As far as I know the IadsInputObjects.IadsTextInput (text input) box
does not have a fillcolor property. Although it would be nice if the
text input box allowed the user the same ability to modify the font,
borders, and colors.

Matt

James Bretz

unread,
Nov 24, 2009, 3:53:58 PM11/24/09
to ia...@googlegroups.com
Matt,

> I was referring to the IadsPrimitives.IadsText (text output) object.
> As far as I know the IadsInputObjects.IadsTextInput (text input) box
> does not have a fillcolor property. Although it would be nice if the
> text input box allowed the user the same ability to modify the font,
> borders, and colors.

Ok, good to hear it worked out for you ;)

Ya, it's a pain typing in the display name. We'll try to help more with that
in the future.

I'll add all these text input suggestions to the list. Thanx!
Jim

Reply all
Reply to author
Forward
0 new messages