- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning,
In my ARX module for ACAD 2014-2017, I am trying to export the current view to an image file by using the method IAcadDocumentPtr::Export.
After creating a selection set, I call the function as follows:
IAcadDocumentPtr pActiveDoc; /* determination of active document omitted */
IAcadSelectionSetsPtr pSelectionSets = NULL; pActiveDoc->get_SelectionSets(&pSelectionSets);
IAcadSelectionSetPtr pSelectionSet = NULL; _bstr_t bstrtSelectSetName(L"SelectAll"); hr = pSelectionSets->Add(bstrtSelectSetName, &pSelectionSet);
hr = pActiveDoc->Export(bstrThumbnailFullFileName, _T("bmp"), pSelectionSet);
hr = pSelectionSet->Delete();
(I omitted error handling and NULL checks in favour of readability.)
While executing pActiveDoc->Export, AutoCAD prompts me for a selection anyways: "Select objects or <all objects and viewports>:".
Do I need to suppress this user prompt explicitly?
If so, then why do I have to pass a selection set to the method in the first place?
I also read this article and tried
hr = pActiveDoc->get_ActiveSelectionSet(&pSelectionSet);
beforehand, but the result was the same.
It would be great if someone could help me with that.
Have a nice day,
Bettina
CIDEON
take the value perspective.
Solved! Go to Solution.