Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Any corresponding API about BREAKING UP a Stacked Wall?

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
comic3344
1619 Views, 4 Replies

Any corresponding API about BREAKING UP a Stacked Wall?

When right click a stacked wall, click the BREAK UP button in the  menu, the stacked wall will be breaked up. 

 

It will be changed into two independent  walls. Now, I want to do it with batch operation.

 

Is there any corresponding API about BREAKING UP a Stacked Wall?

 

Thank you ! 

Tags (1)
4 REPLIES 4
Message 2 of 5
nagyidaipeter
in reply to: comic3344

Maybe you can try to do it by getting the command id and executing it.

Here's an article from Jeremy about the topic.

Message 3 of 5
comic3344
in reply to: nagyidaipeter

WOW, IT's COOOOOL~~

 

Thank you very much !!!   O(∩_∩)O~~

Message 4 of 5
nagyidaipeter
in reply to: comic3344

Awesome, glad you got it working.

Message 5 of 5
ciganek
in reply to: nagyidaipeter

I'd be interested in knowing how you got it to work - 

 

var id = RevitCommandId.LookupCommandId("ID_BREAK_UP_WALL");

 

uiapp.PostCommand(id); throws an argument exception as it's not postable.

 

However, after giving up on this route, I stumbled across a simple solution that seems to work:

 

ElementTransformUtils.CopyElements(doc, wall.GetStackedWallMemberIds(), XYZ.Zero); 

 

- you'll need to delete the original wall to avoid an overlapping elements warning.

 

Peter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community