faremusai
Mechanical
- Feb 23, 2016
- 23
The default location of reference point for a standard shape in FEMAP is "1". I want to change it to other location by using the API function .pval(51) e.g. to point 7. I have tried using the command pr.pval(51) = 7 then, .ComputeStdShape, then pr.Put(ID) to update the properties. There is no error nor warning messages after running the script. But the reference point was not updated, still at location "1".
If the reference point was changed manually throught tge "Properties" dialogue box and then read the new value by using the function Msgbox "xxx: " & pr.pval(51), the new reference point location "7' was displayed.
If the command .ComputeStdShape was removed or .pval(51) was moved to a location after the .ComputeStdShape command, the reference point location was updated as expected.
Is it true that the command .pval(51) CANNOT be used before the command .ComputeStdShape?
If the reference point was changed manually throught tge "Properties" dialogue box and then read the new value by using the function Msgbox "xxx: " & pr.pval(51), the new reference point location "7' was displayed.
If the command .ComputeStdShape was removed or .pval(51) was moved to a location after the .ComputeStdShape command, the reference point location was updated as expected.
Is it true that the command .pval(51) CANNOT be used before the command .ComputeStdShape?