Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How do I create and modify ladders using the .Net API?

ko.bae
Explorer

How do I create and modify ladders using the .Net API?

ko.bae
Explorer
Explorer

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();
      }
    }

 

0 Likes
Reply
215 Views
0 Replies
Replies (0)