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

Creating a new System of Units

Highlighted
Regular Member

Creating a new System of Units

I am trying to create JLink code to create a new System of Units in a solid model.  I found the command to create the system of units and I understand what goes in arg0 (Name) and arg1 (UnitSystemType).  However, I do not understand how to define arg2 which is defined as the sequence of units in the J-Link User Guide.  My current code is shown below.  Any help is appreciated

		Solid solid = (Solid) model;
		solid.CreateUnitSystem("New Unit System", com.ptc.pfc.pfcUnits.UnitSystemType.UNIT_SYSTEM_MASS_LENGTH_TIME , arg2);
	
		// arg 2 =  pfcUnits.Units - sequence of units (I do not understand how to specify, i.e. mmKgS, mmGs)