AutoCAD VB :: Highlight Drawn Entities By Layer Name?

Oct 28, 2011

I have a drawing with two drawingentities.

a circle drawed in the layer named "layer01" and

a line drawed in the layer named "layer02"

Now I want a vba code that select (highlight) all drawn entities in layer01 and layer02.

View 7 Replies


ADVERTISEMENT

AutoCad :: Layer Dialog Box Highlight On Layer Name?

Apr 27, 2012

On on of my drawings that I created, some of the layer names are highlighted in light blue. What does it mean, and how did it do it?

View 3 Replies View Related

AutoCAD .NET :: How To Get ObjectIdCollection Of All Entities In A Certain Layer

May 22, 2012

How could I get the ObjectIdCollection of all entities (points, polyline) in a certain layer?

I am using the following code at this moment.
 
private ObjectIdCollection GetEntitiesOnLayer(string layerName)
{
Editor ed = doc.Editor;
TypedValue[] tvs = new TypedValue[1] { new TypedValue((int)DxfCode.LayerName, layerName) };
SelectionFilter sf = new SelectionFilter(tvs);
PromptSelectionResult psr = ed.SelectAll(sf);

[code]....

But it seems the function fetches more ObjectId than I expected.For example, if I draw 3 points and 2 polylines in "A" layer.

ObjectIdCollection obc = GetEntitiesOnLayer("A");

int i = obc.Count;

I was expecting i to be 5 (3 points and 2 polylines), but i seems to be more than 5.

View 2 Replies View Related

AutoCAD .NET :: Select All Entities Of A Layer?

Oct 8, 2012

How to select all entites of a layer?

I want to migrate my VB code to VB.NET code, migrate the below code?
 
Private Function GetEntities(oLayerCollection As Collection, sSelectionSetName As String, _ Optional pointsList As Variant = Empty, _ Optional mode As AcSelect = acSelectionSetCrossingPolygon) As AcadSelectionSet Dim oSS As AcadSelectionSet

[Code].....

View 2 Replies View Related

AutoCAD 2010 :: Passes All Entities To A Single Layer

Feb 8, 2013

I want to know if there is a command that passes all entities (lines, text, etc.) to a single layer, but that the institution holds the color and line style assigned according to the original layer that contained it.

View 2 Replies View Related

Photoshop :: Applying Layer Effects To Pen Drawn Shapes?

Jan 25, 2005

Let's start with a blank canvas. I draw a straight line down one side of my image using the pen tool (not freeform). It creates the line. I Ctrl/Click away from it to complete the path.

Now I want to add some layer effects to this pen line and nothing happens ................ Can anyone shed any light on why this might be happening?

View 7 Replies View Related

Photoshop Elements :: Why Can't Highlight A Layer In Photo By Touching It

Feb 13, 2014

On a many layered photo, I used to be able to highlight a layer by touching it, so I could edit the layer. Now I can't highlight the layer unless I scroll down on the layers tool on the side bar. This is hard to do with some of my larger projects.

View 1 Replies View Related

GIMP :: Active Layer Highlight In Dark Or Light Blue?

Feb 2, 2014

What difference does it make if the active layer is highlight in dark blue or light blue?

I should know this by now!

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select Non-solid Entities On Solid Layer

Mar 19, 2012

We have this need to have all of the solids in a drawing to be placed in the "solid" layer.

Sometimes folks are drafting lines to develop these solids, and keeping the lines on the "solid" layer, rather than moving them to another layer, or deleting them altogether.

I could get folks to run this command before leaving the drawing.

I'm thinking something along the lines of:

Select all entities that are on the solids layer that are not solids.

If nil, great, do nothing.

If entities are selected, let me do something with them.

I'm hoping the following can be modified ever so slightly.

 (setq non_solid (ssget "X" (list (cons 0 "3DSOLID")(cons 8 "solid"))))

View 4 Replies View Related

AutoCAD LT :: Project Drawn As DWF - Convert To DWG?

Dec 20, 2013

I have a very big project drawn as DWF.i need to convert them into dwg. i already did my research and i found one that he will convert them to dwg but it will be replace into layout not model so i canot take  my qtties and they're accurate. How to quantified a DWF file , or if there is a software to convert my dwf into dwg.

View 3 Replies View Related

AutoCad :: Using Drawn Symbols In A Table

Sep 27, 2013

I work for an electrical company, so obviously there's plenty of symbols that are used on our drawings. Now, I want to create a legend of all the symbols we use, but I want to put them in a table. Is there any way of doing it, so that rows can be hidden but not lost from the table?

View 6 Replies View Related

AutoCad :: DXF And Surface Entities?

Sep 23, 2011

looking for a way to read in the DXF data for a surface entity in AutoCAD2012. There's plenty on reading in simple objects (e.g. 3DFace, Points, etc.) but nothing on surfaces. The data itself is also not as intuitive as I would have hoped. The DXF reference PDF from AutoDesk shows 7 possible unique entries and the data I need is most likely stored in the proprietary data. So, in short I know where it is but how can I read it?

View 7 Replies View Related

AutoCAD LT :: Can Only Offset Lines Drawn Up And Down (y Axis)

Apr 22, 2013

I just upgraded from AutoCad LT 2008 to 2013.  I cannot offset a line that is drawn the x-axis.  I also cannot copy an item with the ORTHO command on and run it along the x-axis.  I'm only allowed to move it along the y-axis.  I've now waisted at least three hours messing with every possible command that I can think of trying to fix it.  What do I have set wrong? 

View 9 Replies View Related

AutoCad :: How To Dim Or Change Opacity Of Drawn Line

Oct 13, 2010

I was wondering is there an option where you can dim or change the opacity of a drawn line? Similar to when you can change the linetype and linewieght, is there a precentage that allows to dim lines? Like when you insert .pdf plans as underlay, and you can actualy reduce the opacity. So that when you plot the plan drawing, some lines look solid black, but some are almost impossible to see? Or should I just change the colour of the line to light gray?

View 5 Replies View Related

AutoCAD .NET :: Adjusting Appearance Of Leader Drawn

Oct 12, 2011

Using some slightly modified code from the samples provided by Autodesk as shown below I'm attempting to draw a simple leader with MText annotation.

In the attached bitmap the top leader shows the result of running the code and the bottom one the appearance I want which is obtained by changing the AutoCAD properties of the leader under

Text
Text pos vert
from 'Above' to 'Centered'

I can't identify anything in the API which allows me to draw with this change, but feel it should be there. Searching the web for code to draw leaders, basically only returns minor variations on this code with only the same functionality.

<CommandMethod("TDD")> _ Public Sub TestDrawLeader()DrawLeader("Here it is", New Point3d(0, 0, 0), New Point3d(15, 5, 0)) End Sub ' AddLeaderAnnotation ''' <summary> ''' Called from: AddLeaderAnnotation ''' </summary> ''' <returns></returns> ''' <remarks></remarks> Function DrawLeader(ByVal spText As String, ByVal pPtStart As Point3d, ByVal pPtEnd As Point3d) As BooleanDim acDoc As Document.
[code]....

View 2 Replies View Related

AutoCad 3D :: Drawn Polyline Across Stream Channel?

Jun 13, 2013

I have drawn a 3d polyline across a stream channel and want to rotate it about the x-axis so i can trace the elevation profile of the crossing. 3d rotate in civil 3d 2012 is not allowing me to pick the axis i want to rotate about? This worked great in previous versions? This is very simple and i dont have a need for a surface or sections or profiles...i just want to trace the 3d polyline profile.

View 2 Replies View Related

AutoCad 2D :: How To Get Hatch To Follow The Drawn Line

Sep 12, 2011

I have existing drawings that I copy and manipulate into new ones. I have a drawing of a conveyor line that has some segments "highlighted" with a yellow hatch that appears to follow a single line. The conveyor layout has been changed. So I need to update the drawing for the new layout. I'm wondering how this was drawn. I cannot explode the hatch to copy parts of it. I'm thinking there was probably a simple way to get the hatch to follow the drawn line. Putting boundaries around the drawn line to hatch in would be rather time consuming. Is there a simple function I don't know about?

View 6 Replies View Related

AutoCAD .NET :: Highlight Part Of Polyline

Jul 30, 2012

is it possible to highlight a part of a polyline in someway?

View 7 Replies View Related

AutoCAD .NET :: Dynamic Preview Of Entities

Sep 8, 2013

I have the dialog window with the settings for entities graphical appearance used in my plugin.

My goal is to create the same preview as AutoCAD dimension style manager dialog has, the dynamic thumbnail of the entities while user changes the settings in dialog.

Probably one option is to create temporary block (created based on data from settings dialog) and then use BlockTableRecord.PreviewIcon, but I am not sure if there is some other way.

View 2 Replies View Related

AutoCAD .NET :: Select Entities By Extent?

Oct 4, 2013

How do I select entities by extent. Let's suppose I have Lowerx ,lowery , upperx , uppery [174.76789855957,28.3978977203369 , 507.941253662109 ,112.090751647949 ]. How do I find entities who have these extents.

View 1 Replies View Related

AutoCAD .NET :: Select Nested Entities

Jan 3, 2013

I select all entities via Editor.SelectAll() method, but the nested entities (inside Blocks) are missing. Do I have to resolve them by iterating through all blocks afterwards or is there a Prompt Selection Option that can be set?

I don't want the user to select the entities, instead I loop through the whole drawing.

View 7 Replies View Related

AutoCAD .NET :: Find All Connected Entities?

Nov 6, 2013

I have a requirement to find all connected entities on a given line of a plant P&ID. In other words given a certain line or reference point the requirement is to 'walk the line' and list off all entities (with certain attributes and in order) that are connected on a line.

Now not having any experience with underlying object models and API's, whether A) this is possible B) which object model to use - I'm a bit confused as to which one to use.

View 1 Replies View Related

AutoCAD LT :: Plotting Proxy Entities

Feb 6, 2012

I received a drawing from an outside contractor that uses something with proxy entities.  I can see them just fine on the screen but when I try to plot the drawing they disappear.  It also came from a newer version so I had to use the DWG True View to convert it if that may have caused my issue. 

View 5 Replies View Related

AutoCAD .NET :: Hatch All Visible Entities

Feb 6, 2013

I'd like to automatically hatch all visible polygons of a drawing. My vision of how to solve this is basically:

- for each visible drawing do
- pick internal point 
- hatch
- end for

I'm having trouble by automatically picking an internal point inside the polygon. 

I've found these two methods : Crossing numbers and winding numbers [URL]....... but they don't seem to work if there are some polylines inside an polygon.

Is there another solution to my problem for automatically picking an internal point inside a polygon ? Can I automatically hatch an polygon without picking it's internal point ?

View 5 Replies View Related

AutoCAD .NET :: Entities Deselected - How To Keep Selection

Nov 27, 2013

My code takes the selected entities and reads out all the text of the attributes.

If no blocks are selected, the code prompts for a selection.

Unfortunately, by ending the transaction, the entitis are deselected.

So how to keep the selection, because it will be handled in a follow-up step.

Below a shortened code for the procedure:
 
private void Get_Text(){ Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView(); PromptSelectionResult sel = edt.SelectImplied(); if (sel.Status == PromptStatus.Error) { TypedValue[] auswahl_typ = new TypedValue[] { new TypedValue((int)DxfCode.Start, "INSERT") };

[Code] ......

View 1 Replies View Related

AutoCAD Inventor :: Zoom Fit Highlight Set

Apr 19, 2012

I highlighted some drawing curves in a drawing by the API and now I would like to "zoom fit" the highlighted set for a better visual effect.

View 5 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 :: How To Move Hatch Entities

Nov 24, 2011

I wrote a program that trys to move all the entities in a dwg file by calculating a grid transformation for each point in each entity. For example to move a pline
  
Case Is = "AcDb2dPolyline"
                Set o2DP = oEnt
                retCoord = o2DP.Coordinates
                For j% = 0 To UBound(retCoord) Step 3
                     yaa# = retCoord(j%)
 
[Code]...

My problem is moving hatch entities. I haven't succeeded in finding equivalent code to move the hatch entities. I did find another post here, but I still don't get it.

View 6 Replies View Related

AutoCad :: Use Entities In A Drawing To Elevation 0

Aug 23, 2008

Just a follow up to the inquiry on the Flatten command. Is there a way to use set all entities in a drawing to elevation 0? like moving them all to Z=0 like the flatten command but all entities in one command including blocks, hatches, etc.

View 9 Replies View Related

AutoCad 3D :: The Selected Entities Are Not Valid

Jan 16, 2012

I'm trying to make a curved wall with different heights, but i can't manage to do the loft of the object. I keep getting "The selected entities are not valid."

I tried remaking all the little polylines but nothing seems to work..

View 9 Replies View Related

AutoCad 2D :: How To Trim Entities In Array

Jan 4, 2012

How can I trim entities in an array? I can make the array just fine, but I don't know why it won't let me trim them. I suppose it's trying to keep references to the array and the original entity that the array is based off of, but at this point I don't wish to keep that information.

View 5 Replies View Related







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