Message 1 of 2
Not applicable
02-20-2018
06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ptr<Documents> documents = app->documents(); Ptr<Document> doc = documents->add(DocumentTypes::FusionDesignDocumentType); Ptr<Product> product = app->activeProduct(); Ptr<Design> design = product; Ptr<Component> rootComp = design->rootComponent(); Ptr<Sketches> sketches = rootComp->sketches(); Ptr<Sketch> sketch2 = sketches->add(rootComp->xYConstructionPlane()); Ptr<SketchCurves> sketchCurves2 = sketch2->sketchCurves(); Ptr<SketchLines> sketchLines = sketchCurves2->sketchLines(); Ptr<SketchLine> sketchLine1 = sketchLines->addByTwoPoints(Point3D::create(0, 0), Point3D::create(10, 0)); Ptr<SketchLine> sketchLine2 = sketchLines->addByTwoPoints(Point3D::create(10, 0), Point3D::create(10, 3)); Ptr<SketchLine> sketchLine3 = sketchLines->addByTwoPoints(Point3D::create(0, 0), Point3D::create(0, 4)); Ptr<SketchLine> sketchLine4 = sketchLines->addByTwoPoints(Point3D::create(0, 4), Point3D::create(10, 3));
How delete lines?
Solved! Go to Solution.
