handling element before placement.

handling element before placement.

Anonymous
Not applicable
366 Views
1 Reply
Message 1 of 2

handling element before placement.

Anonymous
Not applicable

can i get element type before placement?

 

i expect below steps.

 

1. execute externcal command that shows modeless dialog.
2. execute draw pipe command.(waitting click two point.)
3. click the button in modeless dialog.
4. get pipe type information/parameter to draw.
5. change the pipe diameter parameter in modeless dialog.
6. pick two point, applied diameter pipe be created.

 

how can i solve this work?

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

jeremytammik
Autodesk
Autodesk

You can set the default type before actually placing the instance:

 

http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-7E3AC667-86B1-4DDE-8812-C776C8929CF5

 

Revit 2015 introduced a Default Type API for that very purpose:

 

http://www.thebuildingcoder.typepad.com/blog/2014/04/whats-new-in-the-revit-2015-api.html#3.02

 

Cheers,

 

Jeremy



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

0 Likes