Applications Google
Menu principal

Post a Comment On: CAD Application Development

"An oddity with Drafting View mirroring"

6 Comments -

1 – 6 of 6
Blogger Jason G said...

Matt, where did you add the "if (elem.Category == null) continue;" to your script.

10:26 AM

Blogger Matt Mason said...

Jason,
Sorry I should have been more specific. Inside the for loop, right above the "if" test for whether Revit thinks it can mirror it. So it looks like:

foreach (Element elem in elems)
{
if (elem.Category == null) continue;
if (ElementTransformUtils.CanMirrorElement(uiDoc.Document, elem.Id) == false) continue;
toMirror.Add(elem.Id);}

12:20 PM

Blogger Jason G said...

matt,
Next question could the code be written to mirror multile views at once.

11:44 PM

Blogger Matt Mason said...

Sure. Standard Revit API.

11:46 PM

Blogger Jason G said...

Is there a way to iterate thru the drafting views in a project, and mirror each one of them. I really dont want to open each drafting views one at a time and then run the addin.

3:17 PM

Blogger Matt Mason said...

Sure - pretty easy Revit API stuff to do a collector and iterate thru.

3:38 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.