Jump to content
Developer Wiki and Function Reference Links ×

Function for current view


michaelk

Recommended Posts

In vs, I think the best way is a variation on the "Waldo" method. Insert a locus, get it's handle, get the type of its parent, delete the locus.

 

If the type is a group, you can do some checks to see if it is a special type of group. Depending on what you're going to do with the information, you may need to recursively get parent until you get to a viewport, symbol definition, plug-in object, or layer.

 

The SDK had some better tricks — I'm fairly sure those haven't worked their way into vs, but I'd be happy for someone to prove me wrong.

  • Like 1
Link to comment

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...