Jump to content

Custom workspace workflow commands not showing in the toolbar


---
 Share

Recommended Posts

Hi there,

I am creating a custom workspace and am finding that scripts I have written that create actual elements are not showing on the toolbar. They will show if i change their settings to "no element creation".

 

Is there some stricter criteria for displaying scripts that create elements / perform checks in the workflow toolbar, or is this a designed limitation?

 

If the criteria for displaying these scripts are more stringent, then where would i be able to find thorough documentation about this, as the zeiss python API docs don't talk about it.

Link to comment
Share on other sites

Hi,

This is is a known limitation. As a workaround, you can create a wrapper script which calls the interactive scripted element creation.

E.g.:

gom.interactive.sys.create_element_by_script(
    check_type='none',
    name="",
    element_type='curve',
    parameters={...}, # optional
    script_uuid='3dd6f706-d9ed-4c23-aa88-70d48a7eaf26' # Replace by your scripted element's UUID
)

Best regards,

Matthias

Edited
Link to comment
Share on other sites

Please sign in to view this quote.

Hi Matthias, thanks for the reply! 

 

I did settle on this method, but I was worried that it might not work in future versions of the software, so it's relieving to know its the recommended work around for this.

Link to comment
Share on other sites

 Share

×
×
  • Create New...