Search the Community
Showing results for tags 'block'.
-
Count Specific Block Name and Insert Block to Coords Depending on Block Count
kylaughlan posted a topic in AutoLISP, Visual LISP & DCL
Hi there, I'm looking for a Lisp routine that can count the number of one specific nested block (it will always have the same name) within a single layout, and then automatically insert the same block (which doesn't need to be nested) to differing coordinates depending on how many of that block there already is. I am having doubts to whether this would even be possible but I thought I would ask. Seeing as nested blocks can be counted through Lisp, I figured it might be possible. I've began to explore the world of Lisp and am using a few different routines currently. They work great but I am nowhere near at a stage where I can write a detailed Lisp routine myself. [using AutoCAD 2017 full version] Thanks guys, Kyle -
How To Update Dimensions To Block Parameters
Walker140 posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Hello, I have created a new .dwg file. Within the drawing I have created a block that updates when I change the parameters. Currently when I change parameter lengths the dimensions do not update to match the length of the block. Is there anyway to add dimensions that will update within the original .dwg file which contain the block. (AutoCAD 2011) Thanks,-
- dynamic
- dimensions
-
(and 3 more)
Tagged with:
-
Assign Integer/Double value to Dynamic Block Custom Property
JonHilll posted a topic in AutoLISP, Visual LISP & DCL
I am trying to link the actual value of the length property of a polyline with a custom property I've created in a dynamic block. Basically, I would like to be able to link the property line length with a call out block that contains the line's length as "Count" property (Dbl). I've created a custom property to hold the numeric value (i believe this should be a Double value in order to sum values in table?) so I can then sum all lengths of similar call out blocks in a table. The reason I am using a custom property is so I can specify it as a Double value so the values will be able to sum up in the table. Using fields, I can link the poly line length to an attribute field but this becomes a string object which I can't add together in the table, as far as I understand anyway. What changes would I need to make to Lee Mac's awesome Lisp routines (huge fan of yours, Lee) to add this feature? I've attached the lisp file with the sub routines that seem useful for this task included, but I have quite a bit of trouble putting it all together. I've reverted all of Lee's subroutines back to the original code so none of my customization causes any errors. My end game is simple: Select the poly line(s), select the dynamic block to be associated with said line(s), and then populate the custom "Count" property with the length of the selected poly line(s) as a Double value. This will allow me to summarize the total length using data extraction and a table. Any help with this would be greatly appreciated, and please include the why & how if you have the time so I can learn and share with others You guys are the best, thanks in advance! Count.lsp PROP_CO_1.dwg -
Hi to all! I'am building the title block (block with attributes) and I need a routine that will automatically read layout name, in multi layout dwg, and write it into block attribute „LAYOUT“ for every layout. Field with Ctab doesn't suits my needs... Is something like this possible? Thanks!
- 16 replies
-
- layout name
- block
-
(and 2 more)
Tagged with:
-
Importing Block: Text Becomes Oblique
drennich posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Full AutoCAD 2011. When inserting Obsolete Block the word Obsolete comes in oblique 28 degees, but all the other text remains correct. When opening block as a regular file all text comes in fine. This is only happening to me and not the other drafters. Am I missing a setting somewhere? -
Dynamic block does not work in a new drawing
Faouweb posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Hi, I created some Dynamic Block and inserted them in a new Tool Palettes, but when I want to insert them in a new drawing the Block looses all the dynamic thing like rotation, flip... How can I solve this problem? Thank you. PID-SYMBOL.dwg -
working with constrained dimensions
jalba posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Drawing3.dwg Hi, I wish to have a situation in which the intermediate dimensions change equally when I increase or decrease the overall dimension (see attached dwg file). And it is necessary to have the dimensions annotative. I tried using parametric dimensionsing along with block creation, but the drawing gets distorted. Does anyone have any ideas? Thanks in advance.- 8 replies
-
- constraints
- block
-
(and 1 more)
Tagged with:
-
Change a specific TAG within a block of a drawing
noslenac posted a topic in AutoLISP, Visual LISP & DCL
I've been trying to find existing lisp routines to do the following for a while now (off and on). While I have found some that will change values of Attributes or the text width for every piece of text in a drawing, that is not what I need done. I need a lisp routine that will be manually modified with the current Attribute TAG and Block name based on client titleblock. It can't require manual selection (user input) as this will be used in a script to batch run the lisp routine. To kind of summarize, I would like the ability to specify a block name and attribute tag name (in the specified block) and be able to set the text width factor in the drawing to account for longer filenames per client requests. This is only for the 1 attribute in all drawings. Any help will be greatly appreciated. Here is an example: Titleblock has: Attribute: File name TAG: DRAWINGNO Value: Linked to actual filename with a field Current text width factor is .8 and it needs to be .7 to fit within the titleblock space. -
Building Association Lists: A Simple Block Counter [AutoLISP Tutorial]
Lee Mac posted a topic in AutoLISP, Visual LISP & DCL
I've spent some time writing up the following tutorial which aims to demonstrate how to construct a simple block counter and in the process give the user an introduction to association lists and dotted pairs: Building Association Lists: A Simple Block Counter The tutorial is a step-by-step walkthrough of the process of creating the block counter, with diversions here and there to explain the various concepts used by the program. Throughout the tutorial I've also tried to explain why every part of the code is used in the way that it is, rather than providing the reader with a block of code and leaving some parts without an explanation (for example, why the program should include (princ) or (prin1) as the last expression etc.). I welcome your feedback on the tutorial - Is it too simplified? Is it too long? Too boring? All of the above? Feel free to also point out any typos, as these can be difficult to spot when proof-reading your own work. Thanks, Lee -
Hello all, I have the following issue: When working with dynamic blocks, the file get's bigger fast. We have huge drawings in our company due to big projects. This is why I'm asking if it's possible to do something like an 'explode' on your dynamic blocks but without losing the 'blocks'. So if you have 3 dynamic blocks -> EXPLODE -> 3 sepperated blocks Without changing anything. Can you help me? PS. Block file in attachment. TestBlock.dwg Thanks!
- 10 replies
-
- block
- autocad 2016
-
(and 1 more)
Tagged with:
-
Get latest drawing revision block with script
caddywampus posted a topic in AutoLISP, Visual LISP & DCL
Hey all, this is my first post so I'm sorry if I violate any of the forum rules. I appreciate the help! I'm trying to write a script to get the latest revision number from our drawings, then save that info into a text or CSV file. Each drawing has a revision block like the image tagged below. How would I do that in LISP? Thanks! -
Copy a Block and have the attribute change in increments of 1
BrianTFC posted a topic in AutoLISP, Visual LISP & DCL
Hi All, I'm looking to see if there is a Lisp out there that as you copy a block in a drawing the first attribute with change in increments of 1 I.e. P1 P2 P3 Thickness " " " " Material " " " " (1) " " " " P1 Would be the attribute that changes every time it gets copied. Thanks Brain -
I am stuck on the syntax to write a block without user input. On executing the lisp, I want it to get a selection set from a variable and then write it to a new block without asking the user for input. The basepoint can be "0,0,0" and the file path is a pre-set path. The general command I'm trying to use goes like this (I know it's wrong, but I don't know where to go from here) (command "-wblock" "C:\\Users\\DefaultUser\\Desktop\\ScriptTest\\Blocktest1.dxf" "0,0,0") I've searched LISP routines all over the place but can't find one that does this. I'm mostly looking for examples that contain a similar line of code.
-
Hello! I am having an issue with a block that a college made in Autocad. It is a block that shows which xref's that are attached to the drawing. But for some reason, the text in the block is not visable for me, but the block works fine for my colleges. Do you guys have any clues about this issue?
-
Hi! My question is, when you have a block, in a block, in a block,... How can you know, by only clicking one time, in what layer a specific block or line is? Thanks! - DM
-
Hello guys! I have a block with 6 visibility which I can change easyli with the drop-down list. It works well. But if I change the scale of the block it lose the drop-down list. In the block editor I can see the 6 different states but no drop-down list in the model space. Why? Could you help me? Do you have any ideas? thank you for the answer! T
- 3 replies
-
- visibility state
- visibility
-
(and 2 more)
Tagged with:
-
Hello friends I come to your great help: oops: so I can provide some lisp routine for the following: * I want to place a block that multiply at the ends of several polylines, perpendicular and placing them to leave the color and the layer of each polyline are selecting. He explained in the best dwg I'm attached. I hope you can help me because I have a lot of work with what you tell them, so I need your help so that they can develop a routine. much for your attention. Greetings from Lima, Peru Muestra_para_rutina.dwg
-
Hi, I search for Lisp for insert block faster. Ex.: if a write "1" on keyboard, i can insert "block 1" in my drawing. I can insert "block 1" until a stop the LISP if a write "2" on keyboard, i can insert "block 2" in my drawing. I can insert "block 2" until a stop the LISP All my block are in the same drawing. Thanks a lot
-
Hello, This is a very strange behavior as sometime it appears and sometimes it doesn't. Anyway what I do is draw some walls, add them to a new block, save and then edit-in-place. What I might be missing?
- 1 reply
-
- edit blocks
- cleanup
-
(and 2 more)
Tagged with:
-
Link Dynamic Scalebar to Viewport Upon Insert
bretwieseler posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Hello, I don't even know where to begin... I'm trying to construct a scale bar that can be linked with a chosen viewport, upon insertion into paperspace. Civil3d 2015 already has several of these "preloaded" in the Layout Element panel, but these scalebars are not "smart", requiring input from the user (I'm trying to create these for newbies in our office). Any thoughts or help is appreciated. -
Dynamic Block Copy/Rotate or Polar Array?
rhgrafix posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
I am trying to make a dynamic block to somewhat mimic the 3D Revolve command, since I can't Sweep or Revolve 3D entities in the dynamic block, I want to fake it by making a revolved curved piece that travels 5° increments of a circle at a time, the dynamic part would be to make it copy itself end to end using the same axis as the part. I tried polar and rotate, they won't copy AND rotate, they always stay in a straight line. Anyone know how to do this? Thanks! R.L. Hamm -
Dynamic Block Editor Label Size
rhgrafix posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
This search has me baffled as to how there seems to be no trace of this question/answer on the whole internet! How can I make the labels (Distance, Lookup etc.) bigger in the dynamic block editor? I can tell they are relative to screen size, I zoom in and they adjust, I just need them a little bigger. Is it a windows setting? I've looked in Options/Display/Fonts and it only controls command line size. Thanks! R.L. Hamm -
Is it possible to customize the DIMJOGLINE symbol? The /\/ part that gets inserted is kind of spread out too much in my opinion, I'm wondering if there's a block somewhere hidden in the Autodesk folders that can be edited. After inserting this thing, I see no block in the drawing when I list the blocks. Thanks in advance! R.L. Hamm
- 5 replies
-
- dimjogline
- dimensioning
-
(and 3 more)
Tagged with:
-
LISP File - Count number of blocks, calculate area within block
pholt posted a topic in AutoLISP, Visual LISP & DCL
Hi all, I'm hoping you can help. I require a lisp file that can count the number of blocks in a drawing and calculate the total area of say a polyline that is in each block and plot it in a table format? Can anyone point me in the right direction please? Thanks Peter- 3 replies
-
- lisp files
- count
-
(and 3 more)
Tagged with:
-
Hello, I have a problem with a flip action in a block. I have attached cad file, so its easier to understand the problem. The more I ''flip'' the block, the more distorted it gets. Could somebody tell me please what the problem is, cause I'm out of ideas flip nonsense.dwg
- 17 replies
-
- distortion
- block
-
(and 1 more)
Tagged with: