Jump to content

Search the Community

Showing results for tags 'dynamic block'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

  1. As a result of multiple updates of AutoCAD software and addition of 12D software I have lost the ability to block replace a block with different x,y,z scales with a dynamic block and have the dynamic block retain its function. Is there a way for the dynamic block to work with different x,y,z scales?
  2. AutoCAD 2012 - 2D I'm trying to create an Annotative Dynamic Block (flip action) that contains a single attribute and some geometry.. The attribute is a "multi-line" attribute so it will change justification correctly when flipped. At the moment I would prefer a "single-line" attribute cause it's faster to fill in your data. BUT - the multi-line attribute also has it's benefits, so I'll keep it for now. The block work's just fine until you decide to change the annotative scale in model space. Please check out the attached file. Try this: 1: Flip the block that's already inserted into the drawing a few times - All is well. 2: Change the annotative scale in model space and try flipping it again - Nothing is well.. 3: Try inserting a copy of the block (insert block and choose "test" from the drop down menu) into the drawing and flip it - All is well. 4: Repeat step "2"... What am I doing wrong?? I can't figure it out.. Any help will be greatly appreciated. Kind regards Blank.dwg
  3. Example: I have 4 schematic blocks of a valve (existing, proposed new, proposed abandon, abandoned) and created a dynamic block of them all by applying invisibility states. Now I need to select all of the 'existing' valves to change them to 'proposed abandon'. I'm unable to select the invisibility states using QSELECT so I'm wondered if there is a LISP or something that can do this?
  4. I use Dynamic Block and insert attribute field for value - placeholder - name. here is a print screen - http://joxi.ru/l2ZYpRXU88VExm If i attache the file from a reference in another file, this bloc shows the block name and file name in attribute value. view here - http://joxi.ru/zANBvYdfllwBkA How can i remove name file "Semnalizare" from this attribute value? Thanks.
  5. Is it possible to use a DB with viewports? The attached file contains the DB with notes indicating what I would like to do with the DB. Basically I made a stretchable box that would be used on our detail sheets. This box has text that will stay at its location in relation to the DB. I've noticed that I can not use constraints on the DB after its inserted into the drawing. Is this normal? For example, I want to add a viewport to the DB and constrain its size using parametric dims but when I do this the DB is no longer a DB. Hopefully the attached file can better explain what I need. Perhaps I'm asking too much. THANKS! VIEWPORT.dwg
  6. I have the following block where I have successfully inserted stretch action (no limits) and array action (limit 20). I need to display the array count number next to the block so that I don't have to count the aisles every time I have to use the action. Dynamic Array Count.dwg
  7. Hi, Does anyone know how I can create a dynamic block with an editable attribute that has the option to mask objects? I have a very simple block, it's just a triangle with an attribute and I have applied some dynamic rotations to it. It is just used as a length marker for water pipes. I find it odd that there is no option to mask out the background like I can with MTEXT. The only workaround I can think of is to add a true white hatch to the block. Thanks in advance.
  8. I have the application attached below with these problems: 1. The flip action works fine on (1 to 1) but for the rest it's a mess. 2. The Length is not updating instantly I must regen. I want it to update automatically without regenerating the file Thank you Dynamic Lanes.dwg
  9. _SRK_CS.dwg Hi folks. I don't have a lot of experience with dynamic blocks but I am attempting to create a dynamic (and annotative) Cross Section line with attributes. When I test the block it works as expected, but when I actually use the block the attribute labels rotate oddly. I also can't figure out how to enter the attribute details without editing the block. The only way I can get the labels to change in an annotative way is to block it first. So basically I have nested blocks which I'm sure is the problem - just don't know a better way. Thanks for any help in advance.
  10. Is there any way to update new field attributes in existing blocks already placed in the drawing? I have tried BATTMAN, REFEDIT, ATTSYNC, FIELDEVAL=31... nothing is working. Or will I have to insert all those blocks again? Cause for now that's the only way I can make it work.
  11. How can we have an array with variable distance between columns in dynamic block? I have an application where I used a lookup table for a stretch action, I want the array distance to change when I change the value in the lookup table.
  12. I have a dynamic block suppose a rectangle where I applied a stretch action, I want a label telling the user the length of the rectangle every time he stretches it. A small research on the web informed me that it is possible to put a label inside the rectangle that displays its length, but when stretching the block the value does not change. Any idea how to reach my goal?
  13. Hi, I'd like to search all of my blocks using autolisp to find any with linear parameters. I can get a list of blocks but don't know how to specifically search for linear parameter. thanks
  14. Hi All, I am working on slowly creating some new standards for my office and am starting with some drawing tag blocks. What I need to know is if there is a way to have geometry stretch/move according to the length of a text attribute? For example, the tag name + some geometry that follows as a stylistic part of the tag. I made a block where the geometry in question is attached to a linear dimension attribute and I can use a grip to move it wherever I like. What I need, ideally, is a way where this follows the size/length of the text automatically. After searching the forum, there were one or two similar questions from several years ago, but no solid answers. Any help would be great. Thanks!
  15. Hi, iv got the below vba in progress, i copied it from somewhere online but cannot remember where to give credit Anyway iv got it running from a userform but it will only update the last block inserted. Eventually i want to use it to control 5+ dynamic block, also with visibility states but im at a loss after trying multiple things over the last few hours. Can someone point me in the right direction please? Public Sub block_dyn() Dim objBlock As AcadBlockReference 8 Dim FilterType(0) As Integer Dim FilterData(0) As Variant Dim p1(0 To 2) As Double Dim p2(0 To 2) As Double Dim ssetObj As AcadSelectionSet On Error Resume Next ThisDrawing.SelectionSets.Item("SS1").Delete Set ssetObj = ThisDrawing.SelectionSets.Add("SS1") FilterType(0) = 0 FilterData(0) = "" ssetObj.Select acSelectionSetAll, p1, p2, FilterType, FilterData For Each Item In ssetObj If objBlock.EffectiveName = "Box" Then Set objBlock = ssetObj.Item(n) Call dyn_prop(objBlock, "Width", TextBox3.Value) Call dyn_prop(objBlock, "Height", TextBox4.Value) End If If objBlock.EffectiveName = "Rect" Then Call dyn_prop(objBlock, "Thickness", TextBox3.Value) Call dyn_prop(objBlock, "Depth", TextBox4.Value) End If Next End Sub Public Sub dyn_prop(objBlock As AcadBlockReference, name_of_property As String, value_of_property As Double) Dim dyn_properties() As AcadDynamicBlockReferenceProperty Dim var_atts As Variant var_atts = objBlock.GetDynamicBlockProperties For i = LBound(var_atts) To UBound(var_atts) If var_atts(i).PropertyName = name_of_property Then var_atts(i).Value = value_of_property ThisDrawing.SendCommand "_regen" & vbCr End If Next End Sub Thanks in advance ~D
  16. Hello I just can’t get this dynamic block to work. I am trying to chain the array action with the move action and getting nowhere. In the drawing there are 3 objects, blocks if you will. The left block is always stationary, the middle block I want to array, the third block on the right will move with the array to always remain at the end of the finished array. I’ve gone through the process of setting the two parameters to the distance I want the array to be. The first thing I do is assign the array action, pick the middle block (along with the hatch on the left) and then the parameter that will be the action to move the third block. Finally I create the move action and assign it to the third block, save and close. The array works but the block that should move either remains in its position or will move at some odd distance. Any tips on how I should do this correctly? Thanks, DRBJR45 DYN GLASS BLOCK.dwg
  17. I am trying to understand how to access the properties within the dynamic block in order to change material for the blocks. for instance... I have a deck bluster I want to be able to change from several texture options as well as deck material texture options and such. I have a dynamic block for the bluster so [when I change the material in the block editor now] it changes the materials of all the hundreds of blusters in the drawing. I have anywhere from 8 to ten options I would like to access without opening the block editor... but can not understand how to use a lookup for it?
  18. Hello Everyone! I have a simple dynamic block to use for call-outs (see DYN-REC-TEST.DWG) It is adjustable by one point, but I wanted to see if there was a way to dynamically change the radius corners for smaller or larger call outs (i.e. DETAIL SECTIONS and PLAN VIEWS). Currently I just scale the block up or down to achieve the desired size. Also, second issue. I want to make sure this titleblock scales uniformly based on viewport scale. Can I use the Scale action to set various sizes for the block (i.e. DIMSCALE: 8, 16, 32, 64)? I have included the block (DWG_TTL_BUILD.DWG) if needed. DYN-REC-TEST.dwg DWG-TTL-BUILD.dwg
  19. Good evening. After some extensive reasearch I could not find a way to solve my problem, so I have come here hoping you guys can save me yet again. I've spent the past three days trying to create this block and at the moment I'm quite frustrated. I'm trying to create a dynamic block with multiple actions. I need a flip, a stretch, a visibility and a rotation parameter and a basepoint. Everything works just fine until I add the rotation action. I need certain entities to rotate but the text to remain at 0 degrees. I learned that you can do that by assigning point parameter to move the text and then include only the point parameter in the rotate action selection set. The problem happens when I try to do that and also add a basepoint. With the basepoint the behaviour of the attributes (or text entities) becomes erratic. Sometimes they even spin in an opposite direction when compared to the other entities. I don't know why that is happening. If I do not include a basepoint explicitly AutoCAD automatically creates a grip that works as a basepoint. In this case the rotation of the attributes and the other entities works just fine, but the new basepoint grip is left behind when I use the rotate action. I have attached a file containing three slightly different blocks. The first one is without any tinkering; on the second one I made the rotation action "Independent" (sometimes that helps, but it didn't work here); on the third one I deleted the explicit basepoint and you will notice the behaviour I described above. I thank you all in advance for your time and expertise. FlagBlocks.dwg
  20. I have a Detail Bubble dynamic block with MTEXT. Every time I use the Reference Manager, the MTEXT does not show up at the original location. I couldn't upload the pic to show what I mean.
  21. Morning, I'm working on a block with a few variables I'm trying to synchronize. I've worked dynamic blocks in the past for mirror imaging stretches, but is there a way I could sync it so when I rotate Rotation Parameter 1 10 degrees, that Rotation Parameter 2 and Rotation Parameter 3 rotate the same 10 degrees? Thanks for the help!
  22. TheyCallMeJohn

    Lisp to Sync Attributes

    Gents, I am looking for a lisp to sync attributes. For example block Alpha has an attribute called "LOCID" and its surrounded by blocks Beta, Charlie and Delta. All four blocks have diffrent names, attributes, and paramenters but they all have "LOCID" in common. Alpha already has a value for "LOCID" but the others do not. I would like to the lisp to sync "LOCID" for all four blocks to Alpha's value by selecting all four. Also all four may not always exist together but Alpha is always there. And there are multiple groups of Alpha & friends. Does anyone have a lisp that can do this? It is way above my experience level.
  23. psuengineer84

    Dynamic Block Fields

    I cannot figure out how to get a field to update to a linear parameter within a dynamic block. See attached. There is a regular dimension string on the left and my custom dynamic block on the right. Don't mind that the action parameters do not affect the field, as I will update that when I figure this thing out. Thanks! SMALL_DIM.dwg
  24. I'm attempting to make a detail call out dynamic block where the leader line sticks to a filleted rectangle and the tag stays horizontal. I'm having success but my attribute definitions won't move with the tag. I'm using a point parameter. Its telling me the unlocked attribute definitions are being filtered from selection. Any Ideas why or a place where something like this is already made and I can quit spending time on it
  25. Hi all, and thanks in advance for your help. I have made a dynamic block that is my template for calculating a metal pattern blank (so we know how much metal it uses) by width and length. I have also included quantity, material, instructions, etc. I have used the parameters and actions to associate this block so that I can extract the data into a spreadsheet for a Bill of Material. Here is my problem #1: Some of the blocks need to have different names so I can locate and choose their information, and leave others out. I have already made a lot of blocks and I do NOT want to go back and re-insert, define the attributes, and place my parameters to calculate the pattern. Is there a way I can change the name of the dynamic block (for data extraction purposes) but also keep the attributes for that block? Problem #2: I have a width attribute that I attach to the dynamic block, which in turn, I insert a field from the object (same block), that gives me the XY parameter distance. In this case (with width) I choose the X distance. Every time I insert the block into a new drawing, I have to tell the dynamic block what I want again. It comes in with ######. Is there a way to set up the initial template block so that it will automatically know that I want the X distance from the parameter from THAT block? I can send an example of the block if need be. I am not sure how clear I am being. I am fairly new to this whole dynamic block thing, but I can see how useful it is already! Thanks again for anyone who can help me with either problem.
×
×
  • Create New...