Access Wall Faces

Access Wall Faces

caltineller
Contributor Contributor
3,796 Views
4 Replies
Message 1 of 5

Access Wall Faces

caltineller
Contributor
Contributor

I am pretty new to API. Basically I find other codes and try to modify them to my needs:) What I try to do is to access wall core faces, namely core face interior and core face exterior. 

 

HostObjectUtils.GetSideFaces(element, ShellLayerType.Exterior) This is only accessing the very outside face of the wall. How do I access the core layers?

0 Likes
3,797 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Dear,

 

You mean structure of wall ? Please see image....

 

..1.png

 

to find this you can use

 

CompoundStructure cs = (el as WallType).GetCompoundStructure();
if (cs != null && cs.GetLayers().Count > count)
{
foreach (CompoundStructureLayer csl incs.GetLayers())
{

}
}

0 Likes
Message 3 of 5

caltineller
Contributor
Contributor

Yes, but this is not I want. I'm trying to give dimensions to Core Boundarys. From Core to Core. Counting will not work for me, because I have many types of walls in my project. So I need a direct access to this Core definition. 

 

In the example picture you can see how I want my dimension to look.

 

0 Likes
Message 4 of 5

matthew_taylor
Advisor
Advisor

Take a look at the notes on the CompoundStructure class. It looks like you can get the core details.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 5 of 5

Annonymous24
Explorer
Explorer

have you found any solution for this?

0 Likes