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 have created a dynamic block with stretch points. I used the tester in the block editor and all works fine, but when I insert the block into a drawing, the grips for the stretch action are in a completely different place...I don't mean a different place on the block, but a different place in the drawing...way out there. so if I go into the block editor for the block while I'm in the drawing...the parameters have now moved way out of the way also, in the block...but if I actually open up the block itself and then go into the block editor, all the parameters are where i placed them in the first place.
Is there a way to have the grip stay in the correct position when the distance multiplier is .5? It seems to "get ahead" of the original location.
In the attached block, when I stretch the block with the grip, the grip ends up off the end point. Both actions have a .5 multiplier, with the left side having a rotation of 180 - so both sides stretch equally in opposite directions.
Also, there are 3 views with parameters (width/depth). Is there a way to get the user to enter in the sizes without having to select the size on each view? Basically a table that has a 'user input' field so the size selected changes everything at one time.
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 have this double click class. which works fine. In order to clear grips after user finishes with double clicking,I added two lines (which shown on code below). But having those two line make code faulty. When ?
if user select a dynamic block with stretch grip on it, then double click on stretch grip trianlge. code geneaarte fatal error. Funny thing is code doesn't catch. it. Is there any other way to clear grips after double click ?
Here is code:
Imports Autodesk.AutoCAD.RuntimeImports Autodesk.AutoCAD.ApplicationServicesImports Autodesk.AutoCAD.EditorInputImports Autodesk.AutoCAD.DatabaseServicesPublic Class Main_0_Class Implements IExtensionApplication Public Sub Initialize() Implements IExtensionApplication.Initialize dblClickEven_Class.Start() End Sub [Code] .....
If you have a drawing open and the Tool Palette Architectural open click on the door. It has "tick marks" where you can stretch the doors opening to (24", 32"). I want to know how to add those "tick marks" to my blocks .
A simple dynamic block using a Block Properties Table to control the value of an attribute. The block also has flip & rotate actions, but I cannot get the Block Table grip to flip or rotate with the rest of the block even though it is part of both selection sets.
I am working on a dynamic block that I figured would be fairly simple. However, it is proving to be a huge annoyance. What I want for it to do is stretch the end of a polyline with a stretch action, while at the same time moving the grip of my block properties table. No matter what I do to it, the block properties grip won't move/stretch.
I have drawn a simple block that I want to stretch in two directions manually or from the properties palatte.
My block works fine once and then breaks down. Stretch the block in the 'Y' direction. Deselect the block. Stretch the block again and only the grip moves. Edit the block and close the block, the block resets.
I am trying to put a polar stretch on the block uploaded, but it doesn't seems to work (maybe because of my constraint? ). If something major is wrong with it, is there another way I can make the same drawing proportional when i rotate it and stretch it ? Also, after that I have to use it for vlisp.
I have a dynamic block that I would like to insert via a lisp routine. When the routine is run from my menu I would like to select two points on the drawing area. Then I would like my dynamic block to be inserted at one of the points I selected and then I would like a specific "point" of my block to be stretched to the other point that I selected. I was wondering if this is possible with LISP? I have my old LISP program I wrote that draws a leader and then inserts my block but that was before I started working with dynamic blocks.
wld1r.dwg is my current block. It has some dynamic properties already. But I'm trying to add new properties that can be seen in my working test drawing wld1r-new.dwg
When using my code with "wld1r.dwg" you can see how everything behaves right now. Then open "wld1r-new.dwg" and note that the insertion point and a stretch point my default are in the same spot. Work with the two stretch points and look at how the block reacts.
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.
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'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 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.