🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.illustrator.featurerequests
4 messages
4 total messages Started by steve_marshall Thu, 05 Mar 2009 15:42
Select all lines/objects > or < size
#240
Author: steve_marshall
Date: Thu, 05 Mar 2009 15:42
5 lines
1856 bytes
At work, I have illustrator 13 (a.k.a. CS3 but the whole CS concept has been developed like a bad joke) and I'm given lots of images from engineers that I have to edit for manuals. The entire image is of a machine the size of a small house, and yet the drawing contains every detail of the head of a bolt, for every bolt. No one will even see the light pixel for the bolt on their screen that is made from 30 lines. I need a way to select objects or lines that are less than a certain length so I can delete them in one key stroke. Instead, I have to click, delete, click, delete a thousand times. It can take me 2 days for this. If I'm lucky, I can click + drag an area, but that usually then involves shift clicking all the surrounding things I don't want selected after. One simple feature would save me 2 days of work.

I want a dialog box that lets me choose between selecting objects and or lines that are greater than or less than or equal to a length, and I can pick between points, picas, inches, feet, millimeters, centimeters, meters, or pixels.

And even more cool, would be if a plug in was made of this for AI 13 instead of making me buy another version. Despite the 2 days of work it'll save me, convincing a corporation to spend hundreds of dollars for 1 feature will be a tough sell.
Re: Select all lines/objects > or < size
#241
Author: Larry G. Schneider
Date: Thu, 05 Mar 2009 17:42
18 lines
1154 bytes
If you are working on a Mac, here's a script that someone wrote to do just that

------------
property schnibbleSize : 2 --size in points

tell application "Adobe Illustrator"
	if current document is {} then return
	tell current document
		set g to every path item whose editable is true and width < schnibbleSize and height < schnibbleSize 		set selection to g 		delete selection



	end tell
end tell

-------------

Cut and paste the above into the Apple Script Editor and save in the Scripts folder of the AI Presets folder.
Re: Select all lines/objects > or < size
#242
Author: steve_marshall
Date: Thu, 05 Mar 2009 18:07
3 lines
665 bytes
Darn. I'm on a PC

Thanks, though
Re: Select all lines/objects > or < size
#243
Author: James_Talmage
Date: Thu, 05 Mar 2009 18:08
19 lines
1283 bytes
Something similar in Javascript (therefore cross-platform):

var docRef=activeDocument;
var minLength=prompt("Deselect Paths shorter than:",5);
for(i=docRef.selection.length-1;i>=0;i--){
	var currItem=docRef.selection[i];
	//alert(currPath.length>minLength);
	if(currItem.typename!="PathItem"||currItem.length>minLength){

			currItem.selected=false;
		redraw();
	}
}

The script assumes you already have a selection. It then DEselects whatever selected items are not PathItems or have a path length of greater than the minimum specified by the user (in points).

This is a first-off rough. It can be easily altered or elaborated.

JET
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads