RobotStudio event

[Wish] Add Group attribute on Smart Component properties

DenisFR
DenisFR ✭✭✭
Hello,
Is it possible to add Group attribute on DynamicProperty?
So when it is drawn in RS (Properties pane), the group can be fold as Properties and Signals can.
This should be backward compatible as this attribute is not read on older version of RS.

Comments

  • DenisFR
    DenisFR ✭✭✭
    edited September 2020
    Hello,
    To help you understand what I plan, here the xml part (look at added uiGroup attribute):
          <Properties>
            <DynamicProperty name="Status" valueType="System.String" value="" readOnly="true" uiVisible="false">
              <Attribute key="AddToDisplayName" value="true"/>
            </DynamicProperty>
            <DynamicProperty name="Controller" valueType="System.String" uiGroup="Data">
              <Attribute key="AutoApply" value="true"/>
              <Attribute key="AllowedValues" value="Update" />
            </DynamicProperty>
            <DynamicProperty name="Task" valueType="System.String" uiGroup="Data">
              <Attribute key="AutoApply" value="true"/>
              <Attribute key="AllowedValues" value="" />
            </DynamicProperty>
            <DynamicProperty name="Module" valueType="System.String" uiGroup="Data">
              <Attribute key="AutoApply" value="true"/>
              <Attribute key="AllowedValues" value="" />
            </DynamicProperty>
            <DynamicProperty name="Data" valueType="System.String" uiGroup="Data">
              <Attribute key="AutoApply" value="true"/>
              <Attribute key="AllowedValues" value="" />
            </DynamicProperty>
            <DynamicProperty name="ShapeType" valueType="System.String" value="Capsule">
              <Attribute key="AllowedValues" value="Capsule;Box"/>
            </DynamicProperty>
            <DynamicProperty name="ParentAxis" valueType="System.Int32" value="1" uiGroup="Position">
              <Attribute key="MinValue" value="0"/>
              <Attribute key="MaxValue" value="6"/>
            </DynamicProperty>
            <DynamicProperty name="CurrentAxis" valueType="ABB.Robotics.Math.Matrix4" uiGroup="Position">
            </DynamicProperty>
            <DynamicProperty name="Shift" valueType="ABB.Robotics.Math.Matrix4" uiGroup="Position">
            </DynamicProperty>
            <DynamicProperty name="Radius" valueType="System.Double" value="0.1" uiVisible="true" uiGroup="Size">
              <Attribute key="Quantity" value="Length"/>
              <Attribute key="MinValue" value="0"/>
            </DynamicProperty>
            <DynamicProperty name="Length" valueType="System.Double" value="0.1" uiGroup="Size">
              <Attribute key="Quantity" value="Length"/>
              <Attribute key="MinValue" value="0"/>
            </DynamicProperty>
            <DynamicProperty name="Height" valueType="System.Double" value="0.1" uiVisible="false" uiGroup="Size">
              <Attribute key="Quantity" value="Length"/>
              <Attribute key="MinValue" value="0"/>
            </DynamicProperty>
            <DynamicProperty name="Width" valueType="System.Double" value="0.1" uiVisible="false" uiGroup="Size">
              <Attribute key="Quantity" value="Length"/>
              <Attribute key="MinValue" value="0"/>
            </DynamicProperty>
            <DynamicProperty name="Color" valueType="ABB.Robotics.Math.Vector3" value="[0,0,0]" uiGroup="Color">
              <Attribute key="CustomValidation" value="true"/>
            </DynamicProperty>
            <DynamicProperty name="Opacity" valueType="System.Int32" value="0" uiGroup="Color">
              <Attribute key="MinValue" value="0"/>
              <Attribute key="MaxValue" value="255"/>
            </DynamicProperty>
            <DynamicProperty name="GeneratedPart" valueType="ABB.Robotics.RobotStudio.Stations.Part" readOnly="true" uiVisible="false"/>
            <DynamicProperty name="ShowAtOrigin" valueType="System.Boolean" value="false"/>
            <DynamicProperty name="MakeAxisFrame" valueType="System.Boolean" value="false"/>
            <DynamicProperty name="IsSelectable" valueType="System.Boolean" value="true"/>
          </Properties>

    What it should look:
    What it looks for older version:

  • Hello Denis,

    I'll forward this to R&D.


    Maxim Riabichev
    PC Software Support Engineer
  • Hello Denis,

    This would really improve the SmartComponents usage, good idea!
  • Hello all,

    I'm happy to announce that this feature request will be implemented in the 2020.4 release of RobotStudio.

    Thanks for the suggestion!

    Maxim Riabichev
    PC Software Support Engineer