cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Add section arrow through toolkit

MR_9276088
6-Contributor

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

ACCEPTED SOLUTION

Accepted Solutions
AndrewK
Community Manager
(To:MR_9276088)


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. 

 

View solution in original post

1 REPLY 1
AndrewK
Community Manager
(To:MR_9276088)


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. 

 

Announcements


Top Tags