« Sheet Manager and Copy Parameters | Main | Happy New Year, Ribbon Spying and UI Automation »

December 24, 2010

Comments

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.

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.

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.

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.

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.

Dear Kamalanathan,

I am looking forward to your ADN DevHelp Online query then.

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource