刚刚开始学UG,还是18版的。这方面琢磨了一个方法不知到合不合用:
修改UGII下的UG_METRIC.DEF ,下面几行是控制其各个元素的颜色的:
! Valid color options are: [1-216]
! ( Pre-V17 values were: blue (1), green (2), cyan (3), red (4), magenta (5),
! yellow (6), white (7), olive (8), pink (9), brown (10),
! orange (11), purple (12), dark-red (13), aquamarine (14), gray (15) )
!
! Valid line font options are: [solid, dashed, phantom, centerline, dotted,
! long_dashed, dotted_dashed]
!
! Valid width options are: [thin, normal, thick]
!下面是控制物体颜色
UG_objectColor: 2
UG_objectLineFont: solid
UG_objectWidth: normal
!
! Type Specific Color, Line Font and Width Assignments
!
! The following settings control the object creation color, line font and width
! of specific types of objects.
!
! Valid color options are: [default, 1-216]
! ( Pre-V17 values were: blue (1), green (2), cyan (3), red (4), magenta (5),
! yellow (6), white (7), olive (8), pink (9), brown (10),
! orange (11), purple (12), dark-red (13), aquamarine (14), gray (15) )
!
!
! Valid line font options are: [default, solid, dashed, phantom, centerline,
! dotted, long_dashed, dotted_dashed]
!
! Valid width options are: [default, thin, normal, thick]
!
! NOTE: The 'default' option means that the default setting, the setting
! associated with the object<Color|LineFont|Width> customer default, is
! to be used.
!
!
! Point Settings
! (Note: line font and width settings are invalid for this type)
!点的颜色,default是默认的颜色,可以用数字替换,1表示兰色
UG_pointColor: default
!
! Line Settings
!线的颜色
UG_lineColor: 10
UG_lineFont: default
UG_lineWidth: default
!圆弧的颜色
! Arc Settings
!
UG_arcColor: 10
UG_arcFont: default
UG_arcWidth: default
!
! Conic Settings (i.e. Ellipse, Hyperbola, Parabola)
!二次曲线的颜色
UG_conicColor: 10
UG_conicFont: default
UG_conicWidth: default
!
! Spline Settings
!样条曲线
UG_splineColor: 10
UG_splineFont: default
UG_splineWidth: default
!
! Coordinate System Settings
! (Note: line font and width settings are invalid for this type)
!坐标系
UG_csysColor: 7
!
! Solid Body Settings
!实体颜色
UG_solidBodyColor: 7
UG_solidBodyFont: default
UG_solidBodyWidth: default
!
! Sheet Body Settings
!片体颜色
UG_sheetBodyColor: 5
UG_sheetBodyFont: default
UG_sheetBodyWidth: default
!
! Plane, Datum Plane and Datum Axis Settings
! (Note: line font and width settings are invalid for these types)
!参考面
UG_planeAndDatumColor: 14
! System Color - Controls the default system color, which governs the color
! of view names and borders, the WCS, the grid, and temporarily
! displayed items such as spline vertices, knotpoints, conehead
! vectors, asterisks in the Point Subfunction, etc.
! Also controls the color used for highlighting during selection
!
! PreSelection Color - Controls the color used for pre-selection highlighting.
!
! Handles Color - This is the color used for the display of all handles.
!
! Valid color options are: [1-216]
! ( Pre-V17 values were: blue (1), green (2), cyan (3), red (4), magenta (5),
! yellow (6), white (7), olive (8), pink (9), brown (10),
! orange (11), purple (12), dark-red (13), aquamarine (14), gray (15) )
!系统颜色,及预选颜色
UG_systemColor: 12
UG_preSelectionColor: 5
UG_handlesColor: 6 |