Message 1 of 2
Create Symbolic line for shafts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I Want to create symbolic line for shafts to make the " X " sign inside shafts, to do that manually You have to open Edit sketch mode and change the used lines from Boundary line to Symbolic line. I'm trying to do that using Revit API and trying to Edit Sketch mode but I can't make symbolic lines. I managed to create Boundary lines but how to make it Symbolic
SketchEditScope sketchEditScope = new SketchEditScope(doc, "Edit Sketch");
var opSketch = opening.SketchId.GetElement(doc) as Sketch;
var opBoundingBox = opening.get_BoundingBox(null);
var sketchZ = opBoundingBox.Max.Z;
var max = opBoundingBox.Max;
var min = opBoundingBox.Min;
sketchEditScope.Start(opSketch.Id);
using (Transaction te = new Transaction(doc,"Sketch"))
{
te.Start();
var line = Line.CreateBound(new XYZ(min.X, min.Y, sketchZ), new XYZ(max.X, max.Y, sketchZ));
var mdCurve = doc.Create.NewModelCurve(line, opSketch.SketchPlane);
te.Commit();
}
sketchEditScope.Commit(new FailureHandler());
Can that be done using Edit Sketch mode or is there any other way?