| 1695 | } |
| 1696 | |
| 1697 | int |
| 1698 | ComponentElement3d::setParameter(const char **argv, int argc, Parameter ¶m) |
| 1699 | { |
| 1700 | if (argc < 1) |
| 1701 | return -1; |
| 1702 | |
| 1703 | // E of the beam interior |
| 1704 | if (strcmp(argv[0],"E") == 0) |
| 1705 | return param.addObject(1, this); |
| 1706 | |
| 1707 | // A of the beam interior |
| 1708 | if (strcmp(argv[0],"A") == 0) |
| 1709 | return param.addObject(2, this); |
| 1710 | |
| 1711 | // I of the beam interior |
| 1712 | if (strcmp(argv[0],"Iz") == 0) |
| 1713 | return param.addObject(3, this); |
| 1714 | if (strcmp(argv[0],"Iy") == 0) |
| 1715 | return param.addObject(4, this); |
| 1716 | |
| 1717 | if (strcmp(argv[0],"G") == 0) |
| 1718 | return param.addObject(5, this); |
| 1719 | |
| 1720 | if (strcmp(argv[0],"J") == 0) |
| 1721 | return param.addObject(6, this); |
| 1722 | |
| 1723 | return -1; |
| 1724 | } |
| 1725 | |
| 1726 | int |
| 1727 | ComponentElement3d::updateParameter (int parameterID, Information &info) |