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: 

Is there a way to adjust a witness line gap?

20 REPLIES 20
Reply
Message 1 of 21
Anonymous
2403 Views, 20 Replies

Is there a way to adjust a witness line gap?

 

 

 

Hi.

I'm sorry to post duplicate question, but I can not solve and try to upload again.

 

I want to adjust dimension's end point.

I created dimensions as follows. 

 

ReferenceArray refArray = new ReferenceArray();
refArray.Append(startLine.Reference);
refArray.Append(endLine.Reference);

...

var line = Line.CreateBound(point1, point2); Dimension dimension = doc.Create.NewDimension(view, line, refArray);

image.png 

 

and I want the end point to be automatically adjusted using api. (like red line)

image.png

 

like this

image.png

I have found on the Internet and used Dimension.Segments, but the number of values was 0.

 

is there a way? I need help.

 

thank you!

20 REPLIES 20
Message 21 of 21
matthew_conwayN7C2G
in reply to: Anonymous

@jeremytammik I'm assuming this isn't supported in the API? I've used RevitLookUp before and after I've manually adjusted my Witness Gap without any changes (as others have pointed out, the available parameters are Type parameters). Please let me know so that I can inform our team as to whether or not it is possible.

Thanks!

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

Post to forums  

Autodesk Customer Advisory Groups


Rail Community