|
NX Open C++ 参考指南 2406 v1.1
|
部件建模首选项 更多...
#include <Preferences_PartModeling.hxx>
部件建模首选项
表示适用于部件的建模首选项集合
要获取此类实例,请参考 NXOpen::Preferences::PartPreferences
于NX3.0.0版本创建。
网格/节线的可用线型
| double NXOpen::Preferences::PartModeling::AngleToleranceData | ( | ) |
获取角度公差。角度公差是对应点处曲面法线之间,或对应点处曲线切向量之间的最大允许夹角。 该值可从任何部件读取,但仅当拥有这些首选项的部件为工作部件时才能设置。
版本:NX3.0.0引入
许可要求:无
| int NXOpen::Preferences::PartModeling::C0KnotLineColor | ( | ) |
获取C0节点线颜色。
版本:NX5.0.0。
许可要求:无
| NXOpen::Preferences::PartModeling::GridKnotLineFontType NXOpen::Preferences::PartModeling::C0KnotLineFont | ( | ) |
获取C0节点线线型。
版本:NX5.0.0。
许可要求:无
| bool NXOpen::Preferences::PartModeling::C0KnotUseBodyColor | ( | ) |
获取C0节点线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::C0KnotUseBodyFont | ( | ) |
判断C0节点是否使用实体字体
创建于NX5.0.0.
许可要求: 无
| int NXOpen::Preferences::PartModeling::C1KnotLineColor | ( | ) |
获取C1节点线颜色。
版本:NX5.0.0。
许可要求:无
| NXOpen::Preferences::PartModeling::GridKnotLineFontType NXOpen::Preferences::PartModeling::C1KnotLineFont | ( | ) |
获取C1节点线型
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::C1KnotUseBodyColor | ( | ) |
判断C1节点线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::C1KnotUseBodyFont | ( | ) |
判断C1节点是否使用实体字体
创建于NX5.0.0.
许可要求: 无
| int NXOpen::Preferences::PartModeling::C2KnotLineColor | ( | ) |
获取C2节点线颜色
创建于NX5.0.0.
许可要求: 无
| NXOpen::Preferences::PartModeling::GridKnotLineFontType NXOpen::Preferences::PartModeling::C2KnotLineFont | ( | ) |
获取C2节点线型
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::C2KnotUseBodyColor | ( | ) |
判断C2节点线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::C2KnotUseBodyFont | ( | ) |
判断C2节点是否使用实体字体
创建于NX5.0.0.
许可要求: 无
| double NXOpen::Preferences::PartModeling::ConvertAnalyticToConvergentAngularTolerance | ( | ) |
返回解析体转换为收敛体的角度公差
创建于NX12.0.0。
许可要求:无
| double NXOpen::Preferences::PartModeling::ConvertAnalyticToConvergentDistanceTolerance | ( | ) |
返回解析体转换为收敛体的距离公差
创建于NX12.0.0。
许可要求:无
| double NXOpen::Preferences::PartModeling::ConvertAnalyticToConvergentMaximumChordLength | ( | ) |
获取将解析体转换为收敛体时的最大弦长
版本:NX12.0.1
许可要求:无
| double NXOpen::Preferences::PartModeling::ConvertAnalyticToConvergentMaximumFacetWidth | ( | ) |
获取将解析体转换为收敛体时的最大小平面宽度
版本:NX12.0.1
许可要求:无
| NXOpen::Preferences::PartModeling::CurveCurvatureDisplayType NXOpen::Preferences::PartModeling::CurveCurvatureDisplay | ( | ) |
获取曲线曲率显示设置
版本:NX3.0.0引入
许可要求:无
| bool NXOpen::Preferences::PartModeling::CurveCurvatureShowCap | ( | ) |
获取曲线曲率显示是否显示端盖线
创建于NX5.0.0.
许可要求: 无
| int NXOpen::Preferences::PartModeling::CurveCurvatureStyle | ( | ) |
获取曲线曲率显示样式
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::CutViewUpdateDelayed | ( | ) |
获取剖切视图延迟更新标志的状态。
版本:NX4.0.0。
许可要求:无
| double NXOpen::Preferences::PartModeling::Density | ( | ) |
获取密度。设置该属性的值必须符合密度单位首选项(即NXOpen::Preferences::PartModeling::DensityUnit 的值)。 同样,该属性返回的密度值单位也与密度单位首选项一致。
版本:NX3.0.0引入
许可要求:无
| NXOpen::Preferences::PartModeling::DensityUnitType NXOpen::Preferences::PartModeling::DensityUnit | ( | ) |
获取密度单位
版本:NX3.0.0引入
许可要求:无
| bool NXOpen::Preferences::PartModeling::DisplayCurveCurvatureOutside | ( | ) |
判断曲线曲率是否显示在曲线外侧/内侧
创建于NX5.0.0.
许可要求: 无
| double NXOpen::Preferences::PartModeling::DistanceToleranceData | ( | ) |
获取建模距离公差。该公差值用于整个建模应用,例如创建扫掠、回转实体以及实体剖切等操作。 例如创建片体时,距离公差指定原始曲面与生成的B曲面对应点之间的最大允许距离。 该值可从任何部件读取,但仅当拥有这些首选项的部件为工作部件时才能设置。
版本:NX3.0.0引入
许可要求:无
| bool NXOpen::Preferences::PartModeling::GetHistoryMode | ( | ) |
判断部件处于历史模式还是无历史模式 返回true表示历史模式,false表示无历史模式。
| bool NXOpen::Preferences::PartModeling::GetIsSavedByWebApp | ( | ) |
获取是否由Web应用保存的标识
版本:NX1899.0.0
许可要求:无
| bool NXOpen::Preferences::PartModeling::GetKeepLocalFeatures | ( | ) |
获取是否保留部件中NX6版本的局部特征
版本:NX1872.0.0
许可要求:无
| int NXOpen::Preferences::PartModeling::GridLineColor | ( | ) |
获取网格线颜色。
版本:NX5.0.0。
许可要求:无
| NXOpen::Preferences::PartModeling::GridKnotLineFontType NXOpen::Preferences::PartModeling::GridLineFont | ( | ) |
获取网格线线型。
版本:NX5.0.0。
许可要求:无
| int NXOpen::Preferences::PartModeling::GridLinesUCount | ( | ) |
获取网格线的U向数量,即实体表面U方向的网格曲线数量
版本:NX3.0.0引入
许可要求:无
| int NXOpen::Preferences::PartModeling::GridLinesVCount | ( | ) |
获取网格线的V向数量,即实体表面V方向的网格曲线数量
版本:NX3.0.0引入
许可要求:无
| NXOpen::Preferences::PartModeling::GridResolutionType NXOpen::Preferences::PartModeling::GridResolution | ( | ) |
获取网格分辨率。包含无、粗糙、标准、精细、超精细、极精细六个选项,分辨率依次提升。选择“无”时,线框模式下不显示网格。
版本:NX3.0.0。
许可要求:无
| bool NXOpen::Preferences::PartModeling::GridUseBodyColor | ( | ) |
获取网格线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::GridUseBodyFont | ( | ) |
获取网格是否使用实体线型
创建于NX5.0.0.
许可要求: 无
| bool NXOpen::Preferences::PartModeling::MaxChordLengthOption | ( | ) |
返回解析体转换为收敛体的最大弦长选项
创建于NX12.0.1。
许可要求:无
| bool NXOpen::Preferences::PartModeling::MaxFacetWidthOption | ( | ) |
返回解析体转换为收敛体的最大面片宽度选项
创建于NX12.0.1。
许可要求:无
| NXOpen::Preferences::PartModeling::NX_DEPRECATED | ( | "Deprecated in NX11.0.0. It was split into two factors. Please use PartModeling::OptimizeCurveDistanceToleranceFactor and PartModeling::OptimizeCurveAngleToleranceFactor instead." | ) |
返回优化曲线公差系数
| NXOpen::Preferences::PartModeling::NX_DEPRECATED | ( | "Deprecated in NX11.0.0. It was split into two factors. Please use PartModeling::SetOptimizeCurveDistanceToleranceFactor and PartModeling::SetOptimizeCurveAngleToleranceFactor instead." | ) |
设置优化曲线公差系数
曲线优化的执行系数
| bool NXOpen::Preferences::PartModeling::OptimizeCurve | ( | ) |
获取曲线优化标志
创建于NX8.0.0.
许可要求: 无
| double NXOpen::Preferences::PartModeling::OptimizeCurveAngleToleranceFactor | ( | ) |
返回优化曲线角度公差系数
创建于NX11.0.0。
许可要求:无
| double NXOpen::Preferences::PartModeling::OptimizeCurveDistanceToleranceFactor | ( | ) |
返回优化曲线距离公差系数
创建于NX11.0.0。
许可要求:无
| void NXOpen::Preferences::PartModeling::SetAngleToleranceData | ( | double | angleTolData | ) |
设置角度公差。角度公差是对应点处曲面法线之间,或对应点处曲线切向量之间的最大允许夹角。 该值可从任何部件读取,但仅当拥有这些首选项的部件为工作部件时才能设置。
版本:NX3.0.0引入
许可要求:无
| angleTolData | 角度公差值 |
| void NXOpen::Preferences::PartModeling::SetC0KnotLineColor | ( | int | knotLineColor | ) |
设置C0节点线颜色。
版本:NX5.0.0。
许可要求:无
| knotLineColor | 节点线颜色 |
| void NXOpen::Preferences::PartModeling::SetC0KnotLineFont | ( | NXOpen::Preferences::PartModeling::GridKnotLineFontType | knotLineFont | ) |
设置C0节点线线型。
版本:NX5.0.0。
许可要求:无
| knotLineFont | 节点线线型 |
| void NXOpen::Preferences::PartModeling::SetC0KnotUseBodyColor | ( | bool | useBodyColor | ) |
设置C0节点线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| useBodyColor | 是否使用实体颜色 |
| void NXOpen::Preferences::PartModeling::SetC0KnotUseBodyFont | ( | bool | useBodyFont | ) |
设置C0节点是否使用实体字体
创建于NX5.0.0.
许可要求: 无
| useBodyFont | 使用实体字体 |
| void NXOpen::Preferences::PartModeling::SetC1KnotLineColor | ( | int | knotLineColor | ) |
设置C1节点线颜色。
版本:NX5.0.0。
许可要求:无
| knotLineColor | 节点线颜色 |
| void NXOpen::Preferences::PartModeling::SetC1KnotLineFont | ( | NXOpen::Preferences::PartModeling::GridKnotLineFontType | knotLineFont | ) |
设置C1节点线型
创建于NX5.0.0.
许可要求: 无
| knotLineFont | 节点线型 |
| void NXOpen::Preferences::PartModeling::SetC1KnotUseBodyColor | ( | bool | useBodyColor | ) |
设置C1节点线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| useBodyColor | 使用实体颜色 |
| void NXOpen::Preferences::PartModeling::SetC1KnotUseBodyFont | ( | bool | useBodyFont | ) |
设置C1节点是否使用实体字体
创建于NX5.0.0.
许可要求: 无
| useBodyFont | 使用实体字体 |
| void NXOpen::Preferences::PartModeling::SetC2KnotLineColor | ( | int | knotLineColor | ) |
设置C2节点线颜色
创建于NX5.0.0.
许可要求: 无
| knotLineColor | 节点线颜色 |
| void NXOpen::Preferences::PartModeling::SetC2KnotLineFont | ( | NXOpen::Preferences::PartModeling::GridKnotLineFontType | knotLineFont | ) |
设置C2节点线型
创建于NX5.0.0.
许可要求: 无
| knotLineFont | 节点线型 |
| void NXOpen::Preferences::PartModeling::SetC2KnotUseBodyColor | ( | bool | useBodyColor | ) |
设置C2节点线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| useBodyColor | 使用实体颜色 |
| void NXOpen::Preferences::PartModeling::SetC2KnotUseBodyFont | ( | bool | useBodyFont | ) |
设置C2节点是否使用实体字体
创建于NX5.0.0.
许可要求: 无
| useBodyFont | 使用实体字体 |
| void NXOpen::Preferences::PartModeling::SetConvertAnalyticToConvergentAngularTolerance | ( | double | dAnalyticToConvergentAngTol | ) |
设置解析体转换为收敛体的角度公差
创建于NX12.0.0。
许可要求:无
| dAnalyticToConvergentAngTol | 解析体转换为收敛体的角度公差 |
| void NXOpen::Preferences::PartModeling::SetConvertAnalyticToConvergentDistanceTolerance | ( | double | dAnalyticToConvergentDistTol | ) |
设置解析体转换为收敛体的距离公差
创建于NX12.0.0。
许可要求:无
| dAnalyticToConvergentDistTol | 解析体转换为收敛体的距离公差 |
| void NXOpen::Preferences::PartModeling::SetConvertAnalyticToConvergentMaximumChordLength | ( | double | dAnalyticToConvergentMaxChordLength | ) |
设置将解析体转换为收敛体时的最大弦长
版本:NX12.0.1
许可要求:无
| dAnalyticToConvergentMaxChordLength | 将解析体转换为收敛体时的最大弦长 |
| void NXOpen::Preferences::PartModeling::SetConvertAnalyticToConvergentMaximumFacetWidth | ( | double | dAnalyticToConvergentMaxFacetWidth | ) |
设置将解析体转换为收敛体时的最大小平面宽度
版本:NX12.0.1
许可要求:无
| dAnalyticToConvergentMaxFacetWidth | 将解析体转换为收敛体时的最大小平面宽度 |
| void NXOpen::Preferences::PartModeling::SetCurveCurvatureDisplay | ( | NXOpen::Preferences::PartModeling::CurveCurvatureDisplayType | curveCurvatureDisplay | ) |
设置曲线曲率显示。
版本:NX3.0.0。
许可要求:无
| curveCurvatureDisplay | 曲线曲率显示类型 |
| void NXOpen::Preferences::PartModeling::SetCurveCurvatureShowCap | ( | bool | newShowCap | ) |
设置曲线曲率显示是否显示端盖线
创建于NX5.0.0.
许可要求: 无
| newShowCap | 是否显示端盖线 |
| void NXOpen::Preferences::PartModeling::SetCurveCurvatureStyle | ( | int | newStyle | ) |
设置曲线曲率显示样式
创建于NX5.0.0.
许可要求: 无
| newStyle | 新样式 |
| void NXOpen::Preferences::PartModeling::SetCutViewUpdateDelayed | ( | bool | isDelayed | ) |
设置剖切视图延迟更新标志的状态。
版本:NX4.0.0。
许可要求:无
| isDelayed | 延迟更新标志的新状态 |
| void NXOpen::Preferences::PartModeling::SetDensity | ( | double | density | ) |
设置密度。设置该属性的值必须符合密度单位首选项(即NXOpen::Preferences::PartModeling::DensityUnit 的值)。 同样,该属性返回的密度值单位也与密度单位首选项一致。
版本:NX3.0.0引入
许可要求:无
| density | 密度值 |
| void NXOpen::Preferences::PartModeling::SetDensityUnit | ( | NXOpen::Preferences::PartModeling::DensityUnitType | densityUnit | ) |
设置密度单位
版本:NX3.0.0引入
许可要求:无
| densityUnit | 密度单位 |
| void NXOpen::Preferences::PartModeling::SetDisplayCurveCurvatureOutside | ( | bool | displayOutside | ) |
设置曲线曲率显示在曲线外侧/内侧
创建于NX5.0.0.
许可要求: 无
| displayOutside | 显示在外侧 |
| void NXOpen::Preferences::PartModeling::SetDistanceToleranceData | ( | double | distTolData | ) |
设置建模距离公差。该公差值用于整个建模应用,例如创建扫掠、回转实体以及实体剖切等操作。 例如创建片体时,距离公差指定原始曲面与生成的B曲面对应点之间的最大允许距离。 该值可从任何部件读取,但仅当拥有这些首选项的部件为工作部件时才能设置。
版本:NX3.0.0引入
许可要求:无
| distTolData | 距离公差值 |
| void NXOpen::Preferences::PartModeling::SetGridLineColor | ( | int | gridLineColor | ) |
设置网格线颜色。
版本:NX5.0.0。
许可要求:无
| gridLineColor | 网格线颜色 |
| void NXOpen::Preferences::PartModeling::SetGridLineFont | ( | NXOpen::Preferences::PartModeling::GridKnotLineFontType | gridLineFont | ) |
设置网格线线型。
版本:NX5.0.0。
许可要求:无
| gridLineFont | 网格线线型 |
| void NXOpen::Preferences::PartModeling::SetGridLinesUCount | ( | int | gridLineUCount | ) |
设置网格线的U向数量,即实体表面U方向的网格曲线数量
版本:NX3.0.0引入
许可要求:无
| gridLineUCount | U向网格线数量 |
| void NXOpen::Preferences::PartModeling::SetGridLinesVCount | ( | int | gridLineVCount | ) |
设置网格线的V向数量,即实体表面V方向的网格曲线数量
版本:NX3.0.0引入
许可要求:无
| gridLineVCount | V向网格线数量 |
| void NXOpen::Preferences::PartModeling::SetGridResolution | ( | NXOpen::Preferences::PartModeling::GridResolutionType | gridResolution | ) |
设置网格分辨率。包含无、粗糙、标准、精细、超精细、极精细六个选项,分辨率依次提升。选择“无”时,线框模式下不显示网格。
版本:NX3.0.0。
许可要求:无
| gridResolution | 网格分辨率 |
| void NXOpen::Preferences::PartModeling::SetGridUseBodyColor | ( | bool | useBodyColor | ) |
设置网格线是否使用实体颜色
创建于NX5.0.0.
许可要求: 无
| useBodyColor | 是否使用实体颜色 |
| void NXOpen::Preferences::PartModeling::SetGridUseBodyFont | ( | bool | useBodyFont | ) |
设置网格是否使用实体线型
创建于NX5.0.0.
许可要求: 无
| useBodyFont | 是否使用实体线型 |
| void NXOpen::Preferences::PartModeling::SetHistoryFreeMode | ( | ) |
将建模模式切换为无历史建模模式。此操作将移除模型中特征的参数。特征编辑将不可用,模型也不会更新。
创建于NX6.0.0.
许可要求: 无
| void NXOpen::Preferences::PartModeling::SetHistoryMode | ( | ) |
将建模模式切换为历史建模模式。此操作将移除模型中的局部特征。
创建于NX6.0.0.
许可要求: 无
| void NXOpen::Preferences::PartModeling::SetIsSavedByWebApp | ( | bool | isSavedByWebApp | ) |
设置是否由Web应用保存的标识
版本:NX1899.0.0
许可要求:无
| isSavedByWebApp | 是否由Web应用保存 |
| void NXOpen::Preferences::PartModeling::SetKeepLocalFeatures | ( | bool | keepLocalFeatures | ) |
设置在切换至无历史模式时是否保留NX6版本的局部特征
版本:NX1872.0.0
许可要求:无
| keepLocalFeatures | 是否保留局部特征 |
| void NXOpen::Preferences::PartModeling::SetMaxChordLengthOption | ( | bool | maxChordLength | ) |
设置解析体转换为收敛体的最大弦长选项
创建于NX12.0.1。
许可要求:无
| maxChordLength | 解析体转换为收敛体的最大弦长选项 |
| void NXOpen::Preferences::PartModeling::SetMaxFacetWidthOption | ( | bool | maxFacetWidth | ) |
设置解析体转换为收敛体的最大面片宽度选项
创建于NX12.0.1。
许可要求:无
| maxFacetWidth | 解析体转换为收敛体的最大面片宽度选项 |
| void NXOpen::Preferences::PartModeling::SetOptimizeCurve | ( | bool | optimizeCurve | ) |
设置优化曲线标志
创建于NX8.0.0。
许可要求:无
| optimizeCurve | 指示是否执行曲线优化的标志 |
| void NXOpen::Preferences::PartModeling::SetOptimizeCurveAngleToleranceFactor | ( | double | optimieCurveAngleFactor | ) |
设置优化曲线角度公差系数
创建于NX11.0.0。
许可要求:无
| optimieCurveAngleFactor | 曲线优化的角度系数 |
| void NXOpen::Preferences::PartModeling::SetOptimizeCurveDistanceToleranceFactor | ( | double | optimieCurveDistanceFactor | ) |
设置优化曲线距离公差系数
创建于NX11.0.0。
许可要求:无
| optimieCurveDistanceFactor | 曲线优化的距离系数 |
| void NXOpen::Preferences::PartModeling::SetTreatOneDegreeBsplineAsPolyline | ( | bool | treatOneDegreeBsplineAsPolyline | ) |
设置是否将一次B样条视为折线的选项
版本:NX1847.0.0
许可要求:无
| treatOneDegreeBsplineAsPolyline | 设为true时,将一次B样条视为折线 |
| tag_t NXOpen::Preferences::PartModeling::Tag | ( | ) | const |
返回此对象的标识。
| bool NXOpen::Preferences::PartModeling::TreatOneDegreeBsplineAsPolyline | ( | ) |
获取是否将一次B样条视为折线的选项
版本:NX1847.0.0
许可要求:无