Quantcast
Channel: RAM | STAAD Forum - Recent Threads
Viewing all articles
Browse latest Browse all 23543

RE: OpenSTAAD C#

$
0
0
Respected Sir,
The Trailing Mail illustrates regarding Node List.
But i am looking for the fillowing
void GetNodeCoordinates(object nNodeNo, ref object fCoordX, ref object fCoordY, ref object fCoordZ)

The Following Code i was trying but not achived.

using OpenSTAADUI;
OpenSTAAD oSTD = GetSTAADUIInterface(FileName);
//Geometry
OSGeometryUI ostdGeometry = oSTD.Geometry as OSGeometryUI;
int[] NList = new int[ostdGeometry.GetNodeCount()];
object obj = NList as object;
ostdGeometry.GetNodeList(ref obj);
NList = obj as int[]; // I GOT NODE LIST
double[] px = new double[ostdGeometry.GetNodeCount()];
double[] py = new double[ostdGeometry.GetNodeCount()];
double[] pz = new double[ostdGeometry.GetNodeCount()];
object objx = px as object;
object objy = py as object;
object objz = pz as object;
ostdGeometry.GetNodeCoordinates(obj , ref objx, ref objy, ref objz); // UN ABLE TO RETRIVE CORDINATES.
px = objx as double[];
py = objy as double[];
pz = objz as double[];

Kindly help me out in this regard.

Thank You

Viewing all articles
Browse latest Browse all 23543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>