How to create in place models with API code(as Extrusion)

How to create in place models with API code(as Extrusion)

yz8023yz
Participant Participant
585 Views
3 Replies
Message 1 of 4

How to create in place models with API code(as Extrusion)

yz8023yz
Participant
Participant

I found with GeometryCreationUtilities CreateExtrusionGeometry () 、

DirectShape DirectShape = DirectShape. The CreateElement method ()

can't in the edit type。I also didn't find a way to create in place models models in the Revit API

586 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

Yes. I believe that CreateExtrusionGeometry can only be used in a family definition, in the context of an RFA. I also believe that in-place models are not supported by the Revit API. You may find a corresponding wish list item in the Revit Idea Station. If you wish to generate geometry within a Revit project without resorting to the complexity of a family definition and a family instance placement, the direct shape is the way to go. Here are some examples:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

yz8023yz
Participant
Participant

🙂

0 Likes
Message 4 of 4

scgq425
Advocate
Advocate

@yz8023yz : like as @jeremy_tammik  , is just can edit in family editor , if u want to create youself directShape , can use api to create solid and save a family then load and place it in ur project

LanHui Xu 徐兰辉
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

Blog
LinkedIn
Revit/CAD Development | Steel Product Manager

EESignature

0 Likes