Jump to content
Developer Wiki and Function Reference Links ×

Get geometry of complex line styles


Recommended Posts

You can in Python, but not VS. 

 

Completely untested, but something like this should get you the group that represents the LS definition, and you can start to iterate over its geometry

 

hLS = vs.GetObject('<LINE STYLE NAME>')
if hLS:
    hAuxItem = hLS.aux
    kTypeGroup = 11
    while ( vs.GetTypeN(hAuxItem) != kTypeGroup and vs.GetTypeN(hAuxItem) != 0):
        hAuxItem = vs.NextObj(hAuxItem)
    if ( vs.GetTypeN(hAuxItem) == kTypeGroup):
        hLSGeometry = vs.FInGroup(hAuxItem)

 

 

Link to comment
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...