public interface PartObject extends Remote
LayerManager
class which holds a work layer property. PartPreferences
Modifier and Type | Interface and Description |
---|---|
static class |
PartObject.ColorSelection
Describes whether color of object is not changed or it is default color or it is defined by user
|
static class |
PartObject.LineFontType
Represents the available types for font
|
static class |
PartObject.ObjectType
Describes all available Types for object selection
|
static class |
PartObject.WidthType
Describes the available types for width
|
Modifier and Type | Method and Description |
---|---|
ViewVisualizationSpecialEffects.ColorRGB |
convertColorNumberToRGBValue(int colorNumber)
Converts color number to RGB constituents.
|
int |
convertRGBValueToColorNumber(ViewVisualizationSpecialEffects.ColorRGB fogColorRgbValue)
Converts RGB color constituents to color number.
|
boolean |
faceAnalysis()
Returns the face analysis flag for Solid and Sheets
License requirements: None. |
int |
getColor(PartObject.ObjectType type)
Returns the current color value for specified type.
|
PartObject.WidthType[] |
getLegacyLineWidthMap()
Gets line width map that is used to convert legacy line widths to
new line widths.
|
PartObject.LineFontType |
getLineFont(PartObject.ObjectType type)
Returns the current line font for specified object type
License requirements: None. |
PartObject.WidthType |
getWidth(PartObject.ObjectType type)
Returns the current width for specified object type
License requirements: None. |
boolean |
migrateLegacyLineWidths()
Migrates line width attributes stored in the part file to
corresponding new line widths.
|
boolean |
partiallyShaded()
Returns the partially shaded flag for Solid and Sheets
License requirements: None. |
void |
setColor(PartObject.ObjectType type,
int color)
Sets the color.
|
void |
setFaceAnalysis(boolean faceAnalysis)
Sets the face analysis flag for Solid and Sheets
License requirements: None. |
void |
setLegacyLineWidthMap(PartObject.WidthType[] newLineWidths)
Sets line width map that is used to convert legacy line widths to
new line widths.
|
void |
setLineFont(PartObject.ObjectType type,
PartObject.LineFontType lineFont)
Sets line font for specified object type
License requirements: None. |
void |
setPartiallyShaded(boolean partiallyShaded)
Sets the partially shaded flag for Solid and Sheets
License requirements: None. |
void |
setTranslucency(int translucency)
Sets the translucency value
License requirements: None. |
void |
setWidth(PartObject.ObjectType type,
PartObject.WidthType width)
Sets width for specified object type
License requirements: None. |
int |
translucency()
Returns the translucency value
License requirements: None. |
int getColor(PartObject.ObjectType type) throws NXException, RemoteException
convertColorNumberToRGBValue(int)
Red Component is ((((216 - color_number) % 36)/6)* 51)
Green component is (((216 - color_number)/36) * 51)
Blue is (((216 - color_number) % 6)* 51).
So for example if returned color value is 47 then
Red is ((((216 - 47) % 36)/6)* 51) = (((169 % 36)/6)* 51) = ((25/6)* 51) = 4*51 = 204
Green is (((216 - 47)/36) * 51) = ((169/36) * 51) = 4*51 = 204
Blue is (((216 - 47) % 6)* 51) = ((169 % 6)* 51) = 1*51 = 51
type
- NXException
RemoteException
void setColor(PartObject.ObjectType type, int color) throws NXException, RemoteException
convertRGBValueToColorNumber(nxopen.preferences.ViewVisualizationSpecialEffects.ColorRGB)
type
- color
- Specified ColorNXException
RemoteException
PartObject.LineFontType getLineFont(PartObject.ObjectType type) throws NXException, RemoteException
type
- NXException
RemoteException
void setLineFont(PartObject.ObjectType type, PartObject.LineFontType lineFont) throws NXException, RemoteException
type
- lineFont
- NXException
RemoteException
PartObject.WidthType getWidth(PartObject.ObjectType type) throws NXException, RemoteException
type
- NXException
RemoteException
void setWidth(PartObject.ObjectType type, PartObject.WidthType width) throws NXException, RemoteException
type
- width
- NXException
RemoteException
boolean partiallyShaded() throws NXException, RemoteException
NXException
RemoteException
void setPartiallyShaded(boolean partiallyShaded) throws NXException, RemoteException
partiallyShaded
- NXException
RemoteException
boolean faceAnalysis() throws NXException, RemoteException
NXException
RemoteException
void setFaceAnalysis(boolean faceAnalysis) throws NXException, RemoteException
faceAnalysis
- NXException
RemoteException
int translucency() throws NXException, RemoteException
NXException
RemoteException
void setTranslucency(int translucency) throws NXException, RemoteException
translucency
- NXException
RemoteException
ViewVisualizationSpecialEffects.ColorRGB convertColorNumberToRGBValue(int colorNumber) throws NXException, RemoteException
colorNumber
- Color valueNXException
RemoteException
int convertRGBValueToColorNumber(ViewVisualizationSpecialEffects.ColorRGB fogColorRgbValue) throws NXException, RemoteException
fogColorRgbValue
- NXException
RemoteException
PartObject.WidthType[] getLegacyLineWidthMap() throws NXException, RemoteException
PartObject.WidthType.THIN_WIDTH
PartObject.WidthType.NORMAL_WIDTH
PartObject.WidthType.THICK_WIDTH
New line widths contain corresponding line widths for above three
legacy line widths respectively. New line widths start at
PartObject.WidthType.WIDTH_ONE
.
NXException
RemoteException
void setLegacyLineWidthMap(PartObject.WidthType[] newLineWidths) throws NXException, RemoteException
getLegacyLineWidthMap()
The new line widths used to map legacy line width are in logical order;
i.e.; PartObject.WidthType.THIN_WIDTH
maps to a smaller width value compared to
PartObject.WidthType.NORMAL_WIDTH
and
so on. Otherwise, the legacy line width map will be rejected.
newLineWidths
- Array of 3 new widths each corresponding to a legacy width.
First element corresponds to Thin width
Second element corresponds to Normal width
Third element corresponds to Thick width.NXException
RemoteException
boolean migrateLegacyLineWidths() throws NXException, RemoteException
getLegacyLineWidthMap()
Line widths of various displayable objects such as solids,
wireframe, drawing views etc. will be updated to new line widths.
Display is regenerated if necessary to reflect the changes.
A displayable object, that already has new line width assigned to
it, is not affected.
NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.