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: 

What is the ndx in COM Collections

1 REPLY 1
Reply
Message 1 of 2
potapczuk
541 Views, 1 Reply

What is the ndx in COM Collections

The index to access objects in COM collections, like InwClashTestsColl, is a variable called ndx. I could not find a reference for this index, tried 0, 1, 2... and also the nwID of the objects, but none worked.

 

 

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

Hi potapczuk,

 

ndx is just a long for index in a collection. I tried with the code snippet below based on SDK sample AUTO_04, it works well.It means the collection is 1 based.

 

   ' Run all stored clash test
    m_clash.RunAllTests
   
    Dim oMyTest As InwOclClashTest
    Set oMyTest = m_clash.Tests(1)


 

Best regards,

 
autodesk_logo_signature.png

Xiaodong Liang

Developer Consultant

Autodesk Developer Technical Services

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report