Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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
Solved! Go to Solution.
Hi
Thank you for your question. While your question seems fairly detailed, I’d like to recommend bringing more details and context to your initial inquiry. It also helps to have screenshot(s) to better understand what you are trying to do in your process. This will increase your chances to receive meaningful help from other Community members.
Hi
Thank you for your question. While your question seems fairly detailed, I’d like to recommend bringing more details and context to your initial inquiry. It also helps to have screenshot(s) to better understand what you are trying to do in your process. This will increase your chances to receive meaningful help from other Community members.
