ElementTransformUtils.MirrorElements error when upgrading Revit API 2024

ElementTransformUtils.MirrorElements error when upgrading Revit API 2024

ptranU2KHX
Advocate Advocate
3,497 Views
34 Replies
Message 1 of 35

ElementTransformUtils.MirrorElements error when upgrading Revit API 2024

ptranU2KHX
Advocate
Advocate

Hi everyone,

I have a very simple project and I'd like to mirror them. Link to project if you'd like to download mirror 

ptranU2KHX_0-1683771354293.png

My code works fine with Revit API 2023 but not Revit API 2024.

ptranU2KHX_1-1683771455046.png

ptranU2KHX_2-1683771588085.png

Looking at the Revit API 2024 change, I see a section related to mirror thing.

ptranU2KHX_3-1683771615212.png

I try to use the check mirror posibility before executing but it always returns me true value.

ptranU2KHX_4-1683771669290.png

 

Please help. Thank you.

0 Likes
3,498 Views
34 Replies
Replies (34)
Message 21 of 35

jeremy_tammik
Alumni
Alumni

They reply: Unfortunately, for more complicated projects, I would recommend that the user wait until we expose a proper mirror project API. We cannot guarantee that there is enough API to do all the work we do internally that makes sure this complex mirroring operation succeeds. Sorry for the bad news.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 22 of 35

ptranU2KHX
Advocate
Advocate

Hi @jeremy_tammik 

Thank you for your information.

 

Besides, if you can, please let us know when a new mirror project API is released. This piece of information will help us in planning our development.

0 Likes
Message 23 of 35

jeremy_tammik
Alumni
Alumni

Sure. Beside that, I would also suggest that you keep an eye on the roadmap for future development directions and the What's New sections in the Revit SDK API documentation for enhancements and additions in each new release.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 24 of 35

jeremy_tammik
Alumni
Alumni

Dear Phat Tran,

 

Thank you for your patience.

 

The development team has made further progress with the analysis of this issue.

 

The ticket REVIT-207038 [MirrorElements fails although CanMirrorElements returns true] is closed as a duplicate.

 

We have filed an improvement task for implementing an API that would cover more complex workflows: REVIT-209138 [Implement Mirror elements in the API]. More work needs to be done that we need to plan on our side. Please make a note of this number for future reference.

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 25 of 35

dbrainard
Advocate
Advocate

Hello Jeremy,

 

I wanted to inquire about a status update on this issue. We did some testing after the Revit 2024.1 release but it did not seem to change the results of flipping the project using the ElementTransformUtils.MirrorElements method explained here. Also, I think we observed far more errors related to spot slops, dimensions and generic annotations when manually mirroring projects in 2024.0 then we're seeing now in Revit 2024.1 which is interesting. Nonetheless, in order for us to resolve our product issue we either need the TransformUtils to behave as they did in prior releases or we need some new dedicated calls to handle the Mirror Project operations.

 

I appreciate your time and Thank You! -Dave

 

Case Reference: REVIT-207038 [MirrorElements fails although CanMirrorElements returns true]

 

 

Message 26 of 35

jeremy_tammik
Alumni
Alumni

Dear Dave,

 

Thank you for your update and observations.

 

Please note that the currently active case reference for covering the more complex mirroring workflows is REVIT-209138 [Implement Mirror elements in the API].

 

I added your notes to that and asked the development team for an update on its current status.

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 27 of 35

jeremy_tammik
Alumni
Alumni

Phat Tran asked via the DAS portal: 

   

> Where can I find REVIT-209138 [Implement Mirror elements in the API] as mentioned in the Revit forum's post?

  

Thank you for your query via DAS, Autodesk Developer Advocacy and Support. Let's please continue the discussion in your original thread in the Revit API discussion forum.

  

The development ticket REVIT-209138 [Implement Mirror elements in the API] is for internal tracking purposes, and external access is not available, so you cannot find it yourself. Asking about the status here in this thread is the best way to communicate about it.

  

I just added Dave's notes to it and asked the development team for a status update. Thank you for your patience.

  

Best regards,

  

Jeremy

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 28 of 35

ptranU2KHX
Advocate
Advocate

Hi @jeremy_tammik 

 

I hope you are doing great. I want to ask for a status update about this ticket. 

Please help.

 

Thank you.

0 Likes
Message 29 of 35

jeremy_tammik
Alumni
Alumni

Dear Phat Tran

 

Thank you for the prompt. It seems that the ticket has not been processed at all yet. It is still unassigned.

 

It is marked as duplicated by another issue that has been successfully processed and closed, REVIT-207038 MirrorElements fails although CanMirrorElements returns true. That is obviously a much more trivial matter than your concern. Maybe this caused them to assume that no further action is required.

 

I added your prompt to it and requested a new review.

 

Thank you for your patience and sorry for the delay.

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 30 of 35

ptranU2KHX
Advocate
Advocate

Hi @jeremy_tammik 

 

Thank you for your information. Actually, we are talking about this ticket REVIT-209138 [Implement Mirror elements in the API].

 

You already told us REVIT-207038 [MirrorElements fails although CanMirrorElements returns true] was closed a while ago. 

 

Phat.

0 Likes
Message 31 of 35

jeremy_tammik
Alumni
Alumni

Dear Phat Tran

 

Yes, exactly. The ticket REVIT-209138 [Implement Mirror elements in the API] has not been processed at all yet. It is still unassigned.

 

It is marked as duplicated by another issue that has been successfully processed and closed, REVIT-207038 MirrorElements fails although CanMirrorElements returns true. That is obviously a much more trivial matter than your concern. Maybe this caused them to assume that no further action is required.

 

I added your prompt to it and requested a new review.

 

Thank you for your patience and sorry for the delay.

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 32 of 35

chmillerKR3SZ
Observer
Observer

Jeremy, Thank you for all your assistance on this issue.  Is there any update on this or whether this has been addressed in the 2025 release of Revit?

0 Likes
Message 33 of 35

bmeltonSST
Explorer
Explorer

Hi @jeremy_tammik ,

I am reaching out to see if there have been any updates to the status of this item (REVIT-209138 [Implement Mirror elements in the API] )? Especially anything that might be within the new Revit 2025. We haven't noticed anything in the documentation, however if there is something that we've missed, please let us know. Thank you in advance for any updates that you're able to provide!

Thanks,
Bryce

0 Likes
Message 34 of 35

jeremy_tammik
Alumni
Alumni

Dear Bryce,

  

I checked the status of the ticket REVIT-209138 [Implement Mirror elements in the API]. Unfortunately, it has not yet received significant attention. I also received no answer from the development team on my previous request for feedback. I have now re-prompted them and will let you know as soon as I hear back.

  

Sorry for the delay and thank you for your patience.

  

Best regards,

  

Jeremy

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 35 of 35

jeremy_tammik
Alumni
Alumni

... progress: promoted to "sprint candidate", at least...

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open