Add section arrow through toolkit
Hello,
I want to set the section arrow to a view. The section view is already on the drawing.
I tried this:
ui::printMessage("Select view for the arrow!");
pfcSelectionOptions_ptr opt = pfcSelectionOptions::Create("dwg_view");
opt->SetMaxNumSels(1);
viewArrow=session->Select(opt)->get(0)->GetSelView2D();
ui::printMessage("Select section view!");
pfcSelectionOptions_ptr opt2 = pfcSelectionOptions::Create("dwg_view");
pfcSelections_ptr sel = session->Select(opt2);
pfcView2D_ptr viewSection = sel->get(0)->GetSelView2D();
wfcSequenceofSection2DInstructions_ptr instrNew=wfcWView2D::cast(viewSection)->GetSection2DInstructions();
instrNew->get(0)->SetArrowDisplayView(viewArrow);
pfcModel2D::cast(mdl)->Regenerate();
It doesn't work.
Thanks for your help

