zero Posted March 16, 2004 Share Posted March 16, 2004 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 Quote Link to comment
MullinRJ Posted March 16, 2004 Share Posted March 16, 2004 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 Quote Link to comment
kiwi Posted March 16, 2004 Share Posted March 16, 2004 Are you testing your objects with" GetTipe(h): INTEGER" ? A script doesen't take that long to ungroup, test all your objects (sub ungroup if needed!), and group them again. Quote Link to comment
ccroft Posted March 16, 2004 Share Posted March 16, 2004 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? Quote Link to comment
Recommended Posts
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.