Calling Trim

Calling Trim

Anonymous
Not applicable
345 Views
1 Reply
Message 1 of 2

Calling Trim

Anonymous
Not applicable

Hi,

 

How do I call Trim command programmatically passing two pipes or two ducts.

 

Thanks and Regards

Sanjay Pandey

0 Likes
346 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Sanjay Pandey,

 

The only official way that I am aware of to programmatically launch built-in Revit commands is via PostCommand:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.3

 

It does not work for all commands, though, so you will have to do some research to see whether it can be used in your case.

 

Also please note that it launches the built-in Revit command exactly as it is defined by Revit for the user interface.

 

If it needs input, it will prompt the user for it.

 

There is currently no way to define the user input programmatically.

 

I hope this helps.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes