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
Solved! Go to Solution.
Solved by KE-engineering. Go to Solution.
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"
It took me some time...
StructuralFramingUtils.DisallowJoinAtEnd(fi2, 0)
But this did the trick.
Problem solved.
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,
Can't find what you're looking for? Ask the community or share your knowledge.