Skip to main content
7-Bedrock
May 7, 2024
Solved

Add section arrow through toolkit

  • May 7, 2024
  • 1 reply
  • 1201 views

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

Best answer by AndrewK


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. 

 

1 reply

AndrewK
AndrewKCommunity ManagerAnswer
Community Manager
May 13, 2024


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.