1 Attachment(s)
My 3D Machine simulation is broken.
I don't know what happened, but my 3d Machine simulation stopped working. I didn't change TNG version between the working and not working state. So it must be something not directly related to the TNG version.
I just saw the 3d Visualization for a very short time after TNG start and then it was gone and I have no Idea why. Maybe i changed something in configuration, but i am unable to find the cause for the missing Machine Simulation.
May you take a look at my attached Profile to see if it's working on your side, pleace?
Meanwhile I upgradet to the last TNG version but no change. (2023.02.20)
Re: My 3D Machine simulation is broken.
Two problems:
1. "Cuboid" in line 7 is lowercase. These files are case sensitive.
2. Filename paths are relative to 3dObject.txt file. In your case 3dObject.txt is in profile folder and STLs are in subfolder 3dObj2. You nedd ti fix paths like this:
<Mesh Filename="./3dObj2/Schraubstock.STL"/>
Re: My 3D Machine simulation is broken.
Thank you for the fast response. It's working now.
Are there any new abilities in the 3D simulation besides the multi axis. For example maybe hiding objects dynamically with parameters?
Re: My 3D Machine simulation is broken.
Do you have a wishlist with real case scenarios? Why would you like to show/hide parts/assemblies?
Re: My 3D Machine simulation is broken.
Most parameters in xml can be expressions. So it is possible to evaluate parameters. For example, if you do this in your 3dObj:
Code:
<Part Name="Schraubstock" Visible="_hw_estop">
then Schraubstock will be visible only if E-stop is active. Note that these expressions are evaluated only when model is shown. So you need to hide/show model to reevaluate expressions.
Another new thing is Expr tag on Model object. Can be used to initialize stuff before model is shown.
Code:
<Model>
<Expr>
a=2;
b=3;
c=a+b;
print("2+3=", c)
</Expr>
...
Re: My 3D Machine simulation is broken.
That sounds realy cool. Already have thousand ideas wich parameters could be dynamic.
Quote:
Originally Posted by
PlanetCNC
Note that these expressions are evaluated only when model is shown. So you need to hide/show model to reevaluate expressions.
Any chance of a function which can be called from the expressions.txt to reevaluate the expressions of the 3d View ?? There is no need for real time. Maybe it can refresh when there is time within a few seconds.