Community
When I use a plug-in and use iexternalcommand to implement the following code:
It can succeed!
using (Transaction transaction = new Transaction(RevitDoc)) { transaction.Start("create rallings"); CurveLoop curveloop = new CurveLoop(); curveloop.Append(Line.CreateBound(new XYZ(),new XYZ(10,0,0)); Autodesk.Revit.DB.Architecture.Railing.Create(this.RevitDoc, curveloop, railingtype.Id,level.Id); transaction.Commit(); }
When I use revitNet DLL to create it,It comes the error:sketch is empty.
What is the reason for it. Thanks.
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
I do not know revitNet DLL. I believe it is unsupported. Is it a way to try to use the Revit API without running a Revit session? That is illegal.
Can't find what you're looking for? Ask the community or share your knowledge.