hexagon logo

Where are the latest Patran 2017 PCL programming manuals and where are the detailed instructions for the gm_write_image function?

Where are the Patran 2017 manuals for PCL programming. The last ones I have are for 2013. Specifically you have altered the behavior of the gm_write_image function and I need to see what has changed between v2013 and v2017.  With v2017 I am now getting images saved with 32 bit color depth which is a problem compared to what I was getting before from Patran v2014 which were 8 bit color depth.  When I look up gm_write_image on your website I find nothing, and when I lookup "Patran Manuals" I find nothing. And with my new Patran 2017 installation I see no PCL programming manuals.  Why is it so difficult to get information about PCL programming?
Parents
  • Hi Toby,
     
    All of patran documentation is/ should be available by F1 Key from patran. It would point you to following link. I have just verified it and it points to the following link.
     
     
    In this you can do a search for gm_write_image and you should find two instances relating to this fuction.
     
    gm_write_image
    ( <image_type >, <filename>, <version_logic>, <xpcnt >, <ypcnt>, <width_pcnt>, <height_pcnt>, <quality>, <xyplot>)
     
    Description:
    The function prepares an image file of the specified type of the current viewport. It returns an integer status of 0 on success and 1 on failure.
    Input:
    STRING
    image_type[]
    The typeof the image file – BMP, JPEG, PNG, TIFF, VRML.
    STRING
    filename[]
    The name of the file to write the image with the file extensions - bmp, jpg, png, tif, wrl.
    STRING
    version_logic[]
    String to specify the version logic for writing the image file – “Overwrite”, “Increment”. Any other string defaults to “Increment”.
    REAL
    xpcnt
    The starting percentage of the viewport for the image file in the horizontal direction.
    REAL
    ypcnt
    The starting percentage of the viewport for the image file in the vertical direction.
    REAL
    width_pcnt
    The ending percentage of the viewport for the image file in the horizontal direction.
    REAL
    height_pcnt
    The ending percentage of the viewport for the image file in the vertical direction.
    INTEGER
    quality
    An integer specifying the quality of image.
    STRING
    xyplot
    The image captured will be of the current XY PLOT window as opposed to the model graphics viewport.
    Output:
      
    INTEGER
    <Return Value>
    0 for success and 1 for failure.
    Error Conditions:
    None.
     
Reply
  • Hi Toby,
     
    All of patran documentation is/ should be available by F1 Key from patran. It would point you to following link. I have just verified it and it points to the following link.
     
     
    In this you can do a search for gm_write_image and you should find two instances relating to this fuction.
     
    gm_write_image
    ( <image_type >, <filename>, <version_logic>, <xpcnt >, <ypcnt>, <width_pcnt>, <height_pcnt>, <quality>, <xyplot>)
     
    Description:
    The function prepares an image file of the specified type of the current viewport. It returns an integer status of 0 on success and 1 on failure.
    Input:
    STRING
    image_type[]
    The typeof the image file – BMP, JPEG, PNG, TIFF, VRML.
    STRING
    filename[]
    The name of the file to write the image with the file extensions - bmp, jpg, png, tif, wrl.
    STRING
    version_logic[]
    String to specify the version logic for writing the image file – “Overwrite”, “Increment”. Any other string defaults to “Increment”.
    REAL
    xpcnt
    The starting percentage of the viewport for the image file in the horizontal direction.
    REAL
    ypcnt
    The starting percentage of the viewport for the image file in the vertical direction.
    REAL
    width_pcnt
    The ending percentage of the viewport for the image file in the horizontal direction.
    REAL
    height_pcnt
    The ending percentage of the viewport for the image file in the vertical direction.
    INTEGER
    quality
    An integer specifying the quality of image.
    STRING
    xyplot
    The image captured will be of the current XY PLOT window as opposed to the model graphics viewport.
    Output:
      
    INTEGER
    <Return Value>
    0 for success and 1 for failure.
    Error Conditions:
    None.
     
Children
No Data