AutoCad 2D :: Dynamic Block Creation - Height To Length Ratio
May 18, 2013
I am using AutoCad Architecture 2011 and I am in the midst of creating a simple line drawing of a bifold door. I have two lines. Each at opposing 45 degree angles. The objective is to have each line segment equal to half the distance measured between two points. For example; if the door opening is 2' wide each line of the bifold doors should be 1' in length if measured diagonally. The result would be a line, if stretched out, would equal 2'.
I've created a block that can stretch and rotate but I just can't figure out the height to length ratio thing.
I am currently looking into the creation of dynamic blocks. I've have not been able to get a hold of the objects that make a block dynamic (parameters, grips, actions)
There is a table with records. One of those records is the Model Space (drawing area). All drawing objects are recorded here. All layouts have the same hierarchical level as the model space. All Blocks in the document also have the same hierarchical level as the model space.
So, with this in mind I've been trying to study the dynamic blocks so I can create them programatically but when I cycle through the ObjectID's inside my block record (in this case MyBlock) it would only show the Id's for the Polyline and the text and not the other two.
It seems they are recorded elsewhere.
I want to access the object and figure out later how it relates to the other objects and make it dynamic.
I need to create a block for all our schematic work. Right now were are doing the schematic part in Visio, but like to move that part to auto cad if it is possible.
I wonder if this is possible to create though. A dynamic block that you can drag out to expose more terminals To be able to label the terminals individually. For each wire terminal to provide a snap function so lines can easily snap to them. Be able to label each wire that gets connected individually.
Be able to add a heading to each block for make and model number. Not sure if acad can actually do all this with dynamic blocks. I attached an image from Visio as well.
It's possible to create a dynamic block programatically? I want to create a command that captures different selection sets of drawing objects and assign them to different Visibility States of a new block deffinition, on run time.
I have a rectangle, it has an attribute called "WIDTH". Also it has a parameter for width of the rectangle. When I change the attribute (insert a block and define it) the width of the rectangle changes.
I use dynamic blocks a lot of the time and most of them have a stretch action in them. What used to happen would be that whenever I clicked on the block I wanted to adjust and then clicked on the stretch action, it would show the distance from the base point and I was able to type in the new length of the object I was stretching. But now whenever I click on the stretch action, it shows that the current length is 0 and it is asking for the distance from the current point, not the base point. How can I change it so that it is always just the distance from the base point?
Is it possible to change the length of a line based on the length of an attribute?
I'd like to make the line a MINIMUM length of X" (I haven't decided how long yet--but know I'll need a minimum). But then after the user fills in the attribute, I'd like the length of the line to change to the length of the attribute plus a small amount (again, I haven't decided yet how much extra).
I was wondering if there is a way with DB's to have a line "follow" or "grow" with the content/value length of an attribute. Maybe some method of linking the attribute width to length of the line? Essentially, it would work just like turning on the underline setting when typing in mtext editor (or any program with an underline option for that matter), expect that the line could be placed anywhere, and would not have to reside directly below the text.
Photoshop cs5My image is 2800 pixels wide, and I must find the height in the ratio 2:3 and 4:3 ratio. how do I find out my height in the picture?
Is there a standard feature in Photoshop, which makes it possible to create a "new" image in the circumstances 2:3 and 4:3,or can I use the "Rectangular Marquee tool / Fixed size" to make a Selecting the situation 2:3 or 4:3?
I am trying to draw 3D models for the first time, and something is confusing me. Sometimes when I draw a rectangle and it asks for a length width and height it seems the width means something else and the width means something else. I think the width means the distance from the z-axis on the XY plane, but then sometimes it is the distance from the Y-axis on teh XZ plane. I am just wondering if there is a good way to keep that a constant, or to remember which the length, width, and height is referring to at any given time.
I am trying to create a script (that I can run on a batch of images) that will resize the images to a set width but will maintain the proper aspect ratio of the images. There are many images and they are all different dimensions.
I want to resize them for webpages to a standard width (300) and have the height be automatically adjusted to the new width (proper aspect ratio).
When I try to create the script, it automatically uses the aspect ratio height of the image that was used to create the script.
When it runs on additional images it automatically sets their height to the height of the first image (used to create the script). As all of the images have different dimensions, the end result is wrong.
Is there a way to write the script so that it will maintain the proper aspect ratio of multiple images, all with different dimensions?
I made an alignment of road, inserted with sample line, then i made a profile. But on the sample line on profile, there is not a data of height and lenght of profile. How to get those data in road profile. I can manually draw that, but i think there is an easier way?
1. What is the easiest way to find points that are not constrained? I get a notice that the block is not fully constrained and its a nightmare going through all the lines trying to find where I need to apply a constarinet.( I can't wait to get off ACAD and back to Inventor.)
2. When I try to save a dynamic block using the Save Block icon under Open/Save, if the dynamic block is not fully constrained, and I click save, when I reopen the block to edit all of my constraints are gone, this has happened twice. Now I just exit by Xing out and saving changes.
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.
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 )
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
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)
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".
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.
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...
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.
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 :
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.
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.