Jump to content
Developer Wiki and Function Reference Links ×

editing a group during script execution


zero

Recommended Posts

I am writing some scripts to manage classes. one thing I would like to do is select an object on screen, test whether it is a group or symbol, and if yes, 'enter' the group/symbol in order to pick the class of a sub-object.

I know how to test whether the object is a group/symbol, but I cannot find a way to 'enter' the group or symbol.

DoMenuTextByName doesn't work for EDIT Group, so I just dunnoe.

Anyone have any ideas?

Thanks

Link to comment

Hi Zero,

You can use FIn3D() once you have a handle to a group or symbol.

HndInsideObj := FIn3D(Hnd2GrpObj);

Then you can navigate using HndInsideObj. It works for all container objects (i.e., Groups, Symbols, Extrudes, Meshes, etc.).

There are also calls FInGroup(), FInSymDef(), and a few others. I haven't used them all, but I think they do the same thing.

HTH,

Raymond

Link to comment

If you only want to work on groups then use FInGroup().It eliminates the need for a test since it ignores things that aren't groups.

Also,Group will grab everything that is selected,so you have to be careful.For EG it's a lot harder to make a script that will work on more than one group at a time and return them to their correct consistency.

With FInGroup() you can write loops to process as many selected objects as you like.

F'n Group....is this an example of developer humour?

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