How do I create and modify ladders using the .Net API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello.
I am trying to write a program to create a ladder using the .NET API.
As a first step, I successfully created a ladder.
However, I couldn't figure out how to set the orientation of the ladder.
It seems that I need to implement the IFiler interface to set the shape of the ladder.
I would like to know what I should refer to.
Below is the code I wrote as a test.
public void CreateCageLadder() {
using (var da = new DocumentAccess(null, false)) {
var UserDefPt = new UserDefinedPoint(new Point3d(0, 0, 0));
var inputDrivers = new List<Tuple<FilerObject, Point3d>>();
inputDrivers.Add(new Tuple<FilerObject, Point3d>(UserDefPt, UserDefPt.Point));
var additionalInputPoints = new List<Point3d>();
additionalInputPoints.Add(new Point3d(0, 0, 0));
additionalInputPoints.Add(new Point3d(0, 0, 3000));
var ladder = new UserAutoConstructionObject("CageLadder",
inputDrivers, additionalInputPoints);
da.Commit();
}
}