REVIT体量环境或自适应族环境下的放样
从所周知,在Rviet一般族中其放样方法为:Sweep NewSweep(bool isSolid,ReferenceArray path,SweepProfile profile, int profile Location Curve Index,ProfilePlaneLocation profilePlaneLocation),而在体量环境下则采用Form NewSweptBlendForm()方法。该方法可放样可融合(应该叫放样融合),我自己写了一个放样融合命令。直接上代码:
public class SweepCommand : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIDocument uidco = commandData.Application.ActiveUIDocument;
Document familyDoc = uidco.Document;
//【1】创建放样路径path
Line line_P = Line.CreateBound(new XYZ(0, 0, 0), new XYZ(1000 / 304.8, 0, 0));
//【2】创建要放样的轮廓
//圆弧的创建需要(草图平面,草图平面与Y轴平行)