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: 

disallow beam join

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
KE-engineering
985 Views, 3 Replies

disallow beam join

Hi,
I'm working on a add-in (vb.net) to insert precast concrete beams.
We don't want this beams to join at the end. Via the UI we can now disallow beam joins by right clicking. This works fine...as a work around.
I also found that this is possible in API using the DisallowJoinAtEnd method in the StructuralFramingUtils.
Only problem is that this method only works for beams that are joined (visualy melted together).
For beams that aren't melted together I need to set the "disallow join" property as well. Otherwise my created beam family reacts on the beam nearby.
It seems like there is a difference between real element joins and location line joins.

When I search for joins between 2 beams using ElementsAtJoin(0) I get to see there are joins.
When I search for joins between the same 2 beams using AreElementsJoined no joins are found.
Only when I join the beams by using the join command in UI, joins are found using AreElementsJoined.
I hope somebody can help me to get rid of this "allow join" behaviour...

Regards,
Dennis

Tags (1)
3 REPLIES 3
Message 2 of 4

Just found out that:

Dim bCurve As LocationCurve = elem.Location
bCurve.JoinType(1) = JoinType.None

 

fires an error "Unable to set join type on the current element"

Message 3 of 4

It took me some time...

 

StructuralFramingUtils.DisallowJoinAtEnd(fi2, 0)

 

But this did the trick.

Problem solved.

Message 4 of 4

Hi,

 

I'm always happy when I see developers answer their own questions. Sometimes it is just better to write them down. Great job! 

 

Cheers,

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog

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

Post to forums  

Rail Community


Autodesk Design & Make Report