Set the distance between pipes

Set the distance between pipes

Josh.Thomason
Enthusiast Enthusiast
708 Views
2 Replies
Message 1 of 3

Set the distance between pipes

Josh.Thomason
Enthusiast
Enthusiast

Through my research I've that I can get the distance between elements like with the "DistanceTo" method. 

 

What I want to do is select 2 or more parallel pipes and change the distance between them with a simple click, rather then placing a dimension and changing the values one by one. Eventually I would build on this to create rules based on pipe size and insulation.  I know I can get the distance from one pipe to another. I'm just not sure if I can get the distance and then change it.

 

Would I need to programmatically place a dimension between the selected pipes and then have the values changed to whatever the user has them set to(I have a textbox to get the value)? Maybe then have the dimension deleted upon completion.

 

Thanks for any input. You all have been very helpful.

0 Likes
Accepted solutions (1)
709 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

> Would I need to programmatically place a dimension between the selected pipes and then have the values changed to whatever the user has them set to(I have a textbox to get the value)? 

  

Yes.

  

The API basically just adds automation possibilities to reproduce and automate the functionality provided by the manual user interface, so you would use it to programmatically repeat the same steps you perform in the UI.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

Josh.Thomason
Enthusiast
Enthusiast

Thank you!

0 Likes