Referencing Article: CS275505 - Are Appearance States Accessible via Toolkit
At present (Nov. 13 2019), this functionality is not present in Creo Toolkit. Our intent is to export combined state data to a CSV file, then import these settings into other Creo files, so we can apply the same combined states to
other models.
At a minimum, the request is for:
ProAppearancestatesGet()
The article also requests additional functionality:
- ProSolidAppearancestatesGet() -> Collect all AS of a solid
- ProAppearancestateNameGet() -> Get name of an AS
- ProAppearancestateNameSet() -> Set name of an AS
- ProAppearancestateActivate() -> Activate AS (there is an UI button for that in the view manager dialog)
- ProAppearancestateActiveGet() -> Evaluate the active AS
- ProAppearancestateActivestateUpdate() -> updates the AS, which is active in the specified model. If the appearances of the surfaces have changed, then calling this function ensures that the active AS in the model is updated with the new appearances of the surfaces. This matches the "Save" command.
- ProAppearancestateCreate() -> Create new AS (there is an UI button for that in the view manager dialog)
- ProAppearancestateDelete() -> Delete existing AS (there is an UI button for that in the view manager dialog)
- ProAppearancestateSurfaceAdd() -> Add a surface to the AS with its current appearance
- ProAppearancestateSurfaceRemove() -> Remove a surface from an AS
- ProAppearancestateSurfacesGet() -> Get surfaces owned by the appearance state