VMware {code} Community
RonaldITQ
Contributor
Contributor

What do the create and strict attributes mean on an object in a vso.xml file?


I'm just beginning with the vCO plug-in SDK and I have a simple question concerning the vso.xml file in the example solar system plug-in. The Planet object in the vso.xml has create="false" strict="true". According to the <a href="https://vdc-repo.vmware.com/vmwb-repository/dcr/f2636ba1-8ebe-4c92-b925-a566c010f854/f3e81a23-43c3-4f9c-8cf1-0336bc7de05e/doc/GUID6F567D2C-312B-4E9F-986F-6C31D15459D3.html">documentation</a>, this means I cannot create an instance of the class and only annotated methods can be called.



However, I have a scriptable task that has the line:

var p = new Planet('Pluto', 'Pluto', 100, 1.1);


that simply works. So I have created a new instance using a method (constructor) that wasn't annotated. How is this possible? Does it matter at all what I put in create and strict?

Reply
0 Kudos
1 Reply
nicknyu
Contributor
Contributor

Hi,

I'm developing a vRO plugin now, and I'm also confused about these several annotations

May I ask if you could kindly share any doc with me?

Thanks

Reply
0 Kudos