Search the Community
Showing results for tags 'dynamic blocks'.
-
dynamic blocks stretching horizontal parameter skewing vertical parameter
shortkrish posted a topic in AutoCAD Drawing Management & Output
Dear All, I have problem while stretching horizontal parameter, the vertical parameter skewed. In the 2nd visibility state having 2 pipes. Please find attached snap and dwg files. Thanks Krish ps903adesk.dwg -
How to make a new parameter on dynamic block with lisp
juanragal posted a topic in AutoLISP, Visual LISP & DCL
Hi! I'm starting to feel comfortable in this forum, you always give a good answer. Thank you for your work! I want to insert new parameters in a dynamic block to set new values. I normally make atributes with an entmake method, but I never insert a parameter. I found Lee Mac's code to set or get dynamics block parameter values, but can't find anything about the created one. Thank you for advance. -
So Im getting a "too few Arguments" error message and after debugging I still cant seem to find which line is causing this error. The function of this lisp is supposed to select a register bock [attached below]: create a list for each block selected based on the cfm values in its [cfm] attribute. if the value falls within a certain range then it should've selected the property sort value. any help would be much appreciated. 10 X 8 Supply Register Sets.dwg
- 16 replies
-
- attributes
- dynamic blocks
-
(and 1 more)
Tagged with:
-
counting dynamic block visibility states in autocad electrical
bayu aji posted a topic in Electrical
I use lee mac dynamic block function from here http://www.lee-mac.com/dynamicblockfunctions.html To count mydynamic block visibility state,but i facing new error like attached below ,please what and why its error happen?and whats the solution.. @Lee Mac -
Hi I'm getting back into cad and starting to develop some dynamic blocks. Can anyone give me some tips on how to do multiple visibility parameters in LT possibly using look ups. Should I be using blocks within blocks if that makes sense?. Does anyone have any ideas for creating electrical distribution boards using dynamic blocks with attributes. Your help would be much appreciated. Thanks.
- 24 replies
-
- attributes
- blocks
-
(and 1 more)
Tagged with:
-
Using a text file to add and manipulate Dynamic Blocks
deejaydave posted a topic in AutoCAD Drawing Management & Output
I am trying to find out if you can use a text file (converted from a spreadsheet) to add dynamic blocks to a drawing, not just the X, Y coordinates, but the angle (not standard rotation, the dynamic one). The block I am working with reflects “Dip & Strike”. The block has only three (3) dynamic variables, Angle, Basepoint and Visibility Drop List. I want to automate adding multiple blocks without having to change the angle one at a time. Any help would be appreciated. -
hi i"m trying to create a dynamic plan-staircase with step numbers, the stairs are added by an array command and i could count the total number of stairs by dividing the total distance by width of step. stair2.dwg but i want a number on each step ! (using autocad 2014)
- 17 replies
-
- field
- dynamic blocks
-
(and 2 more)
Tagged with:
-
I have created Dynamic Block with grips and Attribute linked to the parameter. Now I override that attribute value to a manual value through a program and change the parameter. Now, when I move the grips of dynamic block, the attribute value linked to it doesn't change and remains as manual value. Is there any way/ program to retrieve the relation between attribute and parameter value? Pls find attached Program and Dynamic Block. You can override linked values of "WIDTH" & "LENGTH" by 'double-clicking' on block and entering manual value. Upload & Run the program with command "DChange". This will change the shape of block as per manual value. After this, when you will stretch the grips of block, it will change the shape; but, the attribute value "WIDTH" & "LENGTH" will not change. Can this linking between Attribute & Parameter revived so that attribute values will change with moving grips? Straight Duct.dwg DChange.lsp
-
Hello all, I've posted on SEVERAL forums trying to get an answer to this problem, I've compiled so many different Lisp routines that I've lost count, but none have quite been able to do what i want. i've attached a dwg with two blocks in it, the scope of what I'm trying to accomplish is at the bottom of this code: (defun BKVZ ( / blk idx obj sel vis ) (setq blk "WELD DETAIL" ;; Block Name vis "EQUAL WELD" ;; New Visibility State ) (if (setq sel (ssget "_X" (list '(0 . "INSERT") (cons 2 (strcat "`*U*," blk))))) (repeat (setq idx (sslength sel)) (if (= (strcase blk) (strcase (LM:blockname (setq obj (vlax-ename->vla-object (ssname sel (setq idx (1- idx)))))))) (LM:SetVisibilityState obj vis) ) ) ) (princ) ) ;; I would like the visibility state of several different dynamic blocks ;; to reference a text field within the drawing, and the blk variable to be used for several different dynamic ;; blocks within my drawing. for example in this drawing i have two dynamic blocks, and two text fields that ;; represent the visibility states that i want to use for the blocks (this value will change so i want to use it as a ;; variable to change the db viz prop) . I would like to be able to use this code to change the vis states of ;; several blocks within the same dwg, each of which would have a text field that will display the present vis state. ;; if i have to use setq blk1, blk2, blk3, etc to represent each block that is fine, but with several different possible ;; vis states, i would like that varible to reference the text field. so as the text field changes, so does the vis state of the ;; dynamic block. ANY HELP WOULD BE APPRECIATED. THANK YOU!! NEW-LISP-TRIAL.dwg
- 26 replies
-
- dynamic blocks
- autolisp
-
(and 1 more)
Tagged with:
-
I am using AutoCAD 2006 and I created a dynamic block that has 4 attributes and 2 visibility states. Two of the attributes are visible in one state, while the other two are invisible. After toggling the visibility states, the two invisible attributes become visible, and the two visible attributes become invisible. When I insert the block, or when I use the Attribute Edit command, I only can access the attributes that are visible. The invisible-state attributes do not show up. I would like to enter all attribute infomation at one time, and then turn on/off the visibility as needed. Question: Can all of the visible and invisible attributes be inputed/edited at one time without having to change the visiblity states? Thank you for any help. Ray
- 7 replies
-
- dynamic blocks
- attributes
-
(and 2 more)
Tagged with:
-
Dynamic Blocks - Rotation
Karnak posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Hi there, hopefully this is just me being dumb. What I have is an object that I have made into a block, It has a vertical component, which can rotate 6 deg. clockwise and 11 deg. anti-clockwise. Problem is, I need to limit the rotation 11 deg one way 6 the other, as the default location needs to stick at vertical. The rotation parameter, as far as I have experienced, only allows me to limit movement in one direction, so it can rotate 17 deg. clockwise. Or 17 deg. anticlockwise. What am I doing wrong? Thanks -
Hello, I have an AutoCAD Drawing with different Blocks. These blocks have some of the attributes names in common (Height, Length & Width). Can I extract the attribute data from selected area in drawing to an existing excel sheet with standard template such that the block name comes under column named "Block Name", Value of Height Attribute comes under column "Height" and so on? Here are the list of things I wanted to do in attached drg 1. Extract data from some blocks (Block Names are: SA GRILLE, SA Slot Diffuser, SA Sq Diffuser, Shoe Piece, Straight Duct, Transition, Elbow) from selected area on drg. 2. Extract the values of Attributes named WIDTH, HEIGHT, WIDTH2, HEIGHT1 & LENGTH 3. The Data should be extracted to an existing excel sheet as attached. 4. The data extracted should come under respective column label. Is this feasible using VBA? Here are some links which are helpful but I couldn't get desired results using those. http://www.lee-mac.com/macatt.html http://www.cadtutor.net/forum/showthread.php?64960-Browse-for-an-existing-excel-file Dynamic Blocks Data.xlsx Dynamic Blocks.dwg
- 5 replies
-
- dynamic blocks
- data extraction
-
(and 1 more)
Tagged with:
-
I'm trying to make a compass, with NSEW around it. I want to rotate the compass, as well as text, dependent on the direction, however keeping the text rotation at 0. I found a similar thread, but I can't for the life of me get it to work right. I think I'm on the right track, just missing something somewhere. Any help you guys can offer is appreciated. compass.dwg
-
Dynamic block that scales based on user input?
eyeofnewt555 posted a topic in AutoCAD Drawing Management & Output
Hey guys! So at my office we frequently have to show circles around objects. The circle's size is based on a multiplier that will vary with project and the diameter of the object. This is super easy math that could be done on the fly when creating a circle. BUT, I'd like to streamline it just a wee bit and make a simple block of the circle that allows for the following user input in the properties panel: Reference object diameter (Dro): [user types here] Multiplier (M): [comes with preset value, but user can override here] And then the linear parameter controlling the circle scaling will auto adjust to reflect: Diameter of Circle (Dc): D*M I've dabbled in Vlookup tables/fields/attributes but still on super shaky ground. Any guidance would be appreciated. Thanks! -
Array count within Dynamic block
mynameisbrent posted a topic in AutoCAD Drawing Management & Output
Hello all! Let me first say that I've been looking through some of the threads on this forum and am blown away by the knowledge and creativity some of you possess. It's ridiculous the things you guys are able to do with AutoCAD. With that said, I'm hoping someone can help me solve a difficult problem I've been having. I've never created dynamic blocks and am learning as I go. I've scoured the internet looking for the answer for my needs and have experimented for hours but am still left without a working block. --A quick note before I begin, I'm using AutoCAD LT 2016 for all of this-- What I'm trying to do is create a dynamic solar panel block that can accomplish three things: 1. Dynamically fill a distance (up to 310' for fire code) with solar panels 2. Have three visibility states representing different angles for the solar panels 3. Have a solar panel counter that is visible within the properties but doesn't actually show up in the model Bonus: Dynamically fill an area with solar panels with the same requirements So far I've been able to accomplish #1 and #2 but to a limited degree. I can fill a distance just fine but if I change visibility states, the length is reset back to it's original. I need to be able to change visibility states without the length going away. #3 is the real problem. I have tried dozens of Attribute Definition combinations but can't seem to find one that works. The bonus would be nice to accomplish and I was able to do so with some success but didn't try to implement the visibility states or counter given the difficulty I've found just trying to make the lengthening block. I'm sure there are those of you that could create my block in no time at all and while I do appreciate that, what I'm really wanting is to learn what mistakes I'm making and how to do fix them myself. I've attached both the block that I've made as well as a file (posted on this very forum) that essentially recreates what I'm trying to accomplish (with a few tweaks e.g. I'm limited to using architectural units and I don't want a visible counter). Any help or direction would be greatly appreciated! chairtest.dwg Fixed Solar Module 1.dwg- 4 replies
-
- counter
- attribute definition
-
(and 2 more)
Tagged with:
-
hello Guys, Can you check my dynamic blocks please: the version 1 works perfectly. I would like to have the version 2 the same. but I make something totaly wrong way. It is not working for me. How can be between the two legs 46 deg always (it is 90 deg in the version 1)? Thank you for your help! Y dynamic blocks.dwg
-
I have made a block that has been used in several drawings by several people. As the months have gone on and people have used these, some changes have been made to the blocks in the specific drawings. My question is this... Is there a way to update these globally? Almost like an XREF does but obviously not using an actual XREF. The only thing that i can think to do is every time one gets updated in a drawing, go into each drawing that the block resides in, delete them all, purge, reinsert, and have a copy party. Problem is, people change them without anyone else being informed...any ideas?
-
- dynamic blocks
- dynamic block
-
(and 3 more)
Tagged with:
-
Change block color through block table
mechaneco posted a topic in AutoCAD Drawing Management & Output
Hi everybody, I wanted to know if there is a way I can control the layer a block is in through the block table, so if I change a set of parameters through the table, one of them could be "Layer" and that way I can change it appereance. I want to avoid visibility parameters, as there are too many permutations of blocks for that. Thanks for the help in advance!- 6 replies
-
- dynamic blocks
- autocad
-
(and 1 more)
Tagged with:
-
I'm trying to see if this is possible. Drawing with many dynamic blocks, all with many attributes. Was curious if there was a routine that would select a single block - enable user to fill in the attributes click OK - then move onto the "next" block in the drawing until complete. Anything like this remotely possible?
-
Is it possible to apply dynamics to a blocks base point?
SAFeSTeR posted a topic in AutoCAD Drawing Management & Output
Hi, I'm updating my block library with dynamic rotations but I'm having trouble with blocks that do not have base points in their centre's. When I rotate the block the base point grip stays in it's original place. This can be a problem when I need to copy multiple instances of the block within the same drawing. Is there a way to apply the dynamic rotation to the grip? I've tried selecting everything in the block editor when creating the rotation parameter but it seems the original base point is avoided during this process.- 6 replies
-
- dynamic blocks
- base point
-
(and 1 more)
Tagged with:
-
Dynamic blocks - Is this possible?
jakethebeck posted a topic in AutoCAD Drawing Management & Output
I have 2 lines, 1 is vertical and the other is at a 45 degree angle to it. I have a stretch action on the line at 45 deg. What I'm trying to achieve is when the 45 deg line is stretched, I want the vertical line to also stretch but not with the same distance multiplier; The 2 lines must have the same X coordinates. I'm nearly there, I have a distance multiplier of 0.7071 on a stretch action for the vertical line. I got 0.7071 from (1 / sqrtr(2)) .. The problem with this is autocad rounds to 4 decimal places, so when i stretch over a great distance the lines are not perfectly on the same x coordinate. Does anybody know of an easier way to achieve this? Maybe a way to copy the 'End X' property to another line? I've searched extensively for a solution. Thank you for any help:)- 4 replies
-
- properties
- dynamic blocks
-
(and 1 more)
Tagged with:
-
When you are inserting a viewport title is it possible to have the block add 1 to the previous number? EX: I insert a label for a viewport of an elevation the label reads 1 also elevation and the scale of the viewport. Could I have it set up that when I add another label to the same layout it would automatically bring it in as labeled 2 and so on... I know that if I had the time or the money I could get a lisp routine to do it.. I have neither time (to learn how to make a lisp routine or write one) or money. I just wanted to know if it was possible or if there is already a command like that. I know that I will get suggested to use sheet sets yet alas I cannot. Sheet sets do not work for me, our office keeps everything in one drawing file, this makes most of the 'advantages' of a sheet set unnecessary and way more difficult then just doing it the old fashioned way. Besides the fact that my boss would have a cow.. He doesn't like polylines and really hates blocks and with dynamic blocks don't get me started.... Yet with all of these he copes if I added sheet sets I may no longer have a job.
-
Hi all, I have a tool palette I've created using dynamic blocks all saved on a shared server. I have all of the blocks inserted on a source file. I copy and paste them into the tool palette and it all works great. When I open up the palette the next day, it is empty and none of the blocks are there. Any ideas?
-
I have a block with a flip action to move text from one side of the block to the other. We've revised the block and I'm using Insert/Redefine to update the drawings. The problem is, the flip action reverts to default and I have to flip them back. Is there a way I can lock the position of the flip before I Insert/Redefine? Many thanks for any help.
- 1 reply
-
- flip parameter
- dynamic blocks
-
(and 1 more)
Tagged with:
-
Dynamic Block Visibility Checklist
rhgrafix posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
I'm trying to make a block with an item list where I can choose any or all of 10 line items, I can put a stretch and array to size up the list to exclude blank lines but I cannot figure out which method to use to make a checklist. Layers are not an option because our clients have certain layer lists. Visibility seems to just do 'This OR That', not 'This, This AND That'. I think a LookUp Table is the key but I don't know which parameter sets to start with and how to make this checklist work. Attributes are not really the answer because the line items have 9 columns of info that never change on each item line. They must stay in the same order too. If there was some way to turn off sub-blocks, and drag them up or down! Thanks for any ideas!