Jump to content

Custom Selection


Recommended Posts

I have a large drawing where many people have worked on it. As a result, they have chosen to do opaque/percentage fills with no pen weight border.

These have also been done on different classes.

I cannot seem to find the option under Custom Selection to select all items that have the opaque/percentage.

I cannot imagine that this is not an option, but it is passing me by.

Before posting, i did start to try and select them individually, but due to not being able to select items through rotation when classes are over/under each other it is proving all very hard going for what should be a 5 second job.

A suitable professional solution greatly appreciated.

Cheers......Q

Using VW2011 - 3.2ghz i3 - Mac

Link to comment

Reporting back, it selects only opacity with that percentage. Typically, I have had a user that has decided it is best to set a different percentage to almost every blinking shade aspect they wanted.

To begin with, I was lucky to pick up a bulk of them, but since still needed to fish through.

Be good to be able to say, select any opacity object, irrelevant of percentage.

.

Link to comment

Yes, selecting by opacity criteria is new in VW 2012. For VW versions that have Opacity (VW 2008 and later), you can use the follow script to select object in a range of opacity values. It is similar to a script I posted a couple of weeks ago that selects 3D Symbols based on the Z Heights. You may see a pattern emerging.

PROCEDURE xxx;
{ 27 Mar 2012 - R. Mullin }
{ A way to select objects in a range of opacity values. }
{ Opacity values are in the integer range of 0 to 100, inclusive. }
{ Only visible objects on the current layer are affected. }
CONST
OpacityHi = 90;		{ Edit value to suit needs }
OpacityLo = 50;		{ Edit value to suit needs }
VAR
H :Handle;
OP :Integer;


function SelectByOpacity(H :Handle) :Boolean;
{ Select objects in the range of OpacityLo <= OP <= OpacityHi. }
Begin
	GetOpacity(H, OP);
	if (OP <= OpacityHi) & (OP >= OpacityLo) then 
		SetSelect(H);
End;		{ SelectByOpacity }


BEGIN
DSelectAll;	{ remove this line if you want to add to existing selection }

ForEachObjectInLayer(SelectByOpacity, 1, 0, 0);		{ Visible, Shallow, Current layer }
END;
Run(xxx);

HTH,

Raymond

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