Get associated by SketchPlane object

Kisli89
Enthusiast

Get associated by SketchPlane object

Kisli89
Enthusiast
Enthusiast

Hello! I want to get the object from which SketchPlane was created. For example, a level, or elements based on the face of which SketchPlane was created.
Now I have to do a lot of extra work to achieve this.
Is there a simpler way?

0 Likes
Reply
Accepted solutions (2)
1,075 Views
5 Replies
Replies (5)

jeremytammik
Autodesk
Autodesk
Accepted solution

You say (i) you do a lot of extra work to achieve this and (ii) is there a simpler way?

 

Please tell us what you do to achieve (i).

 

Otherwise, we are obviously all unable to answer (ii).

 



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

0 Likes

Kisli89
Enthusiast
Enthusiast

For example i have Extrusion (ext1) that as skechPlane use PlanarFace of another Extrusion(ext2). 
I need find ext2. For that i need get Plane of ScetchPlane, than create BoundingBoxIntersection filter (according plane parameters), and then i need get from filtered elements what elements depending elements contains this SketchPlane. 

I find it hard to believe that there is no easy way to find the object on the basis of which ScketchPlane was created😔



0 Likes

jeremytammik
Autodesk
Autodesk
Accepted solution

I would recommend searching for a corresponding wish list for this in the Revit Idea Station, and adding your comments there, or creating a new entry, if there is none already present there yet for the suggested functionality:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302

 

Tag it as an API wish:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent/label-name/api

 

Ensure it gets as many votes as possible to underline its importance to you and the rest of the developer community.

 

The Revit Idea Station is currently one of the main driving input forces for Revit API enhancements.

 

The Revit development team look there. Your comment here in the discussion forum might be overlooked.

 

Thank you!

 



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

0 Likes

RPTHOMAS108
Mentor
Mentor

An extrusion in the family environment has a sketch a sketch has a sketch plane.

 

If you can't find the sketch of an object because the type of class doesn't have such a property then you can use Element.GetDependentElements and that will list the sketch. 

 

So perhaps you are not doing things the most direct way possible or I'm not fully understanding what you are trying to do? These kinds of things are best answered by investigating with RevitLookup.

0 Likes

Kisli89
Enthusiast
Enthusiast

Hello, thanks for reply! 
I can find sketchPlane. But this SketchPlan can have dependeties from face of another Geometry (Level, Reference plane, or surface of another element). A can't easy find this element via revit API. 

0 Likes