AutoCAD .NET :: How To Add Hatch To Closed Curve In Drawable Overrule

Apr 11, 2013

My goal is to write a Drawable Overrule, which would change the entities color to dark gray, except when they are on a specific layer. For closed-only curves in this layer, I want to add a semi-transparent hatch.

All works great, until user moves the mouse over this hatch : AutoCAD throws a fatal error and closes. I've no exception in debugger...

When I remove the code concerning the hatch, I've no error at all.
 
Public Class ClosedCurveDrawableOverrule Inherits DrawableOverrule Public Const HighlightColorIndex As Short = 1 'Color Red Public Const BaseColor As Short = 251 ' Color DarkGray Public Const SpecificLayer As String = "Layer1" ' Set our transparency to 50% (=127) ' Alpha value is Truncate(255 * (100-n)/100) Public [code].......

View 3 Replies


ADVERTISEMENT

AutoCAD LT :: Hatch As Closed Element

Jun 1, 2012

I've just made the dramatic leap from AutoCAD LT 2005 to AutoCAD LT 2013.  By far and away the environment in 'Classic" mode is very familiar and there are some new features.  However, one item really getting under my skin is the hatch feature.  In LT 2005 one could pick the points to hatch, if the item is closed or not, by individual mouse click points similar to how you can still check an area now.  Is this hatch feature still available and I just don't have the new program configured properly or will I be forced to draw each item I want to hatch as a 'closed' element? 

View 5 Replies View Related

AutoCad :: Hatch Inner Boundary Of Closed Polyline?

Jul 6, 2012

I am trying to find a command that will hatch the inner edge of a complex closed poly line, rather than hatch the entire area inside the poly line.

When I have simple shapes such as a rectangle I create a smaller rectangle inside the first that is 1' (or whatever I want my hatched area to be) smaller on all sides than the first rectangle. I hatch by selecting the two rectangles; I change the "Associative" hatch property to "No" and then delete the inner rectangle.

My problem now is that I have a complex closed poly line that I would like to hatch the inner perimeter with a set thickness, say 1 foot. Is there an easy way to hatch a inner boundary of a closed poly line or to recreate a scaled down copy of the poly line that is a set distance smaller all around. I hope I have conveyed the question clearly enough.

View 3 Replies View Related

AutoCad :: Hatch Multiple Closed Polylines In The Same Layer?

Apr 9, 2013

Basicaly I have a plan of a part of a city and I want to fill the houses with a solid hatch, I was wondering if I could do them all at once instead of picking an internal point one by one (there are a lot of them!).

View 4 Replies View Related

AutoCAD LT :: Hatch Spacing Too Dense Or Boundary Not Closed

Apr 25, 2013

I have a line drawing from a draftsman.  It was imported from some other program, but I'm not sure which.  However, this has cropped up many times over the years on my drawings as well as others.  It just is typically quickly remedied with a workaround.

The hatch spacing too dense issue requiring me to break up the area:  this problem will occur on equally sized areas at the same zoom factor at which I just hatched an adjacent area.  I have changed the "MaxHatch" variable environment from stock at 10k, to 100k, then to 1,000k; yet the problem persists.  I don't have a particularly fast machine so by that point I decided there was no need to max the variable at 10,000k. There are no z variables in the drawing though it appears, almost randomly, to have plines or lines along the same length of wall.

The second issue is the closed boundary.  This occurs on lines that are connected at all corners, even when I stretch and reconnect a line, though that is a very time consuming method.  When I increase the hgaptol variable it will hatch bizzarre areas that have no relation to what I am attempting to hatch.  This is also occuring even inside a REC that I created just prior to hatching due to error on the original layout.  I have to hatch an object rather than select an internal point.  It has become so obnoxious in this drawing that I decided to post with these questions.

View 2 Replies View Related

AutoCAD Inventor :: Graph A Curve Using Equation Over Closed Interval

Mar 15, 2013

Is there a way to graph a curve using an equation over a closed interval in Inventor 2012?  I know I can draw a spline through points that are solutions of my equation, but this does not guarantee that the curve is the graph of my equation. 

View 2 Replies View Related

Maya Modeling :: Sweep Profile Along A Closed Curve / Spline?

Jan 29, 2014

It's possible in maya to sweep a profile along a closed curve? Like in 3DsMax, for example to make a window frame with a particular section profile?

View 1 Replies View Related

AutoCAD .NET :: Custom Drawable Wrapper?

Jan 18, 2013

I have a custom AcGiDrawable entity that I want to wrap in .Net. All this is done and compiles fine but when I try to instance the object I get the message "Cannot create an instance of the abstract class or interface '....'.

I have several custom entities (derived from AcDbEntity and AcDbObject) that aren't a problem, but for this one, problems arise.

#pragma once#include "mgdinterop.h"#include "..InForm.DbxReferenceIndicator.h"using namespace System;using namespace Autodesk::AutoCAD::DatabaseServices;using namespace Autodesk::AutoCAD::Runtime;using namespace Autodesk::AutoCAD::Geometry;using namespace Autodesk::AutoCAD::GraphicsInterface;using namespace Autodesk::AutoCAD::GraphicsSystem;using namespace inform::dbx;namespace aag = Autodesk::AutoCAD::GraphicsInterface;namespace gs = Autodesk::AutoCAD::GraphicsSystem;namespace InForm.
[code]...

View 1 Replies View Related

GIMP :: Script-fu - Best Way To Use Drawable-transform-rotate?

Jul 10, 2013

I'm new here, as well as to script-fu, although I've looked into Scheme and Lisp and know how to program. I'm using Gimp 2.6.12 (the latest version on Linux - Ubuntu 12.04.2)

So, an overview of what I'm trying to do: create a simple clock face (black) with 12 solid white rectangles at the hour marks.

I have a single layer, (black background, white foreground colours), I select a circle, invert the selection and bucket fill.

Then I select a rectangle, fill it, rotate the layer (which cuts out the rectangle, creates a floating selection with it, and rotates that) anchor the flt-sel (and then repeat 12 times).

> (gimp-rect-select image 570 396 25 8 2 0 0) ; select rectangle
(#t)
> (gimp-bucket-fill layer 0 0 100 0 0 0 0) ; fills the selection (stays selected)
(#t)
> (gimp-drawable-transform-rotate layer (/ PI 2) 0 400 400 0 2 0 3 0) ; creates a flt-sel, but returns layer instead of the flt-sel(!?) ...
(4) ; (also deactivates selection)
> (set! fs (car (gimp-image-get-floating-sel image))) ; ... so have to get the flt-sel explicitly
26
> (gimp-floating-sel-anchor fs)
(#t)

This kinda works, but doesn't feel like the optimal way to do it . What I was expecting to do is something like copying the selection, 12 x (rotate and add), bucket-fill.

View 1 Replies View Related

AutoCAD 2010 :: Closed Polyline Not Showing As Closed Section

Apr 10, 2012

I have used PEDIT to join multiple polylines, which now appear as polylines. But when I use QSELECT to show all open (non-closed) section, one polyline still shows up as open.

I've attached the file I'm working on. The polyline in question is the green outline on the object on the right.

View 4 Replies View Related

AutoCAD .NET :: Select Overrule Entity

Jul 23, 2012

I have a question regarding object overrule.

Simple example, when overrule Line entity  to draw three entities Line, Text, Circle when selecting overruled Line is it possible  to identify what object have been selected (in this example it could be Line, Text, Circle).

View 3 Replies View Related

AutoCAD .NET :: How To Overrule On Custom Object

Aug 9, 2012

I want to change display of custom object using overrule.

First I made a class implements from polyline.

class BoundaryPolyline : Autodesk.AutoCAD.DatabaseServices.Polyline { }
 
Second I made a polylineJig to draw my custom polyline(BoundaryPolyline).

 public class PolylineJig : EntityJig { public PolylineJig(Point3dCollection p3ds) : base(new BoundaryPolyline()) { ... } ... }

 And then add overrule on BoundaryPolyline to change display of it.

Overrule.AddOverrule(RXObject.GetClass(typeof(BoundaryPolyline)), mydrawOverrule, false);

 But when I loaded dll, fired overrule and redraw. All polyline display were changed.

Then I found that 'RXObject.GetClass(typeof(BoundaryPolyline)' was return 'Polyline' but not 'BoundaryPolyline'.

How to overrule on custom object.

View 5 Replies View Related

AutoCAD .NET :: Overrule Control In BlockReference?

Jun 26, 2012

I am working on simple WorldDraw overrule where lines and polylines are displayed with little cross. Size of cross is related to view size.

Everything works fine except blocks and Xrefs. If they are scaled then crosses are scaled as well.

I know how to get entity owner ID but it refers to BlockTableRecord only not to BlockReference.

View 3 Replies View Related

AutoCAD .NET :: Cloned ObjectID Or Handle Using An Overrule

Aug 19, 2011

I need to use the Handle of the cloned object during a DeepClone override but AutoCAD shuts down when I try to use it.

This is the best I can think of but it still boots me out when I try.

Public Overrides Function DeepClone(ByVal dbObject As DBObject, ByVal ownerObject As DBObject, ByVal idMap As IdMapping, ByVal isPrimary As Boolean) As DBObject Try Return MyBase.DeepClone(dbObject, ownerObject, idMap, isPrimary) Catch Finally CompileCloneObjects(dbObject.Handle.ToString, MyBase.DeepClone(dbObject, ownerObject, idMap, isPrimary).Handle.ToString) End Try End Function

View 2 Replies View Related

AutoCAD .NET :: DeepClone Overrule And Dynamic Block Jigs

Aug 17, 2011

If I add a DeepClone overrule on Initializeing a drawing it stops my block Jigs from showing correcly. I get a line drawn instead of the block. Other overrules I have used don't cause any problem.

By excluding the overrule from the initialize event it works fine.

I can remove then add the DeepClone overrule before and after the jig and it works ok but I really need it active on drawing startup.

Hit the brick wall again.

Ideally I don't use an overrule. All I need to do is understand what objects are being cloned before, during or after a clone operation but can't figure out the idmapping thing.

View 1 Replies View Related

AutoCAD .NET :: Overrule Attributes (properties) For Complex Objects

Jan 6, 2013

I am about to write the function using Overrule API to temporary override object’s colour to ByLayer for all entities in the drawing.

At this moment I just have simple class for testing (just to check if it is possible) and so far I can see problem with complex entities.

Entities such as Line, Polyline even BlockReferences work fine  but complex objects like HATCH, MTEXT and LEADER do not change colour as set in SetAttribute method.

Below is simple class I was testing.

public class ByLayerColorOverrule : DrawableOverrule
{
public override bool WorldDraw(Autodesk.AutoCAD.GraphicsInterface.Drawable drawable, Autodesk.AutoCAD.GraphicsInterface.WorldDraw wd)
{
base.WorldDraw(drawable, wd);
return true;
}

[code]....

View 8 Replies View Related

AutoCAD .NET :: Overrule Specific Sub Entity In Block And Not Showing The Base

Aug 11, 2012

Planning to overrule some of sub entities in a block. Let's make it simple . All lines and attributes in block should be circles and original block should not be seen. I came up with below code.

The code reacts differently if  I remove

MyBase.WorldDraw(drawable, Wd)

and my goal is not to show the real block. Just showing whatever is overruled.

Public Class toverrule Inherits Autodesk.AutoCAD.GraphicsInterface.DrawableOverrule Public Overrides Function WorldDraw(ByVal drawable As Autodesk.AutoCAD.GraphicsInterface.Drawable, ByVal Wd As Autodesk.AutoCAD.GraphicsInterface.WorldDraw) As Boolean Dim myBlock As BlockReference = CType(drawable, BlockReference) If Not myBlock.Database Is Nothing Then
[code].......

View 9 Replies View Related

Illustrator :: Multiple Offset Outlines On Closed Or Non-closed Path

Sep 27, 2013

i want to have multiple offsetoutlines on a closed or non-closed path. with "offset path" i can make only one additional outline but i need multiple?
 
i searched all over the net for answers with no success.

View 4 Replies View Related

AutoCAD Inventor :: Create Hyperbola Curve Using Equation Curve (Autodesk 2013)

Feb 19, 2013

I want to draw hyperbola curve whose equation is  x^2/a^2  - y^2/b^2=1. May I use equation curve tool to make the above hyperbola. 

I have also made a hyperbola curve of aforesaid equation through conventional method on mathematical ground in the past.

View 2 Replies View Related

AutoCAD Civil 3D :: Error 607 / Inlet A9 Gutter Capture Curve Is Not A Valid Curve

Dec 31, 2013

I have ran an analysis and SSA gave me Error 607  on the report. It says "Inlet A9 gutter capture curve is not a valid curve."

A couple things I did different from the video lectures...

I selected user define for the Tc to figure out Q. i computed those manually.

For the Inlets I have selected Maximum Capture Cutoff.

There are some inlets in this model I created that do not capture 100% of the flow so i created conveyance links to account for the bypass flow.Not sure why is not recognizing the Curve?

View 9 Replies View Related

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 .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 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 .NET :: Add New Grip Point With Grip Overrule

Oct 18, 2012

Before I will explore Grip Overrule world I have one question. Is it possible to add new grip points into Entity?

View 6 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

Lightroom :: 4 - Tone Curve Default Set To Custom With Contrast Lowering Curve?

Mar 21, 2012

Why in LR4 is the Tone Curve default set to Custom with a contrast lowering curve? I would like the default to be linear, but I can't remember how I set that up in LR3.

View 5 Replies View Related







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