WhoCanDo Posted December 1, 2014 Share Posted December 1, 2014 I want to place text next to each of the lines I have selected to indicate their lengths on my drawing. That's the easy part - done! The problem is that within a group, lines are also selected. When we create a groups we select the items and group them and then deselect the group but the items within the group remain selected. If the lines within the group remain selected then, even though I have not selected the group, these lines also have their lengths placed along side. How can I deselect all objects other than my chosen selected lines? DSelectObj (InObject); doesn't work. Quote Link to comment
Hippocode Posted December 1, 2014 Share Posted December 1, 2014 Just ignore groups in your loop. Quote Link to comment
Miguel Barrera Posted December 1, 2014 Share Posted December 1, 2014 Make it a tool rather than a command. As you pick/select each line, the text will be placed immediately after. You can continue picking as long as the tool is active. Quote Link to comment
Pat Stanford Posted December 1, 2014 Share Posted December 1, 2014 Could you run a DSelectAll before selecting the items you want to label? Or do a GetType(GetParent) on each object. If the parent is not a layer then you know it is part of a group. Quote Link to comment
WhoCanDo Posted December 9, 2014 Author Share Posted December 9, 2014 Thanks Guys, lots of good ideas. Hipppothamus - even if I ignore groups, the lines within the groups aren't ignored by VW because they are selected. Miguel - that's a good idea until I have many many lines then the task is too taxing. Pat - thanks that worked a treat. Quote Link to comment
Miguel Barrera Posted December 10, 2014 Share Posted December 10, 2014 Get a handle to the parent of the line and get the object type. If it is a group type then skip. 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.