<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Yes you can do this by using conditional items.<div><br></div><div>Here is roughly how you do it:</div><div><br></div><div><div>        <Int Name="Specification Mode"></div><div>          <ChildrenDefinitions></div><div>            <Double Name="Width"></div><div>            </Double></div><div>            <Double Name="Height"></div><div>            </Double></div><div>            <Double Name="Depth"></div><div>            </Double></div><div>            <Double Name="Center" NumberOfRequiredValues=3></div><div>            </Double></div><div>            <Double Name="Lengths" NumberOfRequiredValues=3></div><div>            </Double></div><div>            <Double Name="Axes" NumberOfRequiredValues=3></div><div>            </Double></div><div>          </ChildrenDefinitions></div><div>          <DiscreteInfo DefaultIndex="1"></div><div>            <Structure></div><div>              <Value Enum="Axis Aligned">0</Value></div><div>              <Items></div><div>                <Item> Width </Item></div><div>                <Item> Height </Item></div><div>                <Item> Depth </Item></div><div>              </Items></div><div>            </Structure></div><div>            <Structure></div><div>              <Value Enum="General">1</Value></div><div>              <Items></div><div>                <Item>Center</Item></div><div>                <Item>Axes</Item></div><div>                <Item>Lengths</Item></div><div>              </Items></div><div>            </Structure></div><div>          </DiscreteInfo></div><div>        </Int></div></div><div><br></div><div><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Robert M. O'Bara, MEng.<br>Assistant Director of Scientific Computing<br><br>Kitware Inc.<br>28 Corporate Drive<br>Suite 101<br>Clifton Park, NY 12065<br><br>Phone: (518) 881- 4931</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Nov 11, 2014, at 4:37 PM, David Thompson <<a href="mailto:david.thompson@kitware.com">david.thompson@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<br><br>I believe I've heard that you can specify some items in an attribute can depend on others being present (or perhaps excluding the presence of others).<br><br>Is that the case? The CGM "brick" operator takes in *either* a width, height, and depth *or* a center point, 3 axes, and a length along each axis. Is there a good way to constrain an attribute to accept one case or the other? Is this presented in the GUI as a separate tab or radio buttons (or something else)?<br><br>If you let me know I will try adding something relevant to the user's guide.<br><br><span class="Apple-tab-span" style="white-space:pre">   </span>Thanks,<br><span class="Apple-tab-span" style="white-space:pre">   </span>David<br>_______________________________________________<br>Smtk-developers mailing list<br><a href="mailto:Smtk-developers@smtk.org">Smtk-developers@smtk.org</a><br>http://public.kitware.com/mailman/listinfo/smtk-developers<br></blockquote></div><br></div></body></html>