Emulate Model-in-place command?

Emulate Model-in-place command?

Anonymous
Not applicable
801 Views
3 Replies
Message 1 of 4

Emulate Model-in-place command?

Anonymous
Not applicable

Hey,

I am relatively new to revit and I want know if there is any way to emulate the model-in-place command from the component command of revit programmatically?

 

I don't want to use the postable command enumeration. but i am struggling to figure out what steps i should be taking creating a uniqe component.

I wish to place this on a slab edge and do not know weither this is possible since most elements creation process are done through a create function derived from their classes themselves.

Very confused.. thank you if there is any suggestions on how i might achieve this.

 

cheers

 

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

Anonymous
Not applicable

I originally planned to use the Sweep and Sketch classes to generate the object its just a matter of naming and categorizing the object before hand

 

0 Likes
Message 3 of 4

Revitalizer
Advisor
Advisor
Accepted solution

Hi Mendo123,

 

you may have a look at the DirectShape class.

This is the equivalent to in-place-modeling, although there are some differences.

For example, once created, you cannot edit such an element in the GUI afterwards.

Nonetheless, you can use all geometric operations such as sweeping, extruding etc.

What you do not have is a sketch element, and as I stated above, since the resulting element is read-only, there is no edit-sketch-mode.

 

Since Revit 2016, you can use it in both project and family context.

 

 

Best regards,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 4 of 4

Anonymous
Not applicable
0 Likes