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


ADVERTISEMENT

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 :: Copy Paste With Base Point / Sometimes Block Insert But Its Not Showing

May 28, 2013

I have been using copy paste with base point on block from drawing to drawing but sometimes the block insert but it is not showing. I go to insert block is there but does not show in the drawing. Then tried to purge it and it does not let me because it is in the drawing but I can find it any where. Then I tried to do the insert block look for the block and inserted as a block and the same result.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change A Specific Attribute From Specific Block To Specific Value

Dec 7, 2011

I've had a simple lisp I've been using for years that suddenly disappeared.  It required that you identify a block name, tag name, and the value that you want the tag to be.  All of this is performed via command line, so it is scriptable.  Since I lost it, I've been experimenting with -attedit.  This command comes frustratingly close to what I'm looking for, except it only appends an existing tag, or replaces a specific string within the tag; I can't get it to replace the entire tag, regardless of its value.

1> Any lisp routine that does what I describe?
or
2> How to make -attedit replace a tag value without regard to what the value currently is (like a * wildcard)?

View 9 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 LT :: Unable To Move An Entity Along Line A Specific Distance?

Apr 18, 2012

RE: Autocad LT not able to move an entity along a line a specific distance using cursor snap and dynamic input

What I want to do is move a line on an angle a certain distance in the direction of the line itself in this case 20mm

What used to happen is you'd simply select move and an endpoint on the line then hover over the mid or opposite endpoint of the line and enter 20 and it would move 20mm along the trajectory of the line.

The same set of actions now only seem to allow you to move the entity 100mm (the default value) along itself in the correct direction. If you enter 20 it does not move and if you enter 50 it moves 100!

View 9 Replies View Related

AutoCad 2D :: Move Base Point Of Block In Block Editor?

Mar 20, 2009

I want to move the base point of a block in the block editor. However, when I move it, the block moves accordingly in the drawing.

How can i move the base point in the editor, so that the block stays at the same position in the drawing.

View 8 Replies View Related

AutoCAD 2013 :: Video Showing Sub Entity Selection With Use Of Control Key?

Jun 6, 2012

Does any video showing sub entity selection with use of control key?

I can not seem to get it to work.....so I don't know if I am doing it wrong, or if I have somehow disabled the feature....

Perhaps there is a link out there showing it working?

View 9 Replies View Related

AutoCAD Inventor :: Base View Not Showing Corretly

May 7, 2012

When creating a new view of flighting on a tube part of it shows up like it should and part shows up as dashed lines and when you turn on "shaded" the parts that are dashed do not shade.  All of the flighting parts come out of the same file and the tube is from a different file.

View 5 Replies View Related

AutoCAD .NET :: Iterate All Entity In Block And Display Type Of Object

Aug 12, 2013

I would like to iterate all entity in Block and display the type of the object. For example: LINE, BLOCK REFERENCE, LWPOLYLINE, TEXT . . . .

I currently have:
 
For Each Ent as ObjectId In CurrBTR Debug.pring (Ent . . . .)Next

View 3 Replies View Related

AutoCad :: Changing Entity On Single Instance Of Defined Block

Jun 8, 2012

A defined block "DH" has:

A circle on layer CIR having a color of red...
A defined attribute on layer ATTR having a color of white...
The insertion point is the center of the circle...

Is it possible to change the circle to blue on one instance of the block without affecting the same change to other identical blocks in the drawing? Example:

Attachment 35286

View 2 Replies View Related

AutoCAD .NET :: Detect View Change To Automatically Reposition Block Entity

Nov 17, 2013

I would like to detect view change (especially when orbiting the view around) to automatically reposition table-like(block) entity such that the user can always see the face of the entity.

I figured out that there is viewChanged event in AcEditorReactor, but it doesn't seem like it is visible in .NET.

How could I use this callback function?

View 7 Replies View Related

AutoCad :: Create A Block So That The Base Point Is The Only Snap Point On The Block?

Aug 22, 2013

is it possible to create a block so that the base point is the only snap point on the block?

In other words supose I have a block of a simple rectangle with the base point in the center.

If I try to snap to the block, I will be able to snap to all the corners, but not the base point. I know that i can put a point at the base point, but can I turn off the snap to the corners (just for the block) in other words, have an object that is unsnapable to without turning the snap mode off.

View 7 Replies View Related

AutoCAD .NET :: If Selected Entity Xdata Contains Value Then Select Additional Entity

May 22, 2013

I would like to add additional entities to the selection if any of the selected entities contains a an xdata value.

If I put the condition into the ImpliedSelectionChanged reactor I imagine will probably loop back on itself.

View 9 Replies View Related

AutoCad :: Block Not Displaying Base Point

Feb 14, 2012

I received a 3rd party drawing which contains a block to indicate directions. The block does not display its base point and I am unable to find it. why this block is not displaying the base point.

View 9 Replies View Related

AutoCAD Architecture :: How To Change Base Point Of A Block

Jul 31, 2011

I have lots of block in a file in different places. How to change the base point of that block with out changing the position of that?

View 1 Replies View Related

AutoCad :: Block And Wblock Base Point Selection

Jun 4, 2012

What method of block base point selection do you mostly use:

Screen selction point
WCS 0,0,0 point

View 9 Replies View Related

AutoCAD Inventor :: IAssembly - Parts List Not Showing Specific Configuration BOM

Aug 4, 2012

I'm creating a drawing for an iassembly, and I can't get the parts list to automatically show a specific configuration's BOM.  I've tried filtering, "Ballooned Items Only," and that doesn't change anything.  I've tried to create a parts list that looks at the child assembly, and the parts list reverts to the parent iassembly.

In the Browser, there's a lightening bolt next to each parts list in the tree.  There are three parts lists/configurations.

The parts list lists parts that aren't in the assembly shown, and/or shows wrong quantities.  I can manually update the bom, but I would much rather not.  Is there a macro or add in that may be useful?  I'll be making many prints from iassemblies, and this would be very useful.

View 2 Replies View Related

AutoCAD Inventor :: Showing Section View In Base View

Dec 13, 2012

how to show section view in base view with out projection the component.

View 2 Replies View Related

AutoCAD LT :: Searching For A Specific Block

May 8, 2013

Im trying to find a particular block amongst hundreds. I know the name of the block also what layer it is on i just want to be able to find that block through a search so i don't have to spend ages scouring the drawing to find it.

View 2 Replies View Related

AutoCAD Civil 3D :: Add Base Or Sub-base Depth To Transition Lane?

Apr 6, 2011

Is it possible to add a base depth to the transition lane assembly?   I need to do volumes for my road, (pavement, base) but there is a section with a transition (which only has one depth), so that section is off.

View 5 Replies View Related

AutoCAD .NET :: Run Command On Double Click Block With Specific Name?

Feb 26, 2013

I wrote a couple of functions one of them creates a block with a Name let say "MyBlock".

I wrote a command "MyBlockEdit" where the selected block attribute data is displayed in a custom form to change some of the properties.

Now I want to add the folowing function:

When a block with the blockname "MyBlock" is doubleclicked the command "MyBlockEdit" is triggered in place of the attribute editor.

View 9 Replies View Related

AutoCAD LT :: Updating Proxy Entity - Can Proxy Entity Attributes Be Changed

Feb 27, 2012

want to upated attributes in proxy entity is this possible?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Delete Specific Block

Feb 13, 2013

I need to delete a specific block from current opened drawing by LISP command.

for example removing XREF attached is very easy:

(COMMAND "-XREF" "D" "FRAME")

I can remove "FRAME" XREF from drawing. Now, I want to delete a/all block with "TB12" name with same action!

(command "BlockDelete" "TB12")

so, how can I delete a/all block with specific name in current drawing?

View 9 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 :: Insert Block - Switch Between Base-point And 0,0,0 Point?

Apr 29, 2013

I'm inserting blocks into my drawing and the block has a basepoint and a 0,0,0 point. The CAD guy who usually works with me is off today but he has a keyboard method of switching between the 2 points when inserting the block.

Its a fairly straight forward thing on his keyboard, nothing he has set up but standard in autocad.

I've had a try hitting a few keyboard buttons this morning but can't seem to do it.

View 1 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 Visual LISP / AutoLISP :: Insert Block In A Specific Layout Using Function

Jan 28, 2012

I would like to insert a block in a specific layout (eg. "LAYOUT13") using the function vla-insertblock

I have already searched the web and this newsgroup but have not found the solution.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: SSGet Specific Dynamic Block / Since They Are Anonymous

Sep 19, 2011

If you do a LIST command on a dynamic block... AutoCAD tells you the Block Name as well as the Anonymous Block name.

How can I use ssget to snag all Dynamic Blocks that use the 'Real Block'?

View 3 Replies View Related

AutoCAD LT :: Block Not Showing In Viewport

Mar 24, 2009

why a standard block, created by autodesk (a dynamic arrow with gradiated hatch to be exact), shows in model space but not in the viewport.

It's not on a frozen layer or non print layer.

i am using:

Autocad LT 2009
Win 7 Pro 64bit, Dell Precision M6500

View 9 Replies View Related







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