Article - CS72638

The Toolkit API ProSurfaceAppearancepropsSet returns error -48 (PRO_TK_CANT_MODIFY) in Creo Parametric

Modified: 23-Jun-2025   


Applies To

  • Creo Parametric 1.0

Description

  • Documentation states to set default surface props by passing NULL as the second arg in the call to ProSurfaceAppearancepropsSet().
    • This just returns a -48 (PRO_TK_CANT_MODIFY)
  • If passing a valid properties structure with actual default values the API returns the same return code (-48)
  • The Toolkit API ProSurfaceAppearancepropsSet()  doesn't work properly for surfaces on an imported solid Feature
This is a printer-friendly version of Article 72638 and may be out of date. For the latest version click CS72638