Is it possible to have a stretch handle enabled/visible to a condition, such as a layer visible?
Presumably, in the PCell you would only call the rodAssignHandleToParameter() function when the test condition is true, otherwise don't call it. Is this what you mean? The visibility of the stretch handles is controlled by the Options -> Display -> Stretch Handles item, or the associated .cdsenv variable
layout displayStretchHandles boolean t
I'm not sure that you can make handles individually visible, but you should be able to create or not create the stretch handle as indicated above.
Hope it helps.
In reply to skillUser:
In reply to Eduardas:
It's not a bug. Most likely you have the displayStretchHandles setting stored on either the cellView, the library, or technology library. When a design is opened, display and editor options are searched for in this order:
Wherever it finds it first, will set the property on the window. So if it has been set in any of the top three, the cdsenv will have no effect because something more specific has overridden it.
To check, in the layout window do File->Properties and go to the Property tab (or shift-Q to bring up the cellView properties for most people). If it's not there, go over the library in the library manager and do RMB-> properties. Look for a property called viewProps and if it's there, it will have an EXPAND button next to it. This will popup another form with potentially multiple viewTypes, but the one you'd be after is maskLayout. Click on the EXPAND button next to that, and you should see any saved display properties. If it's not in the library, do the same process on the technology library that you're attached to.
In reply to Andrew Beckett:
Thank you for quick reply. I checked all this and did not find any viewProps...
To re-check, I created new lib & cell and have .cdsenv loaded. All this fine.
Most probably it was setted somwhere else. E.g working lib or techfile.
At least I can see stretch handlers now,