Navisworks API: Point Line Measurement, extract intermediate coordinates\points

Navisworks API: Point Line Measurement, extract intermediate coordinates\points

shaungsaggers
Explorer Explorer
612 Views
2 Replies
Message 1 of 3

Navisworks API: Point Line Measurement, extract intermediate coordinates\points

shaungsaggers
Explorer
Explorer

Does anyone know if it's possible, using the Navisworks API, to get the intermediate coordinates for the points used to take a Point Line Measurement?

 

I have created a plugin that returns the Start and End coordinates of the current measurement, and can export these to a text file, however I want to get ALL of the points along the measured Point Line.

 

My alternative would be to learn how to create a new tool via the API and capture the points as they are picked, but that sounds like a lot more work just to learn how to create the tool, and I can't justify that much overhead for this task, so I'd prefer to find a way to extract the points picked using the built in Point Line Measurement tool.

 

0 Likes
613 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @shaungsaggers ,

 

You're question doesn't really make sense. There are an infinite number of points along a line...

Or are you wanting to get all the points in a multi-point measurement? If so, I think you can listen to the event and just capture them that way (i.e. the end point will keep changing)


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

shaungsaggers
Explorer
Explorer

It probably makes more sense if you're familiar with the measurement tools in Navisworks. In the software (as well as the classes available to the API), a "Point Line" measurement measures the cumulative length along a path defined by a series of specified points.

 

It's those intermediate points that I was hoping to be able to get AFTER the measurement has been made.

 

I've since solved it, by getting the points as they are picked. Not quite the way I was hoping it would work, but it'll do the

job.

0 Likes