Hi
we create a clip element ad then we use the following code which call the dialog for creating the sheet .But we want to do that directly, without a dialog. With: IDrawCompBuilder::BuildDrawComp(*options); -> Nothing happens
Our goal is to autmate the creation of sections, store the in a external dgn, and the read the elements back in the dgn.
The last suggestion here using IElementGraphicsProcessor is not practicable for creating sections.
Best regards
Thomas
DPoint3d clipperElementPoints[] = { point1, point2 }; IViewClipObjectPtr clipobj = SectionClipElementHandler::CreateClipObject(); clipobj->SetPoints(2, clipperElementPoints); clipobj->SetRotationMatrix(fitRotation); clipobj->SetSize(ClipVolumeSizeProp::TopHeight, sectionTopHeight); clipobj->SetSize(ClipVolumeSizeProp::BottomHeight, -1 * sectionBottomHeight); clipobj->SetSize(ClipVolumeSizeProp::FrontDepth, sectionFrontDepth); clipobj->SetSize(ClipVolumeSizeProp::BackDepth, sectionBackDepth); clipobj->SetPreserveUp(true); EditElementHandle clipElement; clipobj->ToElement(clipElement, NULL, ISessionMgr::GetActiveDgnModelRefP()); clipElement.AddToModel(); IDrawCompBuilderOptionsPtr options = IDrawCompBuilder::CreateDrawCompBuilderOptions(); options->InitFromClipElement(clipElement); options->SetNamedViewRootModel(ISessionMgr::GetActiveDgnModelRefP()->AsDgnModelP()); options->SetCreateNamedViewIn2D(false); DrawCompStrategyHolder::GetStrategy()->AddOptions(options);
//DrawCompStrategyHolder::GetStrategy()->Initialize(); Thos opens the dialog, but how to do that without a d IDrawCompBuilder::BuildDrawComp(*options); // Nothing happens
Thomas Kurtz said:we use the following code
Please move your post to the Programming Forum. You can use the More|Move button to move a post.
Regards, Jon Summers LA Solutions