NXOpen.UF.Modeling.CreateScale

Modeling.CreateScale()

Refer to UF_MODL_create_scale for documentation.

Signature: CreateScale(type, bodyTags, numBodyTags, soPoint, soDir, soCsys, factors)

Parameters:
  • type (NXOpen.UF.Modl.ScaleType Refer to UF_SCALE_TYPE_e for documentation.) – The type of scale feature to create:UF_SCALE_TYPE_UNIFORM UF_SCALE_TYPE_AXISYMMETRIC UF_SCALE_TYPE_GENERAL
  • bodyTags (list of Tag) – An array of tags which contains the bodies to be scaled
  • numBodyTags (int) – The number of body tags
  • soPoint (Tag) – This is the tag of a smart point to use as the origin of the scale feature. If a NULL_TAG is passed, the default origin will be the origin of the WCS. This argument is ignored for UF_SCALE_TYPE_GENERAL scale features.
  • soDir (Tag) – This is a tag of a smart point to be used as the direction of the scale for a UF_SCALE_TYPE_AXISYMMETRIC scale feature. It is ignored for all other scale features. If a NULL_TAG is passed for an axisymmetric scale feature, then the default will be the Z-axis of the WCS.
  • soCsys (Tag) – This is the tag of a smart CSYS to be used for a UF_SCALE_TYPE_GENERAL scale feature. This parameter is ignored for all other scale features. If a NULL_TAG is passed for a general scale feature, then the default will be the WCS.
  • factors (list of str) – An array of strings that define the scale factors. These scale factors may include expressions. For a uniform scale feature, there is only one string to use as a scale factor. For an axisymmetric scale feature, two factor strings must be passed in, the first being the scale factor along the axis, and the second being the scale factor in the other direction. For a general scale feature, there will be three strings passed in this array, the first being the scale in the x-axis, the second being the scale in the y-axis and the third being the scale in the z-axis.
Returns:

This is an array of tags for the scale features created. There will be one scale feature for each body passed in.This array must be freed by calling UF_free.

Return type:

list of Tag

License requirements: SOLIDS MODELING