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: 

"PI" - Pipe Command

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
nitinjambhale
766 Views, 6 Replies

"PI" - Pipe Command

Hello Guys,

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

 

Any suggestion Appreciable.

 

Regards,

-Nitin.

6 REPLIES 6
Message 2 of 7
Joe.Ye
in reply to: nitinjambhale

 

HI Chris,

 

Not sure I got your idea.

Please clarify the question in detail.

 



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

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.

 

Message 4 of 7
Joe.Ye
in reply to: nitinjambhale

 

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
Message 5 of 7
nitinjambhale
in reply to: Joe.Ye

Thanks for the reply.

I will sure try it.

 

 

Regards,

-Nitin.

Message 6 of 7
nitinjambhale
in reply to: Joe.Ye

Hey,

Its working like magic.

 

Thanks Joe & Jeremey.

 

Regards,

-Nitin.

Message 7 of 7
rridlen
in reply to: nitinjambhale

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

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community