AutoCAD .NET :: Selection Set Selects Circles And Blocks

Apr 26, 2011

I have a selection set filter set to get only circles and blocks (INSERT).  Then it gets to a part of the code that says for each object in my group of objects... do something. 

The first few lines of the "do something" are:

For Each bgaObjID In bgaObjIDs
Dim myBlockRef As DatabaseServices.BlockReference
myBlockRef = bgaObjID.GetObject(DatabaseServices.OpenMode.ForRead)

If it's a block, then it's just fine.  If it's a circle, it crashes.  Obviously circles aren't blocks and that's why it crashes.  I'm trying to set up an If..Then statement so that blocks use one set of statements and circles use another.  I've looked at the values for the object ID, but cannot tell how to determine if it's a block ref or a circle.

If it's a circle, I would use:

Dim tempCir As Circle = TryCast(bgaObjID.GetObject(DatabaseServices.OpenMode.ForRead), Circle)

View 9 Replies


ADVERTISEMENT

AutoCAD 2010 :: The (window Selection) Selects Only What Appears On The Screen

Apr 19, 2012

The “window selection” selects only what appears on the screen! I wanted to select a page number located on the lower left corner of each title block of each drawing but found out that the “window selection” doesn’t keep selecting what doesn’t appear on the screen (if zoom in is applied)! For example, if I select a number of drawings and “zoom in” is applied then the window selection will only keep selecting what appears only on the screen!
 
Then how to let the “window selection” keep selecting all the objects regarding whether they appear on the screen or not?

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Scale 3 Circles With One Parameter / Action

Nov 14, 2011

I have 3 circles, randomly spaced. They will always be the same size. I want to resize them all about there centre points using just one parameter in the properties fly out. I've created individual linear/stretch for each circle, but I can't work out how to combine them.

AutoCAD 2012 Structural Detailing SP1 & Revit Structure 64bit
Win 7 64bit

View 6 Replies View Related

AutoCAD Dynamic Blocks :: Visibility Selection From LISP?

Apr 26, 2006

Experimenting with visibility states, and though I've searched this group I find no mention of whether or not it is possible to insert a dyna-block with the visibility state preset from LISP.

Example: I have a block with several defined visibility states. Is it possible to have that block insert with not the first VS but maybe the 3rd or 4th VS?

View 9 Replies View Related

AutoCAD .NET :: Create Selection Set And Get Insert Point Of Multiple Blocks

Jul 3, 2012

What I am trying to do is create a selection set of blocks with the same name. Then step through the selection set and if the block has an attribute "Tag" with a Specific "Value" then get the insert point.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Copy Variable Contents Into Attribute Tag In Selection Set Of Blocks

Aug 25, 2011

I have to obtain a selection set of blocks (by window selection and/or single-picks if the user desires) and then an attribute value which I have previously assigned to a variable called TAGVAL to the attribute tag name called PART in that selection set of blocks.

I found a cool routine called RepAtt, but it isn't quite set up to do what I need...
 
(defun RepAtt (Tag / SourceBlk ValueToCopy SelSet) (vl-load-com) (if (setq SourceBlk (car (entsel "
Select Source Block:"))) (progn (mapcar '(lambda (p) (if (equal (vla-get-tagstring p) Tag) (setq ValueToCopy (vla-get-textstring p)) ) ) (vlax-invoke (vlax-ename->vla-object SourceBlk) 'GetAttributes ) ) (ssget ":L" '((0 . "INSERT") (66 . 1))) (vlax-for DesBlock (setq SelSet (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object)) ) ) (foreach att (vlax-invoke DesBlock 'GetAttributes) (if (equal (vla-get-tagstring att) Tag) (vla-put-textstring att ValueToCopy) ) ) ) (vla-delete SelSet) ) ) ) (RepAtt "WIDGET");<-- Tag Name

View 1 Replies View Related

Photoshop :: Circles Inside Circles (or Rings)

Feb 11, 2005

I'm trying to make a logo. Circular logo with an inner ring maybe 4 px wide and 15 px inside the rim of the outer circle.

Basically I want a blue circle with a yellow inside ring. What's the best way of doing this? The only thing i can think of is: creating a blue circle marquee, and then another (trying to estimate a new circle size and change the color) that is yellow, and then making another smaller blue circle inside the new one. That's just ugly.

I tried the edit/stroke but that just gave me a stroke around the outer circle; it didn't put a ring inside the circle 15 px down.

Also I tried to contract the original circle by selecting it, then Modify/contract. That's got me a selected ring, inside the circle. Now how in the world do I make that little ring yellow? It just remains selected and I can't seem to find a way to color it.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Copy Block Attribute Data To A Selection / Group Of Blocks

Apr 15, 2011

I found a lisp to get block attribute data to a other block. See attachment. I can only apply it to one block. I like to apply it to selected blocks or blocks in a group. Is this possible?

View 9 Replies View Related

AutoCad :: Snapping Always Selects Origin

Oct 27, 2011

I have just developed a problem where I can only snap to the origin regardless of where my cursor is. I have tried snapping to midpoints, endpoints, centers, etc. it always selects the origin. I even tried to change the origin to a point I want to draw from, but it sends me right back to the original origin.

I made no changes in the software setup - it started when I opened an existing drawing, and now it affects any drawing I start or open.

View 3 Replies View Related

AutoCAD Inventor :: BOM Structure Automatically Selects Part View

Dec 1, 2011

I have an assembly with a subassembly in it. The subassemblies bom structure is set on Normal so that the subassembly number shows on the main assembly BOM and not the individual parts. 

However when I place the parts list on the .idw of the main menu it keeps on selecting the parts structure for the BOM, I need it to select the structured view. How do I get it to select the structured view on the BOM so that the BOM does not show the individual parts of the subassembly?

I have made sure that the parts view on the BOM in the source assembly is disabled.

View 4 Replies View Related

AutoCAD 2010 :: Edit Attribute Block And Selects One Of Values And Erase

Jun 22, 2012

I have only one user with this problem. He tries to edit an attribute block and when he selects one of the values and erases it the default value doesn't erase. He then has to enter some text and erase that and it works.

View 3 Replies View Related

AutoCAD 2010 :: Mouse Selects Wrong Item On Object Snap Context Menu

Feb 21, 2012

For as long as I can remember, across all versions of Autocad, I've had problems picking the right item on the popup menu for object snap (shift-right click).  It frequently picks the item below the intended one, i.e. it will pick Parallel rather than Perpendicular.  Trying a second time works every time.  This problem has been so consistent that I don't believe it is user error.  The item is highlighted, after all.  There is no way I'm repeatedly missing it.  Is it possible to calibrate the mouse in Autocad?

View 9 Replies View Related

AutoCAD Inventor :: Open A Assembly File / User Selects A Part / Plugin Automatically Runs

Feb 27, 2013

is it possible to write a plug in that runs when a user does something.example. you start inventor and open a assembly file the user selects a part and the plugin automatically runs.no pussing buttons, no quick key, it just runs.

View 2 Replies View Related

Photoshop :: Automatically Selects Frame Animation

Feb 18, 2013

It automatically selects frame animation as soon as I open up timeline.I have Photoshop CS6 Extended.

View 14 Replies View Related

Illustrator :: Action Set That Selects Raster Images?

Mar 8, 2013

I would like to automate an action set that selects a raster image (linked file) that has been grouped with vector art and then converts that selected raster image into a vector (live trace)

View 11 Replies View Related

Illustrator :: Selects Objects Cannot Be Joined Since They Are Invalid?

Aug 12, 2012

Basically, I want to join the below three shapes into one shape, but when I'm lining up the anchor points and joining, it's saying:
 
"The selects objects cannot be joined since they are invalid objects".

View 7 Replies View Related

Illustrator :: Randomly Selects Unrelated Objects

Feb 5, 2013

About once  a day, when I click on an object with the direct selection tool, the bounding box will be way larger than it should, implying another object on another artboard is included in the selection.
 
This happens when the object I am selecting is NOT grouped with anything else. Moreover, is seems buggy because the mystery object doesnt have its "edges" visible the way it would if it were legitimately selected.
 
I can deselect all, but then anything I click on, the selection's bounding box is expanded to include the mystery object. The only way I have found to deal with it is to drag a corner of the bounding box, then undo, and then click off again. Then Voila! I am able to select my object (or any other) without the mystery selection happening.
 
I use clipping masks a lot, as well as many artboards, and have wondered if it's related to this, as the mystery objects are sometimes masked images, and often on another artboard. However, the mystery objects are not always masked.

I had it with CS5, and hoped it would go away with CS6, but it has not.

View 14 Replies View Related

InDesign :: Export A Book To PDF It Always Selects PDF (Interactive)?

Mar 14, 2014

Anytime I export a Book to PDF it always selects PDF (Interactive)... and I never send a PDF interactive book - they're always for print!
 
Why doesn't it stick to the last settting I had?
 
InDesign CS5.5 on 64 Bit windows 7.

View 12 Replies View Related

Photoshop :: Click On Channel It Selects Black Instead Of White

May 2, 2013

Somehow I've managed to change the default When I cmd click on a channel it now selects the black instead of the white

View 1 Replies View Related

GIMP :: Fuzzy Select Tool Selects WAY Too Much Even At Threshold Of 1 At 2

Jan 21, 2014

i tried restarting gimp but it did not fix my problem. All of a sudden, out of nowhere, my fuzzy select tool selects WAY too much even at a threshold of 1. at 2 it just selects the whole picture.Re-installing did not fix.

i am creating black/white based icons. So it is a 48x48 image. i am mainly trying to fuzzy select black, white, and transparent selections. As you can guess, it has become impossible now and i don't know what i did.

EDIT: Okay so it actually isn't selecting "too much" per-say. i willt ry and explain the best i can here:

Black and white image with the exception of some shades inbetween.Select fuzzy select and put threshhold at 1. Click. Selects all the white (i actually think it misses some). i hit SHIFT and click on a pixel that is slightly not white. VERY SLIGHTLY. In fact, it may actually be white. It fuzzy selects EVERYTHING.

Another example on an image that is Black and Transparent (with shades inbetween) Slect black on threshold 1. It selects All the black AND all the shades inbetween. Eveything except flat out transparent. i hit CTRL and select a shad einbetween and it deselects everything.

EDIT 2: Doesnt matter the threshold apparently. It will do this on any.

EDIT 3: The solution, after all, was so save these problematic images as JPG and then open them as the JPG.

View 3 Replies View Related

Lightroom :: Selects Vectors Instead Of Showing Brush Path

Nov 1, 2011

Often when working with the brush tool a very strange bug arises.Instead of the brushstrokes being visible in a normal way, the active area around the brush becomes a large square shape, slightly brighter than its surroundings.What this means is i can t see what im painting because a large square  blankets the area around which im working. very strange its like the brush is selecting vectors around it as im using it.the actual painted area then become visible again when i release the mouse.i have managed to overcome by restarting LR, but is just keeps happening after using the brush tools for a while.

View 3 Replies View Related

Photoshop :: Quick Mask Mode Selects Entire Image?

Mar 12, 2013

When I enter into "quick mask mode" and paint in an area on my image that I want my selection to be, then enter out of "quick mask mode". The entire image is selected. It's like a did a "Command A".

Also how do you change the color of the "quick mask mode"?
 
Photoshop CS6, Mac.

View 5 Replies View Related

Illustrator SDK :: How To Get Event / Notification When User Selects Save Option

Nov 13, 2013

Can we get an event / notification when user selects the Save option ?

My plugin is required to perform action on this event.

Which suite is used for the same ?

View 1 Replies View Related

Photoshop :: Auto-select In CC Selects Layers Within Locked Or Hidden Groups?

Jun 24, 2013

i can't be the only one who thinks it's nuts that when 'auto-select > layers' is selected and i drag to select a bunch of layers, i also select layers that are turned off and/or locked, can i?i just confirmed that this IS not the case with CS6 -- locked or hidden layers are not selected upon dragging to select exposed layers.
 
is this a bug, or a bit of new functionality that i am failing to grasp? i did notice that in CC, on right-click there is the new option to "isolate layers", but this seems to just isolate & unclutter layers within the layers panel.

View 33 Replies View Related

Photoshop Elements :: Presenter Selects Elliptical Marquee Tool To Edit Cuts

Dec 26, 2013

I am following a tutorial Using Layers in PSE 11. The presenter selects the Elliptical Marquee tool to edit cuts. I do not see the Elliptical Marquee tool in my PSE 11?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select All Blocks Like Selected Blocks With Window?

Feb 28, 2011

(defun CELBLKS ( / e blk ss blkl)
 (setq blkl ""  ss (ssadd))
 (while (setq e (entsel "

[Code]....

i have this lsp, it works great but how can modify it if i want select with a window.? exemple: if i have 3 differentes blocks, i want to select them with windows and the lisp select all blocks that are identical of those 3.?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Zoom All & Extents With Blocks Containing Fields On Layout Tabs

Aug 22, 2013

We have a new title block which now contains various fields to automatically populate the drawing number, number of sheets, issue etc.  The problem we have is when we go to zoom all or extents on a layout tab it moves the layout to the right each time.  If we only have one layout or we use a plain title block i.e. with no fields, the zoom works fine (layout stays put in the center).  This is also true if we directly insert a field onto the layout - again no problems. 

The cause of the problem only happens when a block containing a field is inserted onto the paper space of a layout and,there are multiple layouts containing blocks with fields.

View 6 Replies View Related

AutoCAD Dynamic Blocks :: Finding Number Of Times Specific Blocks Used In A Drawing?

Aug 8, 2013

How to find no of times specific blocks used in a drawing?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Stretching Same Parameter In All Blocks In Drawing From One Field?

Jul 15, 2011

How do I manipulate a height parameter all of the dynamic blocks in the drawing from one single field? Say a field located in the drawing properties or on the drawing itself.

For example:  Multiple blocks of different walls of same height with other blocks of things on located on those walls, dependant on the wall height, all linked to and changed by a single field. Possibly a Wall Height field located in the custom tab of the drawing properties.

I can pickout each of the blocks and change them at the same time in properites menu because they all share the same parameter name.  I would just like to have that height parameter of every block in the drawing, that has that specific parameter controled by a single field.  Which I could enter a new height at anytime that would change every block in the drawing to that height.

View 1 Replies View Related

AutoCad 2D :: Replace Dynamic Blocks With Normal Blocks Based On Parameters

Aug 2, 2012

We used a bespoke program to convert our drawings to Java applets for web usage. This does not cope with dynamic blocks at present and we have started to receive drawings from our clients using them.

I need to replace this with standard static blocks based on one of two criteria. Either:

1) Replace based on visibility state (have generic chair block with multiple different chair types set by visibility type, need to replace depending on which type it is set as)

2) Replace based on parameter (have table with size set by dimensions, need to replace with static block for each dimension)

View 0 Replies View Related

AutoCAD Dynamic Blocks :: Add Exact Same Objects And Visibility State To Blocks

Jan 7, 2014

I have over 100 blocks that I need to add the exact same objects and visibility state to.  Is there a way to globally make this change, or even to copy the visibility states from one block to the next without having to recreate the states in each block?  I thought I had previously run across a routine on here that would make changes to multiple blocks at once, but I can't seem to find it now.  

View 1 Replies View Related







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