Setting General Inputs via function

Hello All,

I am trying to use a function to create a series of spheres which I have been able to complete.  My questions is how do I get the "for loop" to change the Level Name of each sphere, what is the best way to change a objects colour/level etc each time it is created?

Cheers,

Alex

PS, if anyone has a good way to add an "Asset Tag" to a GC custom object I would be really keen to know how.

Parents Reply Children
  • Jaimin and Alex

    We are thinking at the moment, the Catalog property, like the LevelName property, is not replicable, but we are investigating both with the development team right now to see if this can be changed to behave like the Color property and other replicable properties in GC. Replicable meaning many objects created by the same node can have different values in the properties. Stay tuned while we find out about that. 

    The work around for now, which would include the use of an Excel Spreadsheet to push those property data to the objects via Excel, would be to use the Exchange Feature in the Schedules tool. 

    https://www.youtube.com/watch?v=hWK14qI_BX4

    This would require the objects to be frozen or disconnected from GC using the Export node as the feature won't play nicely with the changing element ID's that occur in GC. 

    Out of curiosity, I am wondering how you would expect the outcomes to be when constant change is occurring. For example, if you have 10 items on a path and for simplicity purposes those objects are AssetID'ed 1-10, and you add two more objects would these be sequentially 11 & 12? This might work fine if the objects are added to the end and its a sequential count from the start of the path to the end, but what if those objects are added to the middle of the path. Would you expect the original objects to maintain their original ID's and the 2 added in the middle to take on the next numbers or would you be happy to re-start the count from the start of the path to the end? Re-starting the count would be the easiest option as GC recreates all the objects and there is no guarantee the element ID's remain the same. 

    Stuart


    This is a test

  • Hi Stuart,

    Thanks for the update and feedback.

    I am using the Schedule method to input information for elements created using OpenBuilding, however, it would be easy to add the information within GC for elements modelled in GC.

    For me, I am happy if GC Start from [0], as I will always have an excel spreadsheet that will link my information to GC List value.

    I was exploring Transpose() to fix this but still trying, I'll keep you updated.

    it would be great to get some updates on this issue.

    Regards,

    Jaimin Patel

  • Hey Stuart,

    Due to the way GC currently works, I think we would probably be limited to keeping the count always from 0.  In my example that I am currently stuck on, I have a very simple object that is created from XYZ coordinates in Excel.  I have the Asset Tag in the same sheet just next to the coordinates.  If two new elements were created I think all I would need to do is make sure I have the tag next to the new setout coordinates.

    I might be wrong though... if you update GC to accept replicable values it would be easy to test.

    Cheers,

    Alex

  • Hi Stuart,

    I had another question about these custom properties. I was looking for an option where I can map ECSchema properties (General Microstation Properties) to Catalogue custom definitions? Is there any way to solve this problem?

    For eg. I have created a custom catalogue property called "Toe Level" and I want to map the element information "Z Value" to my custom property.

    Regards,

    Jaimin Patel

  • Hi Stuart,

    Any updates from the Development team about the above discussion?

    Regards,

    Jaimin Patel