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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to change the Unit system of a model by Weblink?

bsyy
4-Participant

How to change the Unit system of a model by Weblink?

Hello: There is a difficult when I change the UnitSystem of a model by weblink: there is my code: var unit=TempModel.GetPrincipalUnits(); //get the Unitsystem of template model var model=oSession.CurrentModel; var Options=pfcCreate("pfcUnitConversionOptions").Create(pfcCreate("pfcUnitDimensionConversion").UNITCONVERT_SAME_SIZE); model.SetPrincipalUnits(unit,Options); when I run this code,promp an error:XToolkitBadInputs Could anyone help me?Thanks very much!
1 REPLY 1
bsyy
4-Participant
(To:bsyy)

After testing once by once by once,I have solved this problem myself.
Thank you all the same
Top Tags