cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Change default units of Vuforia Studio to inchs or mm

anupds
13-Aquamarine

Change default units of Vuforia Studio to inchs or mm

Hi ,

Is there any way to change the default units of Vuforia Studio from meters to inchs or mm ?

When I want to placing some 3D widgets / models and paticular XYZ coordinates , it is difficult to always convert all values to meters. 

ACCEPTED SOLUTION

Accepted Solutions

Hi @anupds ,

so far I know when we import a model it is in Vuforia Studio always  Vuforia Studio interpert the dimension number as meter - that info I see . But that could be scaled to an factor what corrsponds  with your units - found as related document PTC article  https://www.ptc.com/en/support/article/CS325052 confirming that - with resulution

 

Vuforia Studio have all dimensions for models and modelitems widget in meters

 

so means that model will be  interpreted as meter. The correct setting of  the size should be done via the model scale factor . When we export a model from cad for example we have in some cad systems (example creo parameter) we can set a different unit and it aks if it should scale the dimensions or interpert the same numbers

So background how Engine handles it for modeltargets (which is used for the model Targets in Studio) is here: https://developer.vuforia.com/library/objects/best-practices-managing-scaling-model-targets

 

So you could set the unit factor as model scale to have the correct size or the scale could done by thingmakr size - it will re-calculate then the scale when e.g. the thingmark has a different size in the real world as the size in set in Sudio. The ratio then is used as implicit scale for the augmetnaiton.So e.g. size by default Mark width of the a Thingmark widget is 0.0254 meter what is 1inch. But so far I know the R&D team irecommends to use 1 : 1 scale and on that way not to  make to difficult. So, when you want scale then you should  use the model scale factor. 

The only problem is then that when you scale the model the x,y,z properties when you change the model position it are always in meter. So possibly you can use some wrapper function what simple scale the value or when you use some binding you can scale via filters

I checked further and create a Creo Paramter Cube with 1x1x1 in inch. So saved it /export it to PVZ format and open in Creo View to check:

 

2024-12-17_09-58-48.jpg

So we can see that Creo view attributs contains informaiton about the units and it is scaled to mm means 1/1000 meter . The one inch is converted then to 25,4 mm

2024-12-17_10-07-18.jpg

I hread some statements that pvz is unitless in meter and functionality e.g. measurement display as in picture there is calculated based on the attributes setting- in that case the dimension should be not 25.4 mm but 0.0254 meter as number , but could not verify that 

Unfortunately I have no much experience with inch units becasue I my self use only meter or mm. The Creo Parameteric template I use in the most cases is in mm and models will be converted always in meter so that I use in Studio the meter dimenions what is easy to calcualte. Possibly someone who has inches as orginal dimension , could share you experience here. Thanks 

 

View solution in original post

2 REPLIES 2

Hi @anupds ,

so far I know when we import a model it is in Vuforia Studio always  Vuforia Studio interpert the dimension number as meter - that info I see . But that could be scaled to an factor what corrsponds  with your units - found as related document PTC article  https://www.ptc.com/en/support/article/CS325052 confirming that - with resulution

 

Vuforia Studio have all dimensions for models and modelitems widget in meters

 

so means that model will be  interpreted as meter. The correct setting of  the size should be done via the model scale factor . When we export a model from cad for example we have in some cad systems (example creo parameter) we can set a different unit and it aks if it should scale the dimensions or interpert the same numbers

So background how Engine handles it for modeltargets (which is used for the model Targets in Studio) is here: https://developer.vuforia.com/library/objects/best-practices-managing-scaling-model-targets

 

So you could set the unit factor as model scale to have the correct size or the scale could done by thingmakr size - it will re-calculate then the scale when e.g. the thingmark has a different size in the real world as the size in set in Sudio. The ratio then is used as implicit scale for the augmetnaiton.So e.g. size by default Mark width of the a Thingmark widget is 0.0254 meter what is 1inch. But so far I know the R&D team irecommends to use 1 : 1 scale and on that way not to  make to difficult. So, when you want scale then you should  use the model scale factor. 

The only problem is then that when you scale the model the x,y,z properties when you change the model position it are always in meter. So possibly you can use some wrapper function what simple scale the value or when you use some binding you can scale via filters

I checked further and create a Creo Paramter Cube with 1x1x1 in inch. So saved it /export it to PVZ format and open in Creo View to check:

 

2024-12-17_09-58-48.jpg

So we can see that Creo view attributs contains informaiton about the units and it is scaled to mm means 1/1000 meter . The one inch is converted then to 25,4 mm

2024-12-17_10-07-18.jpg

I hread some statements that pvz is unitless in meter and functionality e.g. measurement display as in picture there is calculated based on the attributes setting- in that case the dimension should be not 25.4 mm but 0.0254 meter as number , but could not verify that 

Unfortunately I have no much experience with inch units becasue I my self use only meter or mm. The Creo Parameteric template I use in the most cases is in mm and models will be converted always in meter so that I use in Studio the meter dimenions what is easy to calcualte. Possibly someone who has inches as orginal dimension , could share you experience here. Thanks 

 

anupds
13-Aquamarine
(To:RolandRaytchev)

Hi @RolandRaytchev  ,

Thank You for sharing a detailed explanation on how units works in Vuforia Studio. 

Announcements

Top Tags