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.

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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