Retrieve DividedPath points

Retrieve DividedPath points

1368026189
Enthusiast Enthusiast
571 Views
3 Replies
Message 1 of 4

Retrieve DividedPath points

1368026189
Enthusiast
Enthusiast

Hello all,

I am trying to access the DividedPath's points using the Revit API with no luck.

 

Options opts = divPath.Document.Application.Create.NewGeometryOptions();
opts.ComputeReferences = true;
opts.View = divPath.Document.ActiveView;
GeometryElement geoele = divPath.get_Geometry(opts);

but  geoele return nothing back

 

How can this be done using the API?  I can get the info from revitLookup so there must be some way

 

Thank you very much in advance.

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

jeremytammik
Autodesk
Autodesk
Accepted solution

Congratulations on determining that you can access the required information using RevitLookup.

 

There is your answer, right there.

 

RevitLookup is based entirely on the Revit API:

 

https://github.com/jeremytammik/RevitLookup

 

Simply debug it to see how the information you seek is accessed.

 

Best regards,

 

Jeremy

 



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

Message 3 of 4

1368026189
Enthusiast
Enthusiast

Hi Jeremy

I tried but it does not work, in the Snoop Objects Window, The Field and Value DataList has no Value while debug it

0 Likes
Message 4 of 4

1368026189
Enthusiast
Enthusiast

Thanks Jeremy

I figured that I need a doc.Regenerate() before my operation

0 Likes