Select and you are all Set

by Phenom ‎05-16-2014 06:31 PM - edited ‎05-19-2014 02:10 PM (6,020 Views)

This article discusses:

Object selection options in the Draft environment

Several wish list items.

A free macro for one of the wish list items.

 

The Select tool is the foremost command in the Draft environment and Solid Edge presents a plethora of options to select elements or drawing objects in the Draft sheet.

 

The Select command is active by default and the Command bar sports most of the selection modes and options available. Right off the bat, there are two sets of selection modes with one mode from each active:

 

1. Top Down or Bottom Up selection: This applies to groups as its tooltip suggests. When the Top Down mode is active, the group is selected, whereas the Bottom Up mode allows picking:

  a. An element inside a group without actually ungrouping the elements.

  b. An element inside a Block without having to Unblock it.

  c. Elements drawn in a drawing view using the Draw in View option.

  d. Typically objects that were drawn individually using separate commands and bundled together for convenience using yet another command.

 

The elegance of the Bottom Up mode is it allows modifying elements inside a Group using Trim, Extend, etc. on-the-fly and the groups remains intact and absorbs all the modification on-the-go. It works like a charm so much that you should try this out for self.

 

Whenever Solid Edge brings this kind of functionality to its Block command, it will hit a home run for even AutoCAD does not allow such modifications without having to explode the block first and redefine after the changes are made.

 

2. Rectangular or Polygonal Fence selection:

   The rectangular fence mode expects user to press-and-drag mouse around objects and selects them in two ways:

  a. Left-to-Right dragging creates a semi-transparent blue filled rectangle with a continuous border and selects objects that are completely within the rectangular fence.

 

 

 

  b. Right-to-Left dragging creates a green semi-transparent rectangle with a dashed border and selects objects that lie inside and also those intersected by the four sides of the fence.

  The color coded fences are a recent addition and should make AutoCAD users feel at home.

 

The transparency of the fence can be adjusted from the Solid Edge Options dialog. Take the Colors tab on the left and in the right panel are settings for adjusting opacity and colors for the fence.

 

 

The polygon fence option allows users to simply click (note: no press-and-drag here) several points to create a polygonal border for enclosing objects. This is useful when selecting objects in a cluttered drawing such as in the sample seddasc.dft while carefully circumventing other un-required objects which might also get selected when otherwise using a rectangle fence.

 

 

If at any point you feel something has gone wrong with the selection points there are the Back and Next buttons on the Command bar with the blue arrow icons on them which take you back in time and allows laying out the polygonal fence correctly. This is sort of Select command's own little undo-redo actions.

 

The same can be accomplished by pressing the B and N keys for Back and Next.

So is it just a coincidence that the B and N keys are conveniently placed on the keyboard in the right order just above the spacebar and in the middle of the row ? I think its ingenuity on part of the developers at Solid Edge.

Perhaps some music player can take a hint from this and assign these keys to play Back the previous or Next song in a playlist. Smiley Wink

Closer home, the Feature Playback  function in the Part environment can implement the Back-Next KB shortcuts.

 

As if this wasn't enough, the Fence Filter opens even more windows of opportunites taking selection to a whole new level.

 

 

 

When used along with either the rectangular or the polygonal fence, the fence filter determines which objects relative to the fence get selected:

 

  a. Inside - objects which are fully within the fence.

 

  b. Outside - objects fully outside the fence and in the whole drawing. Good for picking all but few objects in a drawing.

 

  An equivalent of this in the Windows Explorer is selecting a file/folder first and pressing Alt+E+I resulting in all but the originally selected files/folders getting selected i.e. it inverts the selection.

  Also reminds me of school days when my sports teacher punished me for being late to reach the playground by announcing "everybody but me.." well... gets a short break! Smiley Happy while I was sent sprinting 4 laps around the playground along the 'Fence' - no pun intended.

 

  c. Overlapping - objects intersected by the fence but excluding those fully within the fence or outside the fence.

 

  d. Inside and Overlapping - and,

 

  e. Outside and Overlapping - Scroll up to the beginning and note I used the term Plethora meaning 'a large or excessive amount of something'.

Who for the record having used SE or ACAD for a significant part of the day remember using methods (d) and (e) above when a simple Ctrl+Pick and Shift+Pick come first to mind.

 

AutoCAD users would be familiar with typing the W, C, WC, WP, CP keywords which Solid Edge offers with a sleek user interface making it much easier and accessible to choose these similar options.

This makes me think 'Is Solid Edge is to AutoCAD what Windows is to DOS...?' AutoCAD users, don't get me wrong. There was a well defined period in history, that I breathed, when 'typing' quit/exit were the only ways to bid adieu both the DOS prompt and ACAD.

 

But objects may not necessarily be picked in close proximity and visually. There are options to pick them intelligently too especially those lying farther from one another, by virtue of being of similar type viz. Blocks, Relationship handles, Text objects, Dimensions, Annotations, Drawing views etc.

 

The Select Options dialog extends such power and flexibility to pick the desired objects.

 

 

Kick this dialog to the screen using its button on the Command bar and set the type filter to say just the Blocks while leaving other options un-checked. Click OK. After this proceed with any of the selection methods like dragging around the whole sheet or in a small area. This results in only the Blocks picked as shown in image below from the sample seddasc.dft file.

 

 

Also, note the Active Layer and All Layers options which adds another 'layer' of flexibility and power to object selection.

 

Wishlist item #1 My small wish list item in the Select Options dialog would be Select all and De-select all check boxes that can make life easier.

 

The Smart Select feature lets you select objects based on their specific properties like Color, Layer, Linetype and Linewidth. It prompts to select an object and subsequently pops a dialog allowing to specify which properties to match and upon clicking OK selects all objects that fulfil the criteria.

 

The most useful is the Element type option which helps in picking all elements of the same type.

 

 

Picking two or more options creates a composite filter. Checking both Element type and Layer options specifies that all objects be selected which are of the same type as that of the object specified 'and' which are also on the same layer as the specified object.

 

A remarkable example of this is picking balloons in an Assembly view which typically are spread all around the view and can be all picked at once by setting the Element type filter. A wonderful illustration by John Pearson is here.

 

Wishlist item #2 My wish list item for SmartSelect would be - ability to select elements of same type and further filtering them based on parameters. For example pick all circles of radius 'equal to' or 'greater than' or 'less than' or 'less than or equal' or 'greater than or equal' to a specified value. Another example would be picking all relationship handles of the Tangent type or may be picking all Bocks of a specified name.

 

Another area of smart selection is the QuickPick. This does not live on the Command bar but in the field and is available when hovering the mouse pointer in an area where several objects overlap. The cursor turns to an arrow with a 'computer mouse' along with three dots called ellipses - not be confused with an Ellipse - that is a completely different animal.

The change in cursor indicates to the user that multiple objects are lying right beneath the cursor and the mouse icon in the cursor hints that the user must now right-click upon which the list of all overlapping objects is displayed so the user can then proceed to pick one.

 

 

As you hover over the items in the list, the objects highlight in the background on the Draft sheet facilitating correct picking of objects.

The important QuickPick settings being the time in milliseconds to hover the cursor before QuickPick is activated and also which mouse button - right or left - to use to display the overlapping objects list.

 

These are few of the selection methods available in the Draft environment alone. There are separate selection practices in the Part and Assembly environment and further more down in the sketcher.

 

Wishlist item #3 Another wish list item, especially for those migrating from AutoCAD would be the selected object count which is available in the Part and Assembly environments but missing in the Draft where it is needed the most.

 

 

This time around I decided to fulfil my own wish and went ahead to write a tiny macro called SelCount that does this. The macro is attached with this post.

 

Steps:

1. Download the attached SelCount.zip guilt-free and extract the files SelCount.ex_ and SelCount.PNG.

2. Rename the macro extension to .exe

3. Keep the macro and the image file in the same folder i.e. the PNG should always accompany the macro and in the same folder.

This is because when you assign the macro to a button on the ribbon, the PNG being the same name as the EXE will be automatically displayed on the button. The EXE itself does not not have any icon embdded nor Solid Edge like in the earlier versions allow assigning bitmaps to customized buttons.

4. Also assigning a keyboard shortcut would be a nice trick.

 

How to use:

1. After copying the macro and the PNG to a folder, assign the macro to a button in the Draft environment. The empty slot next to the Select button would be a great place.

I assigned the Ctrl+F shortcut as seen below:

 

 

 

2. Select objects in the Draft sheet and click the macro button or press Ctrl+F.

 

3. Observe the Status bar or PromptBar which displays the count of selected object.

 

 

 

You can use the macro in combination with the Selection Options or SmartSelect too.

Open the sample seddasc.dft file from the Training folder of Solid Edge.

Click the SmartSelect button on the Command bar and select a Block. In the SmartSelect dialog check 'on' just the Element type box and leave other boxes unchecked. Click OK. All blocks in the drawing are highlighted. Now press Ctrl+F and observe the PromptBar - it lists the count of just the blocks currently selected in the sheet.

 

What are your wish list ideas regarding selection of objects in Draft or other environments of Solid Edge ?

Do not hesitate to post in the comments section below.

Do not be shy of mentioning other CAD program where you like its select functionality, describe it here with proper justfication.

This community of yours is gaining momentum - Siemens (Solid Edge) is closely watching. The time and opportunity is now, so login and send across your message.

 

The macro attachment is just down here at the end of this line, but don't forget the comments.

Comments
by Phenom
on ‎05-17-2014 03:33 PM

Hi,

 

Great post as always.

 

My wishlist is simple: Add/Remove (Plus/Minus) Selection mode like in 3d environment. There I can select more element then clicking on elem and after this press down Space and will be green/red (plus-minus) sign next to cursor. Now the selection mode inconsistent a bit, because I cannot use this only in 3d environment and Synch sketch. But this Add/Remove Selection very useful.

 

BR,

 

 

 

by Phenom
‎05-17-2014 05:02 PM - edited ‎05-17-2014 05:02 PM

Hi Imi,

 

Expecting Solid Edge to have selection methods and modes consistent throughout its various environments is reasonable.

 

To me it appears that with the Draft environment, SE is perhaps focusing more on making AutoCAD migrants feel at home. These users find it easy to have commands work in a manner similar to those in AutoCAD. Hence the selection command is more ACAD-like.

 

Whereas for other 3D environments, SE is free to evolve with its own ways and style of selection like most other features. Hence the inconsistency.

 

by Enthusiast
on ‎05-20-2014 02:04 AM

Hi Tushar,

 

How did you add the custom button to the ribbon? I didn't think this was possible. Thanks.


Dan

by Phenom
‎05-20-2014 08:15 AM - edited ‎05-20-2014 08:20 AM

Hi Dan,

 

To add the custom button to the ribbon,

1. Right-click on an existing button on the ribbon to display the context menu.

2. Select Customize the Ribbon from the menu.

3. In the Customize dialog, the Ribbon tab should be active.

4. On the TreeView on the right side, expand the Home or Sketching nodes - both have the Select group.

5. Expand the Select node and also select it.

6. At the top on the left side, pull down the list called Choose commands from:

 

 

7. At the bottom side of the dialog, click Browse...

8. Pick the SelCount.exe

9. Pick the Selcount.exe again in the left-side list in the Customize dialog.

10. Click Add >>

 

 

11. If you have also extracted the SelCount.PNG in the same folder as the EXE, the icon will be picked up automcatically and displayed.

Note: If you want your own icon, make a 32 x 32 PNG file using MS Paint. ICO and BMP files should also work.

12. Right-click the SelCount.exe and select Rename or simply press F2 to rename it.

13. Select the SelCount node in the tree and click Move Down several times to move it to the end of the list which also moves it appropriately in the ribbon group.

14. Right-click on the SelCount node in the tree and select Small/Large button and Text/No text as desired.

15. To assign a keyboard shortcut, take the Keyboard tab and follow the steps in the image below.

 

 

16. Close the Customize dialog. Hover the mouse cursor over the Selcount macro in the Sketching tab on the ribbon.

Check everything appears fine and the macro works properly.

Even with no object selected, the PromptBar should display '0 object(s) selected'.

 

by Enthusiast
on ‎05-20-2014 07:00 PM

Tushar, thanks for the very detailed response.

by Community Manager Community Manager
on ‎05-21-2014 12:44 PM

Wow. @Dan_Lanigan -- a reall blast from the past. What are you up to? Still actively using SE?

by Enthusiast
on ‎05-21-2014 06:47 PM

Hi Dan, yes still using SE although not quite so actively lately as most of my work has been for SW clients who provide their own license. SE work has picked up in the last month or so though, hopefully that trend will continue.

 

ST7 looks like a winner, I'm especially looking forward to the keyshot rendering - keep up the good work!

 

BTW: @jnewell said I should talk to you about SE shipping with a Windows property handler (AKA SE Powertoys) - expect an email soonSmiley Happy

by Esteemed Contributor
on ‎05-21-2014 07:02 PM

Dan_Lanigan wrote:

BTW: @jnewell said I should talk to you about SE shipping with a Windows property handler (AKA SE Powertoys) - expect an email soon:smileyhappy:



AMEN!......this would be a welcome integration!   +1 

by Phenom
on ‎03-02-2015 02:35 AM

@Dan_Laniganand Dan, here's my bunch that could go into SE and waiting for mails too !!

 

Solid Edge Maker Faire

 

Labels