Rebar creation issue in some API-created objects

Rebar creation issue in some API-created objects

Anonymous
Not applicable
362 Views
1 Reply
Message 1 of 2

Rebar creation issue in some API-created objects

Anonymous
Not applicable

Hi, I'm working with Revit API to create rebar objects.

I've attached a .rvt file that has two beams, identical in geometry but one created directly by hand and the other created programmatically by API code.

I've used the normal creation method below to create the beam, in Autodesk.Revit.Creation.

 

 

public FamilyInstance NewFamilyInstance(Curve curve, FamilySymbol symbol, Level level, StructuralType structuralType);

 

 

As you can see in the sample file, rebar could not be correctly placed in the programmatically-created beam.

When I tried to place rebar in the beam, it would pop out to whole other places.

Some of other beams created in the same programmatic way don't have the problem, so I'm wondering about the reason.

Please help!

0 Likes
363 Views
1 Reply
Reply (1)
Message 2 of 2

Mustafa.Salaheldin
Collaborator
Collaborator

The solution exists in the Warning:

"Beam or Brace is slightly off axis and may cause inaccuracies."

 

If you align the beam correctly it will accept the rebaring.

If you can share the code I can help.


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

0 Likes