1

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.

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.