« PlanTopology Class | Main | Barcelona Questions »

January 14, 2009

Comments

Thanks alot Jeremy,

Using an iteration over the elements to find the .rvt one, and then using the category of that in View.SetVisibility works wonders.

Thanks once again for your help and another informative post.

Hi Rod,

Great, I am so glad it worked, congratulations!

Cheers, Jeremy

Is there any way in the Revit API to modify a view's annotation visibility wholesale? I know that you can toggle the visibility of individual categories for a view, but is there a way to duplicate the "Show annotated categories in this view" functionality outside of the UI?

Dear Justin,

There is currently no such API function to show or hide all annotated categories in a given view. You might collect all the categories that you consider to be annotative and toggle their visibility individually. Unfortunately, there is no API method to indicate whether a given category is of annotation or model type either.

Cheers, Jeremy.

Hi Jeremy is there a api function now on 2015 to show or hide the Imported Categories in a view through the Api?

Thank you.

Dear Fm2,

I don't really know exactly what you mean by 'imported categories'.

Do you mean categories that are generated by importing a DWG file, for example?

Is this something you can do in the user interface?

In any case, it sounds as if it should be pretty simple, since you have various methods on the View class to hide and isolate elements and categories. Therefore, if you can identify the categories you wish to hide, it should be possible to call the hide method on them as well.

Cheers, Jeremy.

Thank Jeremy for your reply and your blog :)

yes i can do it using the visibility/Graphic overrides dialog.

using above example to check/uncheck the visibility on every dwg file. but if the "Show Imported Categories in this view" box is uncheck it will not be visible on the view.

but i cant find a way to check "Show Imported Categories in this view" check box using api.

Thanks

I'm having the same problem there is a read only Boolean value "AreImportCategoriesHidden" in the View class so I can see if a user has un-checked the "Show Imported Categories in this view" box however there doesn't seem to be any way around it.

If anyone can see something I've missed it would be great.

Thanks

Just answered my own question, the "AreImportCategoriesHidden" value is now settable in 2015 which solves this problem.

Dear James,

Cool. Congratulations.

Thank you for letting us know!

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