private void SetInsertionPoint(Bar bhBar, string name) { Offset offset = bhBar.Offset; double[] offset1 = new double[3]; double[] offset2 = new double[3]; if (offset != null) { if (offset.Start != null) { offset1[1] = offset.Start.Z; offset1[2] = offset.Start.Y; } if (offset.End != null) { offset2[1] = offset.End.Z; offset2[2] = offset.End.Y; } } if (m_model.FrameObj.SetInsertionPoint(name, (int)bhBar.BarInsertionPoint(), false, bhBar.BarModifyStiffnessInsertionPoint(), ref offset1, ref offset2) != 0) { CreatePropertyWarning("Insertion point and perpendicular offset", "Bar", name); } }