Skip to content

Commit

Permalink
Added bar insertion point to ETABS bar
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasb authored and IsakNaslundBh committed Oct 31, 2022
1 parent 200626b commit 3452d43
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Etabs_Adapter/CRUD/Read/Bar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,23 @@ private List<Bar> ReadBar(List<string> ids = null)
etabsIdFragment.PersistentId = guid;

bhBar.SetAdapterId(etabsIdFragment);

// Insertion Point Offset
// Need to add more information to capture coordinate system?? GetCoordSys method and transform local csys
int insertionPoint = (int)BarInsertionPoint.Centroid;
bool mirror = false;
bool modifyStiffness = false;

double[] offset1 = new double[3];
double[] offset2 = new double[3];
string cSys = "";

if (m_model.FrameObj.GetInsertionPoint(id, ref insertionPoint, ref mirror, ref modifyStiffness, ref offset1, ref offset2, ref cSys) == 0)
{
BarInsertionPoint barInsertionPoint = (BarInsertionPoint)insertionPoint;
bhBar = bhBar.SetInsertionPoint(barInsertionPoint, modifyStiffness);
}

barList.Add(bhBar);
}
catch
Expand Down

0 comments on commit 3452d43

Please sign in to comment.