AutoCAD .NET :: Get Current Selection

Feb 24, 2010

How can I get the current selection set? Editor.Get Selection() will prompt for a new selection, but I would like to check if the user has selected objects before running the command.

View 5 Replies


ADVERTISEMENT

GIMP :: Can't Add To Current Selection

Jul 24, 2011

When I hold Shift with the lasso tool, it doesn't add to current selection.

View 4 Replies View Related

Photoshop :: New File Based On Size Of Current Selection?

Mar 29, 2012

Is there a way to make a New file based on the current selection?

View 2 Replies View Related

Illustrator Scripting :: How To Center Current Selection To Artboard

Feb 17, 2014

how do I center my current selection to the artboard? just like hitting the "horizontal align-center" and "vertical align-center" buttons. I've been searching for the last two hours and before my head hits the keyboard.
 
What I'm struggling with: in my init function i create a new document and then copy all layers from the previous document step by step to the new document and then save it as SVG.
 
// Init
(function(){
          destination = Folder.selectDialog('Select folder for SVG files.', docPath);
          if (!destination){return;}
          holderDoc = app.documents.add();
          stepThroughAndExportLayers(docRef.layers);
}());
 
my problem is that holderDoc = app.documents.add(); always creates a document that is not the same size as my initial document where the layers get copied from.
 
so I want the exact same artboard size as in my initial document.I'm fine with either doing it as fixed values or taking directly the values of the inital doc. i tried this in the segment where I create the new document:
 
// Init
(function(){
  destination = Folder.selectDialog('Select folder for SVG files.', docPath);
  if (!destination){return;}
  holderDoc = app.documents.add();
  holderDoc.artboards[0].artboardRect = [0,0,128,128];
  stepThroughAndExportLayers(docRef.layers);
}());
 
and get this error message: "Error 1200: an Illustrator error occured: 1346458189 ('PARM')

Line: 83
-> holderDoc.artboards[0].artboardRect = [0,0,128,128];"
 
which from what I've read on the web means that illustrator doesnt know what document to pick. but i have called it directly. I do not want to fit the artboard to the images/layer. the artboard should always have a certain size. (for me 128px by 128px)
 
// edit: workaround
(function(){
          destination = Folder.selectDialog('Select folder for SVG files.', docPath);
          if (!destination){return;}
          var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveAr tboardIndex()];
          var ABRect = activeArtboard.artboardRect;
          holderDoc = app.documents.add();
          holderDoc.artboards.add(ABRect);
          holderDoc.artboards.remove(0);
          holderDoc.artboards.setActiveArtboardIndex(0);
          //stepThroughAndExportLayers(docRef.layers);
}());
 
i now added a new artboard to the new document with the same size as the artboard on the initial document.i remove the predefined artboard on the new doc and set the new artboard as active the artboard is now not centered into the window. which lets illustrator place my image with ctrl+c -> ctrl+v somewhere outside the artboard.
 
i now need to align my selection to the center of the artboard. but i cant find any reference on how to center a selection to the artboard.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Current View Align With Current Ucs?

Jul 20, 2013

how can i know if the current view/display is align with the current ucs?

let's say i have rotate the ucs about z axis 45 degrees and make it plan now i draw some things and then i change back to world

worlducs = 1

viewdir = 0,0,1

ucsxdir = 1,0,0

ucsydir = 0,1,0

but the display is still in the ucs z 45 (ucsfollow = 0) set the view to PLAN current (now the view is aligned) but the system vars does not change.

For a plan UCS, you would need to compare the VIEWDIR system variable and the cross product of the UCSXDIR and UCSYDIR system varaibles.

[URL]

View 7 Replies View Related

AutoCad :: Print PDF To Current Plot Settings In Current Drawing Directory

Sep 29, 2011

Is there a macro/script/deisel that will automatically print a pdf (cute pdf autocad lt 2007) to current plot settings in current drawing directory and give it the current drawing view name and number? Disk space not a problem these days and would save time to have a pdf copy of all drawing tabs readily stored in the directory ready for issue.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Current Plotter Name For Current Tab

Sep 3, 2013

Technique that can check the current plotter name for the current tab and assign it to a variable?  i.e. can it be assigned to a variable to check if if equals "myplotter1".  The next step  - is there a technique to change the plotter name to "myplotter2.pc3".

I have partially done the latter part of this in the past using the -plot command line to ASSIGN a  new plotter but I would really like to only run the routine if it really needs to.  

View 9 Replies View Related

Photoshop :: PS CS3 - How To "exit" Current Selection?

May 20, 2007

Finding some "usability" issues with PS...If i want to edit a textbox I know I have to specifically select the text tool but after making a change to one text box im finding the only way i can exit the current textbox and select another is to click another tool on the toolbar, then click the other textbox! Surely I should just be able to click the next textbox straight away to select it(?) Or there be some short cut to exit current selection (?)

View 2 Replies View Related

Edge Animate CC :: Get Current Label In Timeline From Current Location

Jun 5, 2013

I have 1 Next button that is used on the timeline.  Each position has a pause then a play so there is only 1 button.  I need to get the label info so I know where I am so I can save the location of the timeline that the user was at if they exited before they finished the process.

View 6 Replies View Related

AutoCAD 2010 :: Multiple Grip Selection Not Working When Pan Or Zoom During Selection

Jul 12, 2011

When I select a hatch or polyline or any object with grips for that matter, and hold down shift to select multiple grips on the object or objects and then press my middle mouse button to pan or scroll it to zoom, the grips that I have selected de-select, meaning I have to set up the view so that all the grips I want to move are visible before selecting them.

This is only happening on some drawings (although it is most of them) and only when I use 2012 not 2011. Which system variable it is that has gone screwy that I need to reset? or is it something else?

View 9 Replies View Related

AutoCAD Inventor :: Prevent Display Of Selection Lines Upon Selection?

Mar 28, 2013

I have a flexible sub-assembly in my top assembly. Sometiems I'm trying to demonstrate to others how a mechanism in the sub-assembly works using this flexibility feature. It works great, but when I move just one little part of a flexible assembly, Inventor displays the wire-mesh of the entire flexible assembly, because technically the entire assembly is selected, even though I'm only moving one part. It clutters up the screen very badly, detracting from what I'm trying to show.

Is there a way to prevent Inventor from displaying the selection lines? Either only when I'm moving a part in a flexible assembly (which would be great), or to just turn them off completely when I'm presenting like this? I know I can turn off pre-select, but that doesn't work, because once I start moving a part in the flexible assembly, the assembly is "selected" and the wire-mesh displays.

View 3 Replies View Related

AutoCAD .NET :: Leave Elements In Selection Mode After A Selection Action?

Sep 11, 2013

When creating a selection Command using the PromptXXXOptions and PromptXXXResult. The entities are selected on the current view, but once the selection ends the entities return to an unselected state.

Is it possible to leave them in selection mode.

I want to this, because it will be better to use Editor.SelectImplied() instead of saving the last selection object Ids.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Remove A Selection Set From A Selection Set

Nov 15, 2013

I've created a lisp that draws the boltholes of a pipe flanges, using the correct number of holes, at the correct diameter at the correct bolt-hole diameter and then rotates.  Everything works seamlessly, when i do just one flange.  But I've discovered that fewuently there will be mulitple times when a user will have to perform the command.

So the idea I had was to do the following:

Select all circles with     (setq CirclesFirst (ssget "X" (list (cons 0 "CIRCLE"))))

Go through the code to create the new circles.

Select all circles with     (setq Circles (ssget "X" (list (cons 0 "CIRCLE"))))

Remove selection set "CirclesFirst" from "Circles".

But what for some reason (command "_.select" Circles "R" CirclesFirst "") does not work.

View 9 Replies View Related

AutoCAD .NET :: Get Current View Name?

Oct 19, 2013

I would like to get the current AutoCAD View name in .NET.

Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor.GetCurrentView().Name always returns "", even when viewing a View with a name.

View 5 Replies View Related

Photoshop :: Why Vector Selection Tool (white Arrow) Change Layer Selection To Another

Sep 1, 2013

I have been continually annoyed, when creating a vector mask-heavy document, with trying to select vector mask points by dragging a rectangle only to find that it instead selects a layer higher up which has a larger vector mask.
 
The only workaround is to manually select the points of my mask or to drag a rectangle from outside the canvas, meaning I have to zoom out or scroll to the edge - sometimes annoying if I am zoomed in quite far.
 
I know that the move tool can be set to automatically select a layer, depending on what part of the image is clicked, but why is there not an option to turn this off for vector editing?

View 1 Replies View Related

Photoshop :: Selection / Patch - Select Blue With Quick Selection Tool?

Dec 10, 2012

If you look closely in the attached picture, there is a spot of light blue on the player's helmet, that looks like a mistake (think it should look like the grass behind it)...though it actually may be part of his helmet.
 
Regardless, I'd like to take it out. My idea was to select the blue with the quick selection tool, then bring that selection out to the grass, select the grass with that size/shape of selection, copy/paste and then bring the grass selection into the blue part so it looks like grass in what was the blue part.
 
The problem is I don't seem to be able to move the selection without taking the blue with it (so it's not an empty selection and therefore can't select a piece of the grass.)

View 2 Replies View Related

Photoshop :: Selection On Sliders And Curves Altered When Click Off Them After Initial Selection

Sep 13, 2012

I have Photoshop CS5 on a Mac OS 10.7.4 My problem is that when I am using curves or a slider, my selection does not stay in the same place. For example, I chose the number 8 on a slider, after I release my selection it will either go one number after or before my selected number. I have had this problem since I got my computer, December 2011, but it has only recently started to frustrated me because of having to use Photoshop a little more than I usually do.

View 2 Replies View Related

Photoshop :: Complex Selection - Best Selection Method To Drop Out A Background

Oct 24, 2011

how to "drop out" the background from this photo (I have loads to do which are very similar). Thus far I have tried channel selections and the calculations tool + all the normal quick selection tools and I just cant get it to work without spending hours adjusting things. The end effect I need to achieve is a perfect white background without loosing any of the detail if possible. On a side note I have also tried taking the photo on blue, green, black and white backgrounds but due to the number of colours present in the products its just not working for me.

View 5 Replies View Related

AutoCAD .NET :: Current DimStyle Of The Drawing?

Aug 14, 2013

I am trying to find out what the current DimStyle of the drawing.

I have iterated through all DimStyle but can’t find any way of finding the current Style.
 
For Each DsrID In DST Dim R As DimStyleTableRecord = CType(DsrID.GetObject(OpenMode.ForRead), DBObject) Debug.Print(R.Name)Next

View 5 Replies View Related

AutoCAD .NET :: Set Page Setup Current?

Feb 25, 2013

I have existing .NET code that adds page setups to drawings.  I now wanted to set the newly added page setup as "current" within the drawing. 

The "manual" way to do what I am asking is by clicking the "Set Current" button from within the Page Setup Manager dialog.  How would I do this programmatically?

View 3 Replies View Related

AutoCAD Civil 3D :: Save Current Map

Jun 13, 2011

Trying to use this option in C3D2012 but just get

Command: _maptoacad Unknown command "MAPTOACAD".  Press F1 for help.

Is this another command that hasn't made it from the standalone version of Map 3D?

View 6 Replies View Related

AutoCAD .NET :: Change Current Space

Jul 11, 2011

I have a small application that zooms on an entity with specific properties. The problem is that if I am in paperspace and the entity is in model space, i cannot see the entity. How can I make the entity's space to become the current space?

View 3 Replies View Related

AutoCAD Map 3D :: Import Styles To Current DWG

Oct 5, 2010

Surley there is a way to import styles to your current dwg. How to do that?

View 8 Replies View Related

AutoCAD .NET :: Change Current WCS To Object UCS

Sep 9, 2013

I would like to change current WCS to the object's UCS.

In AutoCAD I manually do this:

a) WCS -> OBject.

b) I'm selecting object;

c) PLAN.

I wrote this
 
if (sourceObject is Entity) {
Entity ent = (Entity)sourceObject as Entity;
Point3dCollection pts = new Point3dCollection();
ent.GetStretchPoints(pts); Point3d pt = pts[0];
double viewsize = (double)Application.GetSystemVariable("VIEWSIZE");

[Code]....

how to set current coordinate system to the object's UCS?

View 1 Replies View Related

AutoCAD .NET :: Getting Current Selected Entities

Nov 26, 2012

I try to get all current entities for my own custom palette.

I tried it with ed.SelectionAdded and ed.SelectionRemoved but it doesn't work if I for example pressing ESC.

I want to get the Object Ids saved in a ObjectIdCollection and I don't want to run an autocad command every time.

View 1 Replies View Related

AutoCAD VB :: Current Cursor X / Y And EventHandlers

Nov 15, 2013

Getting the [current] x,y position of the crosshairs seems stupidly difficult! Also, while I can see the event handlers in the object browser, there are a lot and not much input. I'm trying to project different temporary graphics based on where the users mouse is on the screen - I'm happy to do it in increments to make it faster but I've been trying to capture this:

PointMonitorEventHandler 

thinking it would be best, but that seems to fire :

args.Context.LastPoint

only once. and I don't need this to only fire when over an entity so much as for every certain amount of mouse movement..I'm about to break down and run the whole thing through screen mouse api calls and convert to viewport x,y as I go, but surely someone needed the live x,y of the crosshairs before now?

View 3 Replies View Related

AutoCAD .NET :: Setting Current Layout

Aug 23, 2013

After setting a layout for printing current,
 
LayoutManager.Current.CurrentLayout = LayoutName 
btblRec = CType(tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite), BlockTableRecord)
db.CurrentSpaceId returned the ObjectID of the ModelSpace and not of the Layout set current. 

Is there something that could prevent this from happening? 

View 2 Replies View Related

AutoCAD .NET :: How To Install New TextStyle And Then Set It Current

Jul 30, 2011

i want to set a TestStyle,so I can control the fontsize,fontname,etc.

View 4 Replies View Related

AutoCad :: How To Trim Current View Only

May 27, 2011

When I use trim or extend commands and have to zoom or pan to select additional objects the command drops selection in previous view and only edits items in current view when executed.

Is there a system variable I can use to change this little time waster?

View 2 Replies View Related

AutoCad :: Rotate Relative To Current UCS?

Oct 26, 2012

Is it possible to rotate an object to thecurrent UCS. I use UCS object quite a bit and want to align text to the mycurrent UCS without having to align it to an object. i.e. to select the text andsimply rotate it around the justify point to a set angle relative to the current view.

View 3 Replies View Related

AutoCad :: VP Freeze A Layer In All BUT The Current VP

Sep 17, 2013

I'm working with a DWG that already has a-gazillion VPs.

I'm currently making new layers, but the "New VP Freeze" option only seems to apply to new VPs made AFTER the creation of the layer.

I need the new layers I'm making to be Frozen retroactively, if you will, in all previously-made VPs.

Short of going into each and every VP and manually VP Freezing these few layers, what can I do?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved