AutoCAD Dynamic Blocks :: How To Fully Constraint Entities

Jun 12, 2013

I realize that i don't understand how to use constraints (specifically how to "fully constrain" entities) in my dynamic block.

attached is a sample of what i've got.  (note the small circle at the insertion point that has 4 lines in it - i used these to base my angle constraints on)

upon inserting the first instance, everything behaves as i'd like.  but once i stretch out the bubble, it seems to go back and automatically update the definition so that the next instance i insert is using the first instances dimension as the starting point.

View 2 Replies


ADVERTISEMENT

AutoCAD Dynamic Blocks :: Constraint Stability - Rotation Parameter

Jan 22, 2012

I have been trying unsuccessfully for several days to achieve a stable setup for the attached. This is the closest I have been able to get so far but as you can see if you change the width then the rotation parameter, the stability of the block very quickly breaks down.

The problem seems to be associated with the move action which determines the center point of the angle parameter. It seems to only work properly when you change the width parameter and the rotate handle is in the 180deg. Any other position of the angle parameter results in incorrect alignment of the geometry.

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Constraint Red Line To Follow The End Of Attribute Text

Nov 22, 2012

In the attached block, how can I contraints the red line to follow the end of the attribute text?

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Move Attributes In Constraint Parameter Environment

Mar 12, 2012

I have a dynamic block that I am trying to add some pretty basic functionality to (at least it seems like it should be simple!). Since I’m still relatively new to DB’s, I figured I’d give some background on what I’m trying to do, cause maybe it could be done with a much easier approach than I have come up with. So if you don’t feel like reading the details, see the fourth paragraph for my actual question.

The block is a sheet reference annotation (that shows:  SheetNum/TotalNumOfSheets)  that we typical put in the notes section of our construction drawings.  It looks nice when the text (which are attributes), lines up with the text in the note (usually Mtext, but sometimes a Mleader). So I constantly find myself completing the tedious task of placing the block at the insert point of the Mtext (which is always justified LEFT TOP), and then calculating the distance down to line that I want the block to line up with.

So what I want the block to be able to do is to be able to have the user grab the block by its basepoint, place it at the insert point of the Mtext object, and just enter the text height of the Mtext note, the line space factor, and the target line of the note that the sheet reference block should line up (the input would all be done via custom block properties in the Properties Palette).  And since we almost always use a text height of 0.125 and Line Space factor of 1, those will be the defaults, and really the only thing that would need to be entered would be the line number of the Mtext that the annontation should line up with.

I already figured out most of the constraint parameters necessary and calculated the offset equation using custom parameters. I have all the linework moving correctly using the vertical constraint parameters, however, I cannot figure out how to get the Attributes to move along with the linework. I know how to move text and attributes using Action Parameters, but I can’t do it with Constraint Parameters. So I figured that maybe I could chain an Action Parameter to the Constraint Parameter, but I couldn’t figure out how to do this either. Also, I am using visibity states and would like the visibility grip to move along with everything else as well.

My block is attached. I used some lines for the Constraint Parameters to be associated with, but they are only there for the block to operate correctly, therefore they are invisible in both of the visiblity states. Probably not the best way, but it works.

View 5 Replies View Related

AutoCAD Dynamic Blocks :: Creating Array Within Block That Is Setup With Constraint Parameters

Feb 6, 2013

I'm trying to create a window block with a grille.  I've created the block and the horizontal grilles.  What I'm having a hard time with is creating the vertical grilles.  I would like to set up an array that would take the glass width, divide by 12, round up the value to get the number of vertical sections.  Here's the code that I've figured out:

(W/(ceil(GW/12)))

W=Width

GW=Glass width

How do I set up an array with this formula?

View 2 Replies View Related

AutoCAD Inventor :: Use API To Add Coincident Constraint For Multiple Entities

Nov 19, 2013

I have created multiple sketch entities like line, arc, circle etc. using the Inventor API's. Now I want to add the coincident constraint between start point of line, start point of arc and center point of circle.

I have added coincident constraint through UI(Please see attached snap). The same I want to add using Inventor API's. which API I should use to add the coincident constraint for such multiple entities.

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Annotative Parameters Inside Dynamic Blocks

May 5, 2010

I've made annotative blocks and I've made dynamic blocks... My intent is to integrate both but I can't find a way to move dynamic block parameters separately at different annotative scales.

In other words, if I insert an annotative dimension and add multiple scales I can move the dimension grips independently at each scale. If I insert a dynamic block I want to be able to use the dynamic block's action "grips" to do the same. However, with a dynamic block, if I move a stretch action at one annotation scale it moves the action at all annotation scales.

The attached file shows a simple example.

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Adding One Action To Dynamic Blocks

Mar 15, 2012

I have created a dynamic block with several visiblility states. The block works great for what I need it for. however, I am trying to add one more action to the block but am having issues.

This block is essentially a 24" retail cabinet with the visibility states showing the different drawer and shelf configurations. I want to be able to lengthen the cabinet in 24" increments and have the visibility show for each 24" section.....e.g.  I want a 10' cabinet so I bring in the 24" starter block. Then stretch the cabinet to the 10' mark, then I can chose any drawer/shelve config for each 24" section (they are all different).

I can get the block to stretch in 24" sections....no problem.....i just want the visibility state to be duplicated as well for each section. Now as it stretches, there is only one Vis state and it only populates the first cabinet.

I could do this by copying the block over and over 5 times.....but I am hoping there is a way to make this dynamic.

View 7 Replies View Related

AutoCAD Dynamic Blocks :: Insertion Point On Dynamic Blocks

Apr 23, 2013

I have a block I am making into a Dynamic Block. I will be adding in different visibility states. Depending on the visibility state the block would need to be inserted from a different point.

My question is, is it possible to add multiple insertion points to a dynamic block so depending on the visibility state it defaults to the correct insertion point?

View 2 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 Dynamic Blocks :: Stretching Dynamic Blocks

Sep 7, 2012

is there a way to make dynamic blocks stretchable similar to a mleader,

the blocks i create are only stretchable by grips, and not by crossing

(i am using linear or point parameter stretches)

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Grips And Dynamic Blocks

Jun 1, 2006

Is there anyway to link standard AutoCAD Grips and there commands to Dynamic Block Actions? I want to stretch an arc by its midpoint grip. This accomplishes something that no other commands do.

View 4 Replies View Related

AutoCAD .NET :: Selecting Blocks / Entities

Jul 12, 2013

I have some blocks which are placed with some routines in VB.net and are linked by a unique code to a external data file (XML-file). I want to try to created a kind of propertybox (in a toolpalette) which indicate some of this external data values. If one of these values are changed (by changing the values in the propertybox), some routines need to be executed.

Is it possible when a object is selected (not during a command), to run a piece of code (VB.NET). I have found some basic principles about "overruling" but I'm not sure this is the correct/possible way to solve the problem and I'm not there yet.

View 4 Replies View Related

AutoCAD .NET :: How To Change Dimensional Constraint From Annotational To Dynamic

Jun 12, 2012

public class DimConstraints{ [CommandMethod("Test")] public void Test() {
Database db = HostApplicationServices.WorkingDatabase;
using (Transaction trans = db.TransactionManager.StartTransaction()){
Circle circle = new Circle { Center = Point3d.Origin, Radius = 10 };
ObjectId modelId = SymbolUtilityServices.GetBlockModelSpaceId(db);
BlockTableRecord model = (BlockTableRecord)modelId.GetObject(OpenMode.ForWrite); model.AppendEntity(circle);
trans.AddNewlyCreatedDBObject(circle, true);
AssocUtil.CreateRadialDimConstraint(circle.ObjectId, circle.StartPoint, circle.StartPoint);
trans.Commit(); } }}

The above codes use the simplified .NET API for accessing AutoCAD parameters and constraints from: [URL] ....

The above codes can create a radial dimensional constraint. But the type of the dimensional constraint is annotational. How to change it to a dynamic constraint?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Detect The Blocks Which Has No Sub Entities

Nov 27, 2012

I want to code this lisp. The problem which I face is, In some drawings which come from the client, there are a lot of blocks.

I want to detect the blocks which has no sub-entities (but attribute) and add a rectangle inside this block, If it is an attribute add a line from 0,0, to insertpoint of attribute.

View 5 Replies View Related

AutoCAD Dynamic Blocks :: Link Dynamic Block Custom Rotation Action

Mar 22, 2013

So I've done a reasonable amount of work with dynamic blocks. I have a block with a rotation action and grip to arbitrarily align it.  However I realized when trying to combine it with an alignment grip (which actions on the basic or fundamental block rotation angle) that there didn't seem to be a way to some how link a dynamic block rotation action or one of the custom angle properties to a the fundamental block rotation angle.  Thus there are two additive rotations at work; the dynamic block one with its grip and the fundamental rotation property.

This can cause some confusion when one person aligns with the grip and another via rotating the block's fundamental property and would also be problematic in the generalized sense if one was trying to select or programmatically read back the net angle alignment.

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Moving Properties Table Grip In Dynamic Block

Jun 13, 2013

I have a dynamic block, that represents a stirrup.

I inserted in the block a Block Propreties Table, that have some preset dimensions for the stirrups. The grip of this table I decided to put in the top right corner.

The problem is that I can't make this grip moveable )

See the attachement with the block

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Flipping Dynamic Block With Multiple Items Not Visible

Jul 25, 2012

new to dynamic blocks but looking to streamline my wiring diagrams here and have created a block that shows the typical wire styles we use in a simple easy way.  I now want to add an overall flip to the entire block and have not been able to find set this.  I would prefer to use the same label and go from there.  I have included the block to show what I mean.  It is only working on the single visible item at the one time.  I know this has to be possible just let me know what I am doing wrong.  I am running AutoCad LT 2013 

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Create A Dynamic Block For Glass Panel In Balustrade

Feb 28, 2012

I need to create a dynamic block for a "Glass Panel" in a balustrade. I need to be able to insert it, in one corner and stretch it in another corner, to suit the staircase angle.

I've created the block, but it isn't working correctly. I've attached a drawing, with the left hand drawing a sketch of how it needs to be. The right  hand drawing is my dynamic block attempt. As can be seen, when the block is stretched between the 2 points, it doesn't follow the angle of the staircase correctly (Very slight run off)

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Insertion Point Of Attribute Changing Within Dynamic Block

Nov 21, 2011

I wish to create a dynamic block containing some attributes. These attributes are inside rectangles that can't be modified in length using linear parameters ; but the attribute has to be always in the middle of the rectangle. So, I draw a line inside the rectangle (in a hidden layer) and insert the attribute with center justification (not sure for the translation) that I place in the middle of this line ; then I put a coincidence constraint (not sure for the translation, but it's the first one) linking the middle of the line with the middle of the attribute.

But here's the problem : when stretching my rectangle, the insertion point of the attribute suddenly changes from "center" to "bottom left".

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Pass Attribute Values To Dynamic Block Parameters?

Dec 4, 2013

I am looking for a way to use the ATTIN/ATTOUT workflow to bring in data from an excel spreadsheet to drive the size of each of my block's instances. The block will be simple, a rectangle, with width and length parameters. For each entity in my excel/csv file these parameter values are spelled out. I know how to display these parameters in my attributes, but I don't know how, if I were to feed in these values, to drive the geometry. If there's a better way to take a list of width and length values to generate a series of blocks each with a rectangle containing its respective size.

View 1 Replies View Related

AutoCAD Dynamic Blocks :: How To Disable The Dialog Box Shown When Open A Dynamic Block

Nov 7, 2011

I need to do some repetitive task on a lot of dynamic blocks, unfortunately, when I open each file, AutoCAD keeps asking if I want to open it with the block editor.

Is there a way to disable that dialog and open the files as normal dwgs?

A hint: BLOCKEDITLOCK doesn't make it, it shows another dialog...

View 4 Replies View Related

AutoCAD Dynamic Blocks :: Printing Dynamic Titleblocks With Visibility States

Feb 15, 2012

usage of dynamic title blocks with visiblity states and defining page setup override templates which use same for quick plotting using sheet sets.

I have attached a simple dynamic block that I built which is the outter frame of our company title block, it is designed to allow users to quickly switch between Landscape and Portrait orientations. 

The problem I am having is when I go to define page setups for my Sheet Set Page Setup Override Template I am unable to use the "Extents" option with auto-center because the "Extents", as defined by the page setup, includes ALL objects in the paper space regardless of visibility, so my title block ends up being centered in a stupid way if that printing configuration is used. 

The only solution I have found is to use the "Layout" option when defining page setups, but this option produces other issues in other ways when printing.  I don't want to use the "Window" option either for the potential for users to be using the page setup overrides to print drawings using different paper sizes or drawings that were not originally created using the current template the override is designed to accomodate.

Is there perhaps a system variable that defines whether invisible objects are included in the "Extents" setting in the page setup?  I'm sure you'll all agree that Extents is the way to go in this situation, but it is not performing exactly as required.

View 5 Replies View Related

AutoCAD Dynamic Blocks :: Make Dynamic Block Of Column Radiator

Mar 26, 2012

I'm trying to make a dynamic block of a column radiator.

It should be very simple. It's a 46mm wide module that comes in a range of heights (300, 500, 600, & 750mm) and a range of assembly widths (9, 13, 18, 22 & 27 modules wide - more commonly given as mm widths of 414, 598, 828, 1012 & 1242 respectively).

My attempt at constructing it has gone quite well, but when 'stretching' the block a ghost of the core 414 (w) x 300 (h) unit remains. I attach the block to give you a better idea of what I mean.

View 4 Replies View Related

AutoCad :: Insert Dynamic Block From File With Multiple Dynamic Blocks

Jul 16, 2010

I have a drawing ("SURUBURI.dwg") with several dynamic blocks ("M12", "M16", "M18" ... an so on...). I want to insert in my current drawing, one of the blocks from SURUBURI.dwg, for instance the block named "M12".

For that i tried creating a new command "INSERT_M12" that has the following script :

^C^C-INSERT; "I:/Ionut Mihaila/Goodies/SURUBURI.dwg/M12"

Now obvious that doesn't work, but i think it shows clearly what i want to accomplish. So is there an other way to do this?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Join Two Dynamic Block To One Common Action?

Sep 18, 2013

I'm working on a drawing and I want an action to work on two diffrent dynamic blocks. 

In my case, I wish to have two blocks that I can rotate by one rotation grip.

How do I manage to work this out?

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Stretch Dynamic Block Grip Points

Feb 4, 2011

I have successfully created a dynamic block. I can insert it into AutoCAD, and it behaves like I want, except for one thing.

I can select the block and change it by taking a grippoint and place it at another position. So my block is e.q. stretched, just like I wanted.

But then. When I want to use the ordinary STRETCH command of AutoCAD, I can only stretch the insertion point of the block, but not the grippoints. Is there a way to set a grippoint to be select edable by commands like STRETCH.

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Variable To Change Dynamic Grip Parameter Size And Color

Oct 11, 2012

What is the variable to change the dynamic grip parameter size and color.

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Dynamic Door / Specific Parameters To Change Its Size And Orientation

Dec 13, 2013

I'm working on a dynamic door, that has specific parameters to change its size and orientation. Everything works pretty good, only the arc for the door won't react the way I want it.

View 8 Replies View Related

AutoCAD Dynamic Blocks :: How To Create WAVE Dynamic Block

Mar 1, 2013

I would like to create a "wave" dynamic block, see below...

It is made from wipeout.

Is it chance to make a similar?

If I make a list for the length (from 125 to 350), after can I make a table /list /summary where these size are shown?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Scaling Objects In Dynamic Block

Jun 27, 2013

Why the drawing title in my dynamic block will not scale up or down. The rest of the objects scale properly but just this the drawing title text attribute will not follow suit.

I tried adding position point and link, etc....I run out options and don't know how to fix this.

LT 2012 user

AutoCAD LT 2012
Windows 7 - 64 bit

View 3 Replies View Related







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