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 :
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 am trying to insert a block into a drawing that uses dynamic blocks. I want the block to be associated to the dynamic block, so that when I alter a linear stretch parameter on the dynamic block it moves the other block.
I am probably missing something obvious, but have now googled my mind into a numb state and can't make any more progress.
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 )
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 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.
I am trying to create a dynamic block that allows me to insert a single rack into a drawing and make a single row of racking with all racks staying 9'-0" center of post to center of post. Also would like to be able to turn that one single row into a double row that spacing between rows can be modified. I have attached a cad file showing a single rack and two example, one of a row of double racks and one of a single row of racks. This rack is 48" deep i will also have to create this for a 60' deep rack so how i can create future rack sizes and rows.
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.
I have a dynamic block with several actions and parameters. There are three grip points. Two are visible. One appears when you move one of the other grips. If i insert or paste this block near my template, the X/Y basepoint stays near the template when i drag the block on the template with one of the other two grips.. When i print the drawing the basepoint stays visible and the scale on my printed drawing is not correct (smaller).
I am creating a dynamic block of a conveyor belt it has a set number of widths and needs to be stretchable in length, which I have managed to do. The motor is placed half way down the length of the conveyor and needs to stay centered
I know I need to use the move command and put in a factor of 0.5 somewhere, but I can't remember how to do it.
Is it possible to mirror a rotation within a dynamic block?
See the attached drawing. I am trying to have two rotations within a dynamic block, but only one grip. When the grip is rotated one half of the block rotates while the other half rotates in reverse. The resulting action would be much like the wings of a butterfly.
I have tried many different combinations of parameters, actions and constraints with no luck. The block in the attached file was as close as I could get. Have I reached the end of what AutoCAD is capable of?
I have a block of a roof screen. What i want to do is to stretch it & have the slats on the front & also the supports on the rear array @ different intervals. The slats on the front would array every 6-1/2" (The slats are 5-1/2" wide with a 1" gap). The supports array every 4'-0". I have tried to do this multiple ways with mixed results. How to get my desired outcome. I am enclosing my block.
Last week I opened the drawing and added some visibilty states etc. to the block.
Now when I open the block or insert it into another drawing for whatever reason the cursor or crosshairs stop at the edge of the block. And if you move towards the middle of the block where there isn't any lines etc. the cursor will move to that point until you hit another line then it will stop moving again.
I've been reading some other posts for different dynamic block topics/issues and read that everyone has problems when you get to higher numbers of visibility states, but when I edited last week I only added 7 states. Is that enough to make this happen? It sounds like everyone else that is having problems has far fewer visibility states than on the attached drawing.
I am looking to create a dynamic block that changes in scale, ex. If I have two (2) viewports in paper space, one 1/4"=1'-0" the other 1/8"=1'-0" I want my blocks to appear to be the same size in paper space.
Also, I would like my blocks to change attributes/features ex. If I have a "light switch block" I would like to have the option of switching the block from a 3-way switch, 4-way switch etc.
I have created a dynamic block with a stretch, flip and rotate. Everything works great in its file. When I insert it in another file, the grips move but the block does not change.
I have a group of blocks, when I click the blocks I get the editable attribute pop-up box. I can now enter a text of my liking.
I have now made a dynamic block of these blocks, with a visibility states dropdown. So that only one block is shown at a time and when I need to change it I copy the block and use the dropdown button to select the one I need.
The problem I have is that the when I click the blocks from the dropdown only one of them allows me to use the editable attribute pop up window. The others say 'The selected block has no editable attributes'.
If I can't have multiple blocks with editable attributes in one dynamic block or if I can and have done something wrong.
I've attached the block so you can see what I mean. Single Socket allows editable attributes others wont.
I try to create dynamic block of Tectus hinges. Bassicaly I would like create multiple visibility block:
first grip - type of hinge (TE240, TE 340....)
second grib - type of view: elevation, side and plan.
For plan view I would like create third grip with options: close, open 90 deg, open 180 deg.
In attached file I'm started working on this. For now I focus on first two type of hinges TS240 and TS340. I'm close to realize my gola but still something doesn't work correct. If you play with grips sometimes block disappear on show as custom view.
The block is a piping with various links that back together and they should stay behind each other, they are not go over each other otherwise the spacing is not good after data extraction.
The distance between not less than 100 mm and the total length should not exceed 5000mm are. Furthermore, they are relatively movable from each other.
I've been working with linear parameters and constraints, but that's not good as far as I know I can not apply visibility later with links that point to the other side.
I would like to create an "Y" dynamic block, see bellow.
The hole length and the "cross" point will be variable, between the two sticks will be 90 deg, and it will be FIX.
I would like if I change the "variable 2" distance the two sticks follow the cross point, and the top of the sticks stay in the same level, but between the sticks the 90 deg stay!
I am trying to insert a Dynamic Block and change it's Visibility State. I can insert the block, and the visibility state changes, however, if I manually try to change it after, it does not change, even though the value has changed. My code executes and returns no errors, so I am assuming that I have done something wrong, or missed something out.
public class MyCommands { [CommandMethod("MyGroup", "Bolts", "MyCommandLocal", CommandFlags.Modal)] public void MyCommand() // This method can have any name {
[Code].....
If I insert my block manually, I can change the states and it works fine, but the code seems to break the block.