Things have been a bit hectic the last couple of days, getting the most urgent things done before closing for the week of rest. One of the nicest and calmest events these past days was the 'DevTech Switzerland Xmas Fondue' with Kean on Wednesday, and the discussion of his wonderful and instructive WPF Transformer application for interactively understanding and experimenting with points, vectors, and 3D matrix transformations in AutoCAD.
Anyway, now I am ready to settle down into Christmas, some time with my grown-up kids, and a week of rest and no blogging.
I wish you a Very Merry Christmas and a Happy New Year!
Here are some fitting pictures by Partha Sarkar from various conference locations:
Many thanks to Partha for these and all the others he made during the tour!
I will be away until January 3, 2011.
Thank you very much for all your inspiring interest and appreciation!
I am looking forward to exploring and sharing many new exciting Revit API topics and projects with you in 2011!
Dear Jeremy,
Can you please help me to create a new ViewSheetSet object.
My Intention is to create a new ViewSheetSet, which will be displayed in the Export DWG dialog.
Posted by: Account Deleted | December 30, 2010 at 23:49
Dear Kamalanathan,
The only options I see to access view sheet sets are to use
foreach (ViewSheetSet viewSheetSet in m_doc.ViewSheetSets) ...
or
ViewSheetSet newSheetSet = printMan.ViewSheetSetting.CurrentViewSheetSet;
both of which access existing view sheet sets only.
Cheers and Happy New Year, Jeremy.
Posted by: Jeremy Tammik | January 01, 2011 at 17:16
Dear Jeremy,
Thanks a lot for the reply.
Happy New Year!
Sorry! I am having few more doubts.
Doubt 1:
I tried to ViewSheetSetting::SaveAs with Select PrintRange. But it always through the exception. Can you please tell me that whether it will help me to make a clone of ViewSheetSet.
Doubt 2:
I want to display the preview of selected view. I tried with ExportImage function. But I am getting flickering(or Repaint - with Current view cleared in Project preview Area). Please clarify that is it possible to generate the preview of View without using ExportImage? If the answer is No then Please clarify that is it possible to prevent the Flickering in Project preview.
Posted by: Kamalanathan | January 01, 2011 at 22:44
Dear Kamalanathan,
1. As said above, I am not aware of any possibility at all in the Revit API to create a clone of a ViewSheetSet.
2. I am not aware of the flickering you describe. If you are an ADN member, please submit a DevHelp Online case so that we can explore this further. Actually, it would be useful even if you are not, so we can examine and fix this issue.
You can create a preview of your own, of course, using the Windows API to take a snapshot of the current screen or a specific window, although it is obviously more work than using the built-in Revit API method, and of course we are interested in getting this method to fulfill all your needs properly and reliably.
I googled for the search keys ".net screen snapshot", and the many hits I received all included screen snapshot utility source code.
Cheers, Jeremy.
Posted by: Jeremy Tammik | January 02, 2011 at 09:45
Dear Jeremy,
Sorry! My reply is late.
Since We are ADN member, I will post in DevHelp Online.
I think, If we use the Snapshot utilities(in .Net or VC++), In case of any window exists on our view, then the window existing area cannot be retrieved.
Anyway I will post it in ADN soon.
Posted by: kamalanathan | January 13, 2011 at 07:00
Dear Kamalanathan,
I am looking forward to your ADN DevHelp Online query then.
Cheers, Jeremy.
Posted by: Jeremy Tammik | January 13, 2011 at 10:10