Hi!
During one of our projects I hit a speed bump while writing some code to retrieve values of properties for custom entities.
The getPropertyValue() method expects an IEntity, a PropertyDefinition and optionally a PropertyValueSettings object. My question is why an instance of CustEnt can't be used as an entity in this method? I'm guessing this has something to do with the CustEnt being part of the WebServices namespace, but where can I find the VDF-equivalent of CustEnt? As far as I can see, there is no CustomEntityManager in the VDF namespace? Is the only solution to use the WebServiceManager for operations like these?
BR
Rune
Solved! Go to Solution.
Solved by Redmond.D. Go to Solution.
They are called Custom Objects in the VDF. Sometimes the names are a bit different between the Autodesk.Connectivity and the Autodesk.DataManagement namespaces.
So you can use the CustomObjectManager on the Connection object. You can also use the CustomObject constructor to convert from CustEnt objects.
Thank you for your quick answer!
Just to clearify: A custom entity or object needs to be created using the WebServiceManager and the resulting object can then be used to make an instance of a Custom Object in the VDF? Or is there any way of not using the WebServiceManager at all for this?
BR
Rune