Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
When writing electrode data for CAM in IGES- or STEP-format it's sometimes necessary to set specific colors for solid surfaces to simplify programming. SMARTElectrode offers a dedicated function for this.
For example we would like to separate the electrode base from any electrode geometry.
Electrode geometry: yellow (RGB-code 255/255/0)
Electrode base: green with transparency (RGB-code 0/255/0; Transparency 80%)
At first we need to add an empty text file to the configuration. For example 'my_color_format.cfg'. Now the file should be opened in any text editor to add the rules for the coloration. The color format file needs following information in tab-delimited columns:
What do you want to color |
Keyword |
RGB color-code |
Transparency |
Description |
EDM | -1 | 255,255,000 | - | Default color for all electrode models |
FEATURE |
SE_BASE |
000,255,000 | 0.8 | Color for electrode base |
1. |
Open options UI and set file name |
|
2. |
Open check UI Activate 'Assign Colors' Activate 'Start Calculation' Press 'Yes' Close dialog with 'OK' |
|
3. |
Result |
Now let's use the STEP-export configuration from Did you know about STEP/IGES-export for CAM and import one of the files in Creo Parametric again.
Gosh!? What happended here? - All surface colors are gone in the export.
After some investigation it's clear that some Creo options need specific settings.
step_appearance_layers_groups=yes should be used with step_export_format=ap203_is*.
step_appearance_layers_groups=no should be used with step_export_format=ap214_is.
After a 2nd run of the export functionality the import looks like expected.
Use EDM to set electrode model colors or use FEATURE to set the color for a specific SMARTElectrode feature or a named feature. There are some more values available that will be explained in one of the following posts.
For coloration of electrode models (EDM) the keyword should be the current number of the electrode or -1 as default color. For the coloration of features the feature name (no default names) should be used or one of feature names SMARTElectrode provides:
Use integers from 0..255 for the color code. The color values must have a width of 3 digits each and should be separated by comma: RRR,GGG,BBB.
Use - for no transparency or a decimal number in the range from 0 to 1.0 to define a transparency from 0% to 100%.
Attached file can be used with SMARTElectrode to comprehend the current article.