Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How Create Insulation Detail Lines by REVIT API ? (Insulation / annotation)

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
567 Views, 0 Replies

How Create Insulation Detail Lines by REVIT API ? (Insulation / annotation)

            GraphicsStyle solid_wt_6 = LinesCat.GetGraphicsStyle(GraphicsStyleType.Projection);
            geomLine = Line.CreateBound(start, end);
           
            Transaction transaction = new Transaction(document, "Detail Lines example");
            if (transaction.Start() == TransactionStatus.Started)
            {
                 DetailLine detailline = document.Create.NewDetailCurve(view, geomLine) as DetailLine;

                detailline.LineStyle = solid_wt_6;

 

                if (null == detailline)
                {
                    throw new Exception("Create a new straight grid failed.");
                }

                 transaction.Commit();
               
                Curve curve = detailline.GeometryCurve as Curve;

            }

 

How can I make it?

I wrote the code, but it didn't work. Which part is wrong?

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community