How can I run built-in Revit commands from C# -
i wanting know if there methodology feed calculated values built-in revit command inside c# program, , possibly (based on results, such whether makes element short or long known "maximum span" of particular beam) continue c# program , change beam size). told can invoke revit built-in command after execution of c# external command, cannot return c# program
as example, want select element trim/extend to, , have code figure out "joist" beams extend element. program extended filtering (such "reference level", or "workset", or "comments", or "mark" parameters (etc.)) , run built in function, providing element extend , each of beams.
i've tried internet searches, revit sdk samples, , nothing used (but there lot of csproj's through).
can verify cannot go , forth between c# program , revit built-in command?
you can programmatically invoke built in revit command uiapplication.postcommand() method. refer documentation , building coder more information. not execute until after api context over, however.
i don't think you'll able feed arguments command however, short of kind of win32 hack. perhaps need recreate functionality of built in command within revit api.
unfortunately, don't think can (command "_line" pnt1 pnt2) type of thing here.
Comments
Post a Comment