Showing results for 
Search instead for 
Did you mean: 

BlockStyler: Show Dialog in Edit mode

I just learned that a BlockStlyer.BlockDialog can be shown in Edit mode.


Now the question arises how to gracefully handle using both modes (edit and create).


I've linked the block dialog to a custom feature. Double clicking the feature launches the dialog UI's main function, without any arguments. I can query the Sessions CustomFeature manager to tell me if a custom feature is being edited, and base the mode on if that is None or not. That works nicely, but it seems kind of a roundabout way of doing things.


When creating a new instance, of course I could pass on some kind of argument to the call to the UI, maybe through a wrapper function, and call Edit mode by default if that argument is not there. Also, not very graceful.


But maybe there is a better way? Does anyone know if that happens to be the case? Is there some recommended way of finding out which mode the Dialog should be called in?


Re: BlockStyler: Show Dialog in Edit mode

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor
Currently the recommended way is to get edited feature from custom feature class manager, if null launch in create mode, else launch in edit mode
Siemens Industry Software