RebarConstraint,set distance and plane

RebarConstraint,set distance and plane

Anonymous
Not applicable
522 Views
3 Replies
Message 1 of 4

RebarConstraint,set distance and plane

Anonymous
Not applicable

Hi everyone!

I'm trying to create rebar form rebarsharp.When I draw model by myself without code,I use rebar constraint to make sure the rebar is the right dimension and at the right place.However,I can not set rebar constraint by code,I tried to use SetDistanceToTargetHostFace Method,but it seemed not work.Is there any way to control it? 

 QQ截图20151011093616.jpg

0 Likes
523 Views
3 Replies
Replies (3)
Message 2 of 4

augusto.goncalves
Alumni
Alumni
Sorry I don't have a "ready-to-use" sample, but please make sure the conditions are ok:

From the Revit help file:

RebarConstraint.SetDistanceToTargetHostFace Method
Sets the distance from the RebarConstrainedHandle to the target Host Element surface. The RebarConstraintType of the RebarConstraint must be 'FixedDistanceToHostFace.'
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi,I meet the same question .Do you solve the problem ?

can you get the code of you ? thanks very much!

regards.

0 Likes
Message 4 of 4

190027864
Participant
Participant
0 Likes