API Creation of analytical model

API Creation of analytical model

ChristianBlei
Advisor Advisor
363 Views
1 Reply
Message 1 of 2

API Creation of analytical model

ChristianBlei
Advisor
Advisor

Hi developers,

 

 

I searched the API but did not see anything related. Does the API have a part that allows the creation and editing of analytcal models?

 

best regards,

Christian Blei  

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
0 Likes
Accepted solutions (1)
364 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

Hi Christian,

 

AS API has the possibility to create analytical nodes. The API is located in ASObjectsMgd.dll:

 

Node node = new Node();
node.WriteToDb();

node.Position = Origin;
node.Status = Node.eNodeStatus.NodeSupported;

for(...number of input beams...)

{

  node.AddDriver(ObjectId)

  NodeElemInfo info = new NodeElemInfo(node.GetDriverRealIndex(ObjectId),

                                                                 Node.eNodeElemEnd.StartNode );

  Effort effort  = new Effort();

  effort.F = new Vector3d(...);

  effort.M = new Vector3d(...);

  effort.LoadCaseName = "Load case 1";

  info.AddEffort(effort);

  node.AddElementInfo(info);

 }

 

Regards,

Casandra