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: 

How can i get the length of a modelitem

1 REPLY 1
SOLVED
Reply
Message 1 of 2
sd1036770
703 Views, 1 Reply

How can i get the length of a modelitem

Hello,I hava some questions to ask

1.just like a pipe,can i get the length,radius,etc from api? or i can only get them from the properties?

2.can i get the random point on the modelitem?i want the coordination

3.here is an example,i have a pipe crosses a wall,and i want to calculate the distance from the edge to the wall ,can api do this?

|-------------------------------------------------|

|                            |                                |

|                           ?                                |

|              |---------------------|                   |

|              |                          |                   |

|              |           pipe       |                   |

|              |                          |                   |

|              |---------------------|                   |

|                             |                               |

|                            ?              wall          |

|                             |                               |

|-------------------------------------------------|

 

PS:is subscription center broken? i can't see the [api support] radio button,it is disappear

1 REPLY 1
Message 2 of 2
xiaodong_liang
in reply to: sd1036770

Hi,

 

yes, subscription site was problematic these two days. Sorry for any inconvenience. However I’d still encourage you log case here (forum) worldwide. The global peers would offer the hand and share valuable comments.

 

about your questions, it seems I have replied you no API to know this is a pipe, that is a wall from geometry perspective. So it depends on if there is some properties attached with the model item. i.e. the assumption is the properties are available when the model is exported from the original CAD software. Within these properties, you would be able to get info about radius, length etc. In addition, I do not see a way to measure by API.

 

As to  the random point on the modelitem, this could be achieved by GenerateSimplePrimitives  of COM API. This blog below tells more.

http://adndevblog.typepad.com/aec/2012/05/get-primitive-from-solid-of-navisworks.html

 

 

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

Post to forums  

Rail Community


Autodesk Design & Make Report