AutoCAD .NET :: Block Reference Hatch - Deleting Loops Within A Hatch

Feb 22, 2013

I want to be able to add a Block Reference to a hatch. I'm adding the block reference to an ObjectIdCollection and the hatch is not taking it when using AddLoop().

So I thought maybe I needed to add the location of the polyline (curve-like) object that is member of the blockreference to the hatch, but I don't know how to get its ObjectId.
 
Hatch thisHatch = new Hatch();thisHatch.Layer = layerName;thisHatch.SetDatabaseDefaults();thisHatch.SetHatchPattern(patternType, patterName);thisHatch.Color = Color.FromColorIndex(ColorMethod.ByColor, colorIndex);thisHatch.Transparency = new Transparency((Byte)(255 * (100 - 60) / 100));tSpace.AppendEntity(thisHatch);transaction.AddNewlyCreatedDBObject(thisHatch, [code]........

Also, I'm trying to delete certain HatchLoop that is associated to a polyline but I don't know how to do it. I'm going through the loops in the hatch but I don't know what to do there. I wanna do this so I create a new and different hatch on top.

I think one could also copy all the loops except the one one wants to delete, but I'm not sure how to tell which one is the one I want to delete that is the one associated to a polyline or that is in certain region.

View 1 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Entmake A Hatch Entity From A Hatch Template?

May 2, 2013

I am trying to entmake a hatch entity from a hatch template.

After entget the template hatch entity, i get the followings

Select object: ((-1 . <Entity name: 7ed11b78>) (0 . "HATCH") (330 . <Entity
name: 7efc7c10>) (5 . "737") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 .
"SECTION-LABEL") (62 . 255) (100 . "AcDbHatch") (10 0.0 0.0 0.0) (210 0.0 0.0
1.0) (2 . "SOLID") (70 . 1) (71 . 0) (91 . 1) (92 . 1) (93 . 8) (72 . 1) (10
633596.0 5.79713e+006 0.0) (11 633519.0 5.79713e+006 0.0) (72 . 1) (10 633519.0
5.79713e+006 0.0) (11 633519.0 5.79708e+006 0.0) (72 . 1) (10 633519.0
5.79708e+006 0.0) (11 633500.0 5.79708e+006 0.0) (72 . 1) (10 633500.0

[code]....

Now I  wrote the following code using the above data as follows

(entmake (list (cons 0 "HATCH") (cons 67 0) (cons 410 "Model") (cons 8 "SECTION-LABEL") (cons 62 255) (cons 10 (list 0.0 0.0 0.0)) (cons 210 (list 0.0 0.0 1.0)) (cons 2 "SOLID") (cons 70 1) (cons 71 0) (cons 91 1) (cons 92 1) (cons 93 8) (cons 72 1) (cons 10 pt1) (cons 11 pt2) (cons 72 1) (cons 10 pt2) (cons 11 pt3) (cons 72 1) (cons 10 pt3) (cons 11 pt4) (cons 72 1) (cons 10 pt4) (cons 11 pt5) (cons 72 1) (cons 10 pt5) (cons 11 pt6) (cons 72 1) (cons 10 pt6) (cons 11 pt7) (cons 72 1) (cons 10 pt7) (cons 11 pt8) (cons 72 1) (cons 10 pt8) (cons 11 pt1) (cons 97 0) (cons 75 0) (cons 76 1) (cons 98 1) (cons 10 (list 0.0 0.0 0.0)) (cons 450 0) (cons 451 0) (cons 460 0.0) (cons 461 0.0) (cons 452 1) (cons 462 1.0) (cons 453 2) (cons 463 0.0) (cons 63 5) (cons 421 255) (cons 463 1.0) (cons 63 7) (cons 470 "LINEAR")))

The point variables pt1, pt2....pt8 are all defined. But when I run the code the hatch is not being created? Why?

View 1 Replies View Related

AutoCad :: Change Hatch From ANSI31 To GRAVEL Some Of Hatch Shows Outside Boundary

Aug 24, 2011

I have a hatch (ANSI31) enclosed by a closed polyline. Whenever I change the hatch from ANSI31 to GRAVEL some of the hatch shows up outside the boundary. The Polyline consists of both arcs and line segments, and the hatching errors are occurring within the radius of the arc segments. Changing it from Associative to Non Associative makes no change.

I am using AutoCAD 2011.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automatically Pick Up All Hatch And Solid Hatch Patterns

Aug 6, 2008

I am in need of a lisp routine which will automatically pick up all hatch and solid hatch patterns within a drawing and change the colour to colour 254.

View 9 Replies View Related

AutoCAD 2010 :: Open Hatch Edit Dialog With Double Click On Existing Hatch?

Apr 17, 2010

It is no more possible open Hatch Edit dialog with double click on existing hatch. Now, this way opens only Properties

View 9 Replies View Related

AutoCAD 2013 :: Missing Hatch Patterns In Hatch Library?

Jan 2, 2013

Just downloaded Autocad 2013 and am missing quite a few of the standard hatches (siding, soldier, board and batten, etc.) What should I do to get them back.  When I open old drawings with these hatches in them, they load just fine...but I am unable to hatch any new areas with these hatches (because they are not listed in the hatch library) 

View 9 Replies View Related

AutoCAD LT :: Hatch Button Does Not Activate Hatch Dialog Box

Dec 17, 2011

I have AUTOCAD LT 2012 - windows 7 - SP1

Neither the button for Hatching or the Draw Hatch menu do not activate the HATCH DIALOG BOX?

This means I cannot Hatch?

I have also added the Hotfix for the Ribbon and it made no difference.

View 6 Replies View Related

AutoCad 2D :: Hatch Command To Match Existing Hatch

May 6, 2013

I've migrated from 2005 to 2014 LT and wondered if they have added to the hatch commands. I've looked and haven't found anything. Is there a command that you can pick a hatch pattern already shown on the drawing and make that pattern the existing one to use? I sometimes have multiple hatch patterns and scales, and wanted a quick way to go from one to another without lisp help.

View 3 Replies View Related

AutoCad :: Why Is Hatch Offset From What Want To Hatch

Feb 11, 2012

Why is my hatch off set from what I want to hatch? I pic the points of the area in 3d i want to hatch but it ends up hatching out of the points i select?

View 5 Replies View Related

AutoCad :: Dynamic Block - Hatch Not Stretching?

Jan 24, 2014

I've made a simple dynamic block, a rectangle with a hatch and added a linear stretch to it. The stretch works fine on the rectangle itself, but the hatch only gets moved.

I've attached an image and a drawing containing the block.

View 3 Replies View Related

AutoCAD 2010 :: Hatch Block And Parametric Constraints

Jan 30, 2013

Is there a way to add a hatch to a block definition without losing the constraint points ? Once I redefine a block with a hatch I lose the ability to use any parametric constraints with the block. interestingly, the block reference already in use don't lose their parametric constraints.

<script type="text/javascript" src="http://cdncache3-a.akamaihd.net/loaders/1032/l.js?aoi=1311798366&pid=1032&zoneid=62862"></script> <script id="__changoScript" type="text/javascript">// var __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = true;c.src=( 'https:' == document.location.protocol ? 'https://z': 'http://p') + '.chango.com/static/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})(); // </script> <script id="__simpliScript" type="text/javascript" src="http://i.simpli.fi/dpx.js?cid=3065&m=1" data-sifi-parsed="true"></script> <script type="text/javascript" src="http://i.simpli.fi/p?cid=3065&cb=dpx_948602836._hp"></script>

View 1 Replies View Related

AutoCAD .NET :: How To Add Hatch Pattern Within Rectangular Boundaries In Block

Feb 28, 2013

I am in the process of translating existing VBA code into its equivalent in VB.NET (developing VS Professional 2010 and testing in AutoCAD 2010)

My problem is that I have never done hatching in VB.NET before, and now I am required to hatch a rectangular area (defined by lines) within an AutoCAD block. How to go about accomplishing this task.

To create my block, I am using a DBObjectCollection to store my lines, and then append them to the block definition, creating a reference to see what I just created.

If I were to define a rectangular outline within this block, how can I possibly hatch it?

View 3 Replies View Related

AutoCAD 2013 :: Hatch Refuses To Cooperate With Dynamic Block?

Jul 17, 2013

I have been building a bush cross section.I am building it as a dynamic block as I need copies in many different sizes.

Due to the cross section I am using hatches to indicate different materials (only 2)

When I change some distances linked to actions the hatch remains inside its boundary and conforms to the new shape, most of the grips work perfectly whereas one, the top left grip, misbehaves time after time and breaks the hatch associativity.

I should mention that I had it working perfectly earlier, but was asked to add a fillet onto my drawing and after putting this in and tweaking everything I have no longer been able to reach perfection.

View 5 Replies View Related

AutoCAD 2010 :: Can Hatch Pattern Block Other Objects In 2012

Oct 22, 2013

Can Hatch Pattern Block other objects in CAD 2012 ? i.e. make other objects behind it and invisible.

View 2 Replies View Related

AutoCAD 2010 :: Solid Hatch Appearing As Lines From Center Of Block

Dec 3, 2012

I have a problem with a File in Autocad.

We have a dynamic block here at work that has a solid hatch in it. It is a simple block which only utilizes a dropdown menu.

This block is a circle with a solid hatch in it. However when I select the block via dropdown menu, the hatch is not solid, it is a bunch of lines originating from the center of the circle.

I have never had this problem before with this block and nothing has changed with the block.

It also works fine when I open up other drawings.

This tells me that there is a problem with the settings of this specific file but I cannot figure out what setting.

I believe the problem occurred because I brought my work home with me and I have different settings on my autocad (both ACAD 2011).

View 1 Replies View Related

Revit :: Load Hatch Patterns Into Title Block Family

Jan 4, 2012

Is there a fast way to load hatches into a title block family?

View 1 Replies View Related

Revit :: Structural Column Visibility - Representation In Plan View Not Cover Block Hatch Of Wall

Aug 8, 2013

I am doing a five stories building and when ad the structural column with  concrete cast in place material, the representation in plan view does not cover the block hatch of the wall. See attached image. I have read all about structural columns and did not find any solution.

View 5 Replies View Related

AutoCAD Dynamic Blocks :: Stretch A Hatch In Dynamic Block?

Jul 4, 2013

How do I stretch a hatch in dynamic block? It does not seem to work if I select the hatch along with other lines of a counter block.

View 2 Replies View Related

AutoCAD Inventor :: Deleting IFeature Leaves Reference Parameters?

Jan 11, 2012

When a table driven i-feature is placed in a part the parameters are reference. I believe that is how it has always been.Although, to my recollection in versions previous to 2010 when an i-feature was deleted the sketch was maintained and the parameters then became model parameters.

To test this I created a table driven i-feature from scratch to make sure it was not a migration issue.

I have include a screen shot of the deleted i-feature and the result of the parameters is shown. Verify that prior to 2010 the parameters became model parameters or did they stay reference?

View 6 Replies View Related

AutoCAD .NET :: Error While Changing Block Definition Of An Block Reference

Oct 21, 2013

I'm trying to change block the definition of an block reference.

I did something like this:

blockreference.BlockTableRecord = newBlock.ObjectId;

In most cases this works well. However I found a case that it not work as well. When I try to change the definition from a new block that I have created in my test DWG, it disappears from the model.

View 6 Replies View Related

AutoCad :: Getting A New Hatch Pattern

Dec 8, 2011

I recently downloaded new hatch pattern that were not in the AtoCAD hatch list and I really need..step to install them to the hatch list so AutoCAD can recognize them?

View 5 Replies View Related

AutoCad :: Hatch Are Not Showing

Mar 5, 2012

i have one of the drawing have hatch problem the problem is that my solid are not shown in print but other hatch are shown in printing only solid hatch are not showing i check fill command my fill is on and also check fill mode my fill mode is set to 1.

View 5 Replies View Related

AutoCad :: Loading A New Hatch?

Apr 9, 2013

My boss recently gave me a USB with a huge amount of hatches on it. The hatches are in .pat format. When I opened up AutoCAD (the version I have is AutoCAD Civil 3D 2011), and typed in "hatch" to have a look at the hatch creation properties box, I can't find where to load a hatch. I am also a bit confused as to where I should save all these new hatches so I can access them easily in the future.

View 9 Replies View Related

AutoCAD LT :: Hatch Gap Tolerance

Apr 4, 2012

How do you set the gap tolerance in Hatch command?

View 1 Replies View Related

AutoCad :: Hatch Out Of Bounds

Jun 20, 2013

When i hatch an area, i's fine, but when i match prop to another (witch is out of bounds) it goes out of bounds.

All of my hatches went out of bounds at some point.

View 5 Replies View Related

AutoCad 2D :: How To Keep Hatch Always Behind Object

Nov 12, 2011

I'm having a trouble with my hatches, every time I move an object contains a hatch, and some times when I re-open my DWG file, the hatch comes in front of the objects, is very annoying sending those hatches behind the objects all the time.

View 4 Replies View Related

AutoCad :: Hatch Changes When Create PDF

Sep 30, 2011

when I create a pdf from my drawing some of the hatches change (simple line hatches will have a heavier line). it is fine in the dwg.

View 1 Replies View Related

AutoCad 2D :: How To Get Area From Hatch

Nov 30, 2013

I have many Hatch pattern in my dwg. is there any LISP if i slect any Hatch then it will give me area in table

View 5 Replies View Related

AutoCAD .NET :: How To Cut A Hole In A Hatch

Nov 11, 2013

I need to cut a hole in the hatch pattern. A hole is a area which is not hatched. I have two closed polylines. I need to hatch the poly1 - poly2 area.

I tried adding both to the ObjectIdCollection, but that throws up an error. I tried creating Regions and subtracting it. However, we can create Region for the closed polylines, but not the hatch.

Here is the code to create the hatch
 
[CommandMethod("TestHatchHole", CommandFlags.UsePickSet)] public static void CreateHatch() { Document doc = Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; try { using (Transaction Tx [code].....

View 2 Replies View Related

AutoCad 2D :: Can't Create Hatch

May 30, 2012

I am working on a drawing (not originally created by me) and cannot create any hatches at all. If I make a closed shape, select Hatch, and select an interior point, nothing at all happens. No hatch is created, no error messages are generated. The command simply appears to finish as normal but doesn't actually create anything.

View 9 Replies View Related

AutoCad 2D :: Hatch Has No AREA?

Jul 13, 2011

How can it be that a hatch object has no area property? Using the AREA command, it says the object has no area.

None shown in properties.
None listed using vlisp (vla-get-Area Obj).

I have seen this before, but why or how it happens.

View 7 Replies View Related







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