NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::Preferences::RoutingMechanical类 参考

机械管线布置首选项 更多...

#include <Preferences_RoutingMechanical.hxx>

Public 类型

enum  LineColorType {
  LineColorTypeUnknown = -1 , LineColorTypeName , LineColorTypeIndex , LineColorTypeRgb ,
  LineColorTypeHex , LineColorTypeMax
}

Public 成员函数

bool GetIsInitialized ()
std::vector< NXStringGetLineColors ()
std::vector< NXOpen::Preferences::RoutingMechanical::LineColorTypeGetLineColorTypes ()
std::vector< int > GetLineFontIndices ()
std::vector< NXStringGetLineFonts ()
std::vector< int > GetLineWidths ()
std::vector< NXStringGetRunTypeNames ()
tag_t Tag () const

详细描述

机械管线布置首选项

RoutingMechanical对象存储一组管路机械首选项。
要获取此类的实例,请参考NXOpen::Preferences::RoutingApplicationView

在NX4.0.0版本创建。

成员枚举类型说明

◆ LineColorType

描述管路颜色字符串的定义类型。

枚举值
LineColorTypeUnknown 

未知

LineColorTypeName 

名称

LineColorTypeIndex 

索引

LineColorTypeRgb 

红绿蓝

LineColorTypeHex 

十六进制

LineColorTypeMax 

最大值

成员函数说明

◆ GetIsInitialized()

bool NXOpen::Preferences::RoutingMechanical::GetIsInitialized ( )

判断应用视图文件中是否存在机械首选项部分。

返回

在NX4.0.0版本创建。

许可证要求: routing_advanced ("高级管路设计"), routing_base ("基础管路设计")

◆ GetLineColors()

std::vector< NXString > NXOpen::Preferences::RoutingMechanical::GetLineColors ( )

获取管路颜色的名称、索引或RGB字符串(十六进制或逗号分隔)

返回

在NX4.0.0版本创建。

许可证要求: routing_advanced ("高级管路设计"), routing_base ("基础管路设计")

◆ GetLineColorTypes()

std::vector< NXOpen::Preferences::RoutingMechanical::LineColorType > NXOpen::Preferences::RoutingMechanical::GetLineColorTypes ( )

获取line_color字段中的字符串类型。有效值由NXOpen::Preferences::RoutingMechanical::LineColorType指定。

返回

在NX4.0.0版本创建。

许可证要求: routing_advanced ("高级管路设计"), routing_base ("基础管路设计")

◆ GetLineFontIndices()

std::vector< int > NXOpen::Preferences::RoutingMechanical::GetLineFontIndices ( )

获取线型索引:应用于管路段的线型(当前支持1-7),0表示未知线型

返回

在NX4.0.0版本创建。

许可证要求: routing_advanced ("高级管路设计"), routing_base ("基础管路设计")

◆ GetLineFonts()

std::vector< NXString > NXOpen::Preferences::RoutingMechanical::GetLineFonts ( )

获取要应用于管路段的线型名称,仅当line_font_index为0时使用

返回

在NX4.0.0版本创建。

许可证要求: routing_advanced ("高级管路设计"), routing_base ("基础管路设计")

◆ GetLineWidths()

std::vector< int > NXOpen::Preferences::RoutingMechanical::GetLineWidths ( )

获取管路段的线宽(当前支持0-2)

返回

在NX4.0.0版本创建。

许可证要求: routing_advanced ("高级管路设计"), routing_base ("基础管路设计")

◆ GetRunTypeNames()

std::vector< NXString > NXOpen::Preferences::RoutingMechanical::GetRunTypeNames ( )

获取管路类型显示名称

返回

在NX4.0.0版本创建。

许可证要求: routing_advanced ("高级管路设计"), routing_base ("基础管路设计")

◆ Tag()

tag_t NXOpen::Preferences::RoutingMechanical::Tag ( ) const

返回此对象的标识。