I've successfully added properties to objects (paths) with basicly using following code
:
------------------------------------------------------------------------------------------------------------------------
Dim propn As InwGUIPropertyNode2
Dim prop1 As InwOaProperty
'Dim prop2 As InwOaProperty
propn = m_state.GetGUIPropertyNode(_path, False)
Dim propvec As InwOaPropertyVec
propvec = m_state.ObjectFactory(nwEObjectType.eObjectType_nwOaPropertyVec)
prop1 = m_state.ObjectFactory(nwEObjectType.eObjectType_nwOaProperty)
prop1.name = b(i).ToString
prop1.UserName = b(i).ToString
propn.SetUserDefined(0, "uName", "iName", propvec)
--------------------------------------------------------------------------------------------------
I'm able to find objects via Navisworks GUI - but not by using the API!
(setting a findspec/ findcondition etc.)
Is this a bug or a feature?
Thanks for any help.
Marcus