Set Layout as fixed number for Triangular pile cap

Set Layout as fixed number for Triangular pile cap

hossam.amer666
Enthusiast Enthusiast
997 Views
8 Replies
Message 1 of 9

Set Layout as fixed number for Triangular pile cap

hossam.amer666
Enthusiast
Enthusiast

Hello All,

I'm trying to reinforce pule cap using revit api. I managed to create rebar set for rectangular pile cap using rebar.GetShapeDrivenAccessor().SetLayoutAsFixedNumber but I can't do that with triangular pile cap. 

I know about varying rebar set in revit but I can't do it in revit api.

 

i searched alot but I found nothing so any kind of help would be great  

0 Likes
Accepted solutions (2)
998 Views
8 Replies
Replies (8)
Message 2 of 9

jeremy_tammik
Alumni
Alumni

I asked the development team for you...

  

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

Organon
Advisor
Advisor
Accepted solution

@hossam.amer666,

 

Hi,

 

Try this: 

rebar.DistributionType = DistributionType.VaryingLength;

 

Regards,


Arquitectura | Análisis CAD & BIM | Diseño Paramétrico | Programación
BIM-METADATA | LinkedIn | YouTube
0 Likes
Message 4 of 9

hossam.amerUY9KR
Participant
Participant

I'm still waiting for your answer, jeremy

0 Likes
Message 5 of 9

hossam.amer666
Enthusiast
Enthusiast

It worked but as shown. do toy suggest any way to handle this ?

distribution+.PNG

0 Likes
Message 6 of 9

jeremy_tammik
Alumni
Alumni

I am also still waiting for an answer from the development team. I re-prompted them now.

  

Meanwhile, I am assuming that you can solve this manually in the end user interface. Can you confirm and explain how, please? Thank you!

 

If not, the API will probably not enable it either.

 

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

Organon
Advisor
Advisor

@hossam.amer666,

 

In this case, you can create 2 rebars sets:

distribution+.PNG

Regards,


Arquitectura | Análisis CAD & BIM | Diseño Paramétrico | Programación
BIM-METADATA | LinkedIn | YouTube
0 Likes
Message 8 of 9

hossam.amerUY9KR
Participant
Participant

It could be done manually by creating free form rebar and distribution type is surface

0 Likes
Message 9 of 9

jeremy_tammik
Alumni
Alumni
Accepted solution

The development team say:

 

There's no way to reinforce the pile in his picture with only one varying shape driven rebar set because the start/end bar handles can be constrained to only one surface -- in his picture, the angled one.

 
To create free form rebar from the API you have 2 options:

 

1) Just provide a list of curves, a valid host and a bar type. This will create a Free form rebar that it will be inert, not reacting to any host modifications -- it won't have constraints.

 

2) In addition to the valid host and the bar type, provide a GUID to an implementation of IRebarUpdateServer. The developer will be responsible to basically create its own logic to: create rebar handles, constrain them and generate rebar curves based on the regeneration of the constraints references.

 

I hope this helps.

  

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