AutoCAD .NET :: Modify Dynamic Block Properties Before Jig
Jun 3, 2013
Is there a way to modify the properties of a dynamic block after the insert and before a jig?
I've tried a quite a few things but here is some code as a starting point. The blocks are affected by the change but not in a good way. The blocks have several parametric constraints. I wonder if this is part of the problem.
<CommandMethod("TestEntityJigger7")> _ Public Shared Sub TestEntityJigger7_Method() Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor Dim db As Database = HostApplicationServices.WorkingDatabase Dim pr As PromptResult = ed.GetString(vbLf & "Block name:") If pr.Status = PromptStatus.OK Then Using tr As Transaction = db.TransactionManager.StartTransaction() Dim bt As BlockTable = TryCast(tr.GetObject(db.BlockTableId, OpenMode.ForRead), [code].........
View 8 Replies
ADVERTISEMENT
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
Jun 26, 2013
is it possible to define more than one block properties table in a DB?
I have a block definition with several attributes. I would like to pick a (predefined) value for each of the attribute. Making just one block properties table means that I need to fill all the possible combinations of these attributes.
View 5 Replies
View Related
Mar 7, 2013
It's about "Block Properties Table",I want to use a Block Properties Table to manage a Dynamic Block.
I have defined a Dynamic Block a and its Block Properties Table in Autocad2010,this is the screenshot of the Block Properties Table(a1:d1=100,d2=200;a2:d1=100,d2=400;a3:d1=100,d2=600.) Now I want to insert the Dynamic Block using .NET API.after I input a command,the block of a2(d1=100,d2=400) is inserted. I have the code about it, but the code is not complete. this is the Dynamic Block
this is the the screenshot of the Block Properties Table .
the result:
the code about it:
[CommandMethod("readBlockTable")]
static public void CmdReadBlockTable()
{
Editor ed = Application.DocumentManager.
MdiActiveDocument.Editor;
// select a block reference
[Code].......
View 8 Replies
View Related
Nov 30, 2010
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.
Here is my current
(defun c:wldsym()
(setq osnapold (getvar "osmode"))
(setq orthold (getvar "orthomode"))
(setq dimsc (getvar "dimscale"))
[code]...........
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.
View 9 Replies
View Related
Jun 27, 2011
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.
View 1 Replies
View Related
Aug 18, 2009
Is there a way to rearrange custom block properties in a DB?
View 9 Replies
View Related
Nov 8, 2013
The "Main Stretch" parameter does not correspond with the Block Properties Table. What does this parameter need to be attached to?The paramter will adjust with the pull down options of the Block Properties Table.
View 5 Replies
View Related
Sep 18, 2013
I am new to dynamic blocks. I have figured out how to use the Properites block for "preset" definitions but we offer a product in infine sizes (within limits). For example the width may range from 30" to 200" in fractional increments which is impossible to set up presets. Is there a way that a person can set up the properties block so that a person would be prompted to enter required information, I.E. Width = xx", Height = xx" etc.?
View 3 Replies
View Related
Jul 24, 2012
I have created a library of dynamic blocks in AutoCad10. When I craeted them I could click on the Grip for a Linear Parameter that was associated with a Stretch Action and the current value would be displayed (Example: The width of a block). I could type in a new value and the block would stretch to that value. Something changed this week when I attempted to use my blocks. When I click on the Grip no dimension is displayed. The command line shows "Specify point location or [Base point/Undo/Exit]". I can drag the grip to change my block but I cannot simply type in a new dimension as before.
View 2 Replies
View Related
Jan 8, 2014
I created the attached block to add spot elevations to a drawing. The block has attributes allowing elevations to be manually typed in, but also includes many dynamic features for rotation, lengthening, mirroring, etc. The block was created as an annotative block.
The block and all of its features work perfect as long as the dynamic features (rotation, etc) are not used after additional annotative scales are added. I often times have a drawing set at 1:10 or 1:20 scale and need to do an enlarged detail at 1:5.
What I would like to do is have this block set at 1:10 scale and 1:5 scale and manually rotate it (ideally using the dynamic features) at different angles for each scale. Is this possible and if so, why is it not working with this block? This works flawlessly when using annotative multileaders, so why shouldn't it work with blocks or is this just too labor intensive for the software?
I have also tried attsync, etc. and often times when rotating at different annotative scales, the text attributes go "bonkers" for the opposing scale when applying attsync.
View 0 Replies
View Related
Mar 18, 2013
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.
View 4 Replies
View Related
Jun 20, 2012
i was wondering if it's possible to change the default precision of values in the drop down menu for linear parameters when using a block properties table from 4 digits to 0.
See attached file, when opening the dropdown menu, the centre-to-centre widths of the chair are displayed in a value with 4 digits "behind the comma" and i would like that to be 0.
View 3 Replies
View Related
Apr 19, 2013
Quicker way to change the overall linetype scale than using the 'modify properties' dialogue box that comes with Autocad 2008? I've attached an image that specifically shows what I am trying to change, but I get tired of always having to scroll down in the box to find this variable. I would love to have something simple like the old DDCHPROP dialogue box (see smaller image). LISP routine or something where I click on the toolbar button, and simply change the overall scale without having to navigate through the native one?
2013-04-19_114756.jpg2013-04-19_114732.jpg
View 9 Replies
View Related
Nov 6, 2012
Any lisp routine on how to change "Drawing Properties" (fields via Mtext) on multiple single drawing files?
There are several instances where we would need to take a project to create another one and simply change the title block description.
As of now, we are opening each drawing (there could be hundreds) and modifiying the drawing properties on each drawing to change the customer name and other project descriptions.
These are not attributes, but fields. I've researched alot on here and couldnt find anything.
The drawing is attached.
View 3 Replies
View Related
Dec 8, 2011
how Inventor Materials are used in your companies, what is your customization level and usage level.Do you use Inventor Materials as they come out of the box ?Do you create your own materials?
Do you modify the properties of existing Inventor materials without changing the material name?Do you show material names on 2D drawings (in parts list etc)?
View 7 Replies
View Related
Apr 3, 2012
Is it possible to modoify an array on the fly?
I've been playing around with an incrementing block, and have figured that you can get an attribute block to report its position relative to its origin inside a block,and have it report that back. If you can do that and do formulas, you could then have that creating an incrementing number. If however you were to want to use such a block for counting stairs or alternatively counting car parking spaces, and want to get the spacing of the array just right, you seem to have no choice in the size of array other than when editing the block?
Attached is what I have simply created. No calculations, just reports the position in X, but shows the possibilities. Stretch the text out and you get more numbers.
Time consuming to create alternative is to have to define each number object individually and do a move action, based on something like an object being stretched (length of stretched object becomes part of a multiplication factor for a move action). See Numbers increasing block attached. More precise but takes a while to create, and is limited to the numbers shown.
View 7 Replies
View Related
Sep 20, 2013
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.
View 2 Replies
View Related
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
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
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
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
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
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
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
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
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
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
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
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
Nov 15, 2012
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).
View 9 Replies
View Related