Assembly Edit Mode

Assembly Edit Mode

thannaingoo.api
Advocate Advocate
733 Views
1 Reply
Message 1 of 2

Assembly Edit Mode

thannaingoo.api
Advocate
Advocate

Dear All,

 

Is there any way to check the assembly edit mode in current view?

I am checking it as shown below. It is working but I would like to know whether it is correct or not.

 

Regards,

Naing Oo

Autodesk.Windows.RibbonControl r = Autodesk.Windows.ComponentManager.Ribbon;
                            bool IsAssemblyEditMode = true;

                            foreach (Autodesk.Windows.RibbonTab t in r.Tabs)
                            {
                                if(t.Title == "Modify | Assemblies")
                                {
                                    IsAssemblyEditMode = false;
                                    break;
                                }
                            }  

AssembliesView.PNG

 

0 Likes
Accepted solutions (1)
734 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

This question is outside the scope of the Revit API.

 

There is no correct or incorrect.

  

There is no guarantee that it does what you expect. 

 

You use this at your own risk, and carry all responsibility for the consequences.

 

If it works for you, then fine.

  

Test it thoroughly!

  

Good luck!

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder