"PI" - Pipe Command

"PI" - Pipe Command

nitinjambhale
Advocate Advocate
1,453 Views
6 Replies
Message 1 of 7

"PI" - Pipe Command

nitinjambhale
Advocate
Advocate

Hello Guys,

How can i forcefully select required pipe in mouse pointer by pressing "PI" from code.?  

 

Any suggestion Appreciable.

 

Regards,

-Nitin.

0 Likes
Accepted solutions (1)
1,454 Views
6 Replies
Replies (6)
Message 2 of 7

Joe.Ye
Alumni
Alumni

 

HI Chris,

 

Not sure I got your idea.

Please clarify the question in detail.

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 3 of 7

nitinjambhale
Advocate
Advocate

ok,

Here i m trying one more time.

There is shortcut command 'PI' to automatically get Pipe to draw in mouse pointer in Revit Mep 2013.

 

So i have designed one win app that shows various pipe images that are real pipes in revit. After clicking one of the pipe image and using 'PI' functionality  i m able to get pipe in mouse pointer .

 

But revit automatically taking random pipe in mouse pointer instead of what i clicked.

 

Is there any way to do this?

 

Thanks & Regards,

-Nitin.

 

0 Likes
Message 4 of 7

Joe.Ye
Alumni
Alumni
Accepted solution

 

HI Nitin,

 

Hope Jeremy's blog post can help  you to change the current pipe type.

 

http://thebuildingcoder.typepad.com/blog/2010/11/launching-a-revit-command.html



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 5 of 7

nitinjambhale
Advocate
Advocate

Thanks for the reply.

I will sure try it.

 

 

Regards,

-Nitin.

0 Likes
Message 6 of 7

nitinjambhale
Advocate
Advocate

Hey,

Its working like magic.

 

Thanks Joe & Jeremey.

 

Regards,

-Nitin.

0 Likes
Message 7 of 7

Anonymous
Not applicable

Nitin,

  Would it be possible for you post the code for this?  I'm trying to do the same thing for the "duct" command.

thanks

0 Likes