Exporting Names with OBJ files
Dieter Sliter
Adding object names to the .obj export file would streamline work with the model outside of Eyeshot. I'm currently exporting models with thousands of items and they all come in as Object_####. This makes it incredibly in efficient to work with especially as I try to optimize the model for XR application.
1
Comments
Hello Dieter,
Can you please try putting a string inside the Entity.EntityData property?
I tried putting a string in EntityData and it still exported with a Object_###. I have attached a sample of the code I'm using to do it.


Hello Dieter,
What Eyeshot version are you using?
Now I see you are using v22. Please open a tech support ticket with a small sample to reproduce the issue.
Please don't attach pictures with your activation code.
I did and they told me that it wasn't supported and sent me here to request a feature
Sorry, for the confusion but from the code I see that it should be supported. I will search for the ticket and let you know.
The thing that I noticed is the conditional. I created a object that inherits from BlockReference. According to the code above it should go to the else and use the BlockName which I have set to a ID#. I will see if I can set a quick project up to demonstrate my setup.
Actually, the code says "if (ent is NOT BlockReference)", can you please try on basic entities instead?
Sorry, read it wrong. The way I needed to construct the communication between out application and Eyeshot I need to have several properties that allow me to evaluate what is being sent in from our application. I'm working on a example using your Lego demo to try to simulate what I am trying to do as I can't send you my full application
I figured out the issue. I needed to dive deeper into the Block.Entites and change the EntityData there to get the name to set correctly. I'm now just looping through those to and setting the EnitiyData on each one.
I do have one suggestion allow a override of the Object_#. I know it is probably there for duplicate names but I will write name checks for the file I'm exporting to prevent that.
Was a way to override the default pattern and remove the “Object_” ever implemented?
Please sign in to leave a comment.