Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

measure distance between 2 models and transform them through the api

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
sanderobdeijn
754 Views, 2 Replies

measure distance between 2 models and transform them through the api

I have 2 models that don't have the same origin. I have placed an origin object in each model. Is it possible to get the location of both object and move them to the same place through the api?

 

Kind regards,

 

Sander

2 REPLIES 2
Message 2 of 3

Hi,

there is not a conception "location" with an object in Navisworks. What you can get is the boundingbox of the object geometry. And the boundingbox has center point, maxpoint,minpoint which may help you to align the object with the others.

In another word, if you want to align the center point of boundingbox of two objects to origin, you can calculate a transformation matrix by the two points and origin, and transform them by the matrix.

Hope this makes sense.
Message 3 of 3
59002605
in reply to: xiaodong_liang

hi, when I want to measure distance between 2models, I want to use the lock feature to maitain the direction through the api,which method should I used.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report