SOLPIX / 'filename' [,SIZE,num,num] [,METHOD,num][,RESULT,numa][,IFERR,label:]
允许您创建用于显示曲面和实体的着色图象的图像文件。您可以交互检索此文件中的Unigraphics,以显示你的着色模型。
遮阳表面或生成使用预定的阴影参数,更快的固态图像,QUICK指定次要词。
The SOLPIX statement was designed to run in BATCH mode as the generation time for an image file can be lengthy, depending on the various parameters that are set.
该SOLPIX声明的目的是要在批处理模式下运行的生成时间为一个图像文件可能会很长,这取决于所设置的各种参数。
参数 |
描述 |
'filename' |
The name of the image file to be created. If no extension is specified, the system adds the extension .PIX for the quick method and the extension .TIF for the high quality method. |
QUICK |
Minor word indicating that you wish to create a quick shaded image file of surfaces and/or solids. This quick image is generated by using a predetermined set of parameters to display all surfaces and solids currently visible in the work view. The SIZE and COLOR options of this shading technique are ignored unless the program is running in batch. |
SIZE |
Minor word that specifies the size of the device screen in pixels. You specify two values of 100 or greater for the quick shade method and values greater than 0 for the high quality shading method. The first value represents the number of pixel columns (the number of pixels in the X axis). The second value represents the number of pixel rows (the number of pixels in the Y axis). For example, specifying SIZE,150,150 would give you a device screen of 150 x 150 pixels. This parameter is not necessary if the program is being run interactively; in which case, the system queries the device in use as to its size. In GRIP Batch, however, if this parameter is not programmed, the default used is 256 X the aspect ratio. |
COLOR |
Minor word that specifies the maximum number of colors to be used in the image file. For speed of image retrieval, this should match the number of colors supported on the display device used, within a range of 1-15. If it is not programmed in GRIP Batch, the default is 7. In interactive GRIP, this value is ignored and the value used is based on the type of terminal in use. This parameter is not used in the high quality shading method. |
METHOD |
Minor word that indicates that the high quality shading method number is to follow. This option is not compatible with the QUICK shading method. |
numa |
Number indicating the method of high quality shading to be used, as specified according to the following:
|
RESULT |
Minor word that indicates the following field provides a return area for error codes. |
numa |
Return area for error codes. An error code of the value 1 is a warning only; although it activates the IFERR condition, the system still creates the shaded image file. Error code values are as follows: |
Value |
Error message |
0 |
No errors |
1 |
Unsupported QUICK parameters were ignored, or QUICK parameters ignored when not in batch, or Unsupported High Quality parameters were ignored. |
2 |
At least one value is out of range |
3 |
|
4 |
|
5 |
Existing file |
6 |
File access error (CFI error) |
IFERR,label: |
Specifies a label to which program execution jumps if an error occurs, for example, if a parameter value is specified that is out of the acceptable range. |