BIMserver-JavaScript-API icon indicating copy to clipboard operation
BIMserver-JavaScript-API copied to clipboard

Creating or modifying objects

Open bastienmenis opened this issue 7 years ago • 1 comments

There is a function called create in the Model class. It is not working at the moment because the generateGuid parameter is missing. I fixed this but I fail to understand what the function is supposed to do.

After calling create() followed by commit(), it looks like it does create an object but not the properties. Is this on purpose, or was this functionality never fully implemented?

I had a look at the LowLevelInterface in BIMServer, are the following steps the correct process to create objects?

  • startTransaction
  • createObject
  • iterate through properties and call addStringAttribute / addIntegerAttribute / etc.
  • commitTransaction

bastienmenis avatar Apr 27 '18 17:04 bastienmenis

At the moment there is no project we can justify having a look at this for. This has worked in the past, but there has been little to no interest in the low level calls, so basically abandoned.

rubendel avatar Jul 17 '18 07:07 rubendel