How can I take style from existing object? Brush from region, symbol from point?
In MapBasic documentation and in Google I can find only how to change object's style but can't find how to take it.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
You can use the ObjectInfo() function to access a number of "attributes" from the spatial objects, this also includes the styles:
Fetch First From Selection symCurrent = ObjectInfo(Selection.OBJ, OBJ_INFO_SYMBOL)
In the example above you read the symbol style from the selected object using the Selection.