Jump to content

Search the Community

Showing results for tags 'blocks'.

  • 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. I am working on a bathroom drawing and have used externals blocks of bathroom fixtures. Some of them will not turn off when I turn the layer off. Any suggestions?
  2. Hello. I hope you guys can help with my LISP. I am new to this, so forgive me if I sound too basic. A problem occurred all of a sudden, and it was working before. Now, when I open a dwg, it stalls at this portion of my acad file. That is how I narrowed it down to this particular LISP. I can see my maps, but they are stalled. After about 1 minute, it says that there is a "Fatal Error - Out of Memory". Do you guys have any idea on what to do? If I take out the "N" portion on this line (command "purge" "block" "*" "N"), it seems to work, but I have to click through several options in my command line to do anything on my map. (defun T:PURGEBLOCK () (if (and (/= (getvar "dwgname") "unnamed")(/= (substr (getvar "dwgname") 1 7) "Drawing")) (progn (setq wts (getvar "writestat")) (if (/= wts 0) (progn (command "purge" "block" "*" "N") (setq chg (getvar "dbmod")) (if (/= chg 0) (progn (setvar "cmdecho" 0) (princ "\n Saving purged drawing \n") (setvar "expert" 3) (command "save" "") (setvar "expert" 0) ; (snd) );end progn );end if );end progn );end if );end progn );end if (setvar "cmdecho" 0) (princ) )
  3. We currently run on 2007 Autocad LT (sad I know) and have a laptop with the latest Autocad. We used Trueview converter to save down files from laptop and now we cannot detach xrefs and all xrefs read as blocks in our files on 2007 Autocad LT. When we update an xref file; it does not update in other files which I'm assuming because it's a block in the original. Thanks in advance for your help!!
  4. Hello forum, I have been searching far and wide for this and found nothing that exactly does it. Attached is a block, this block contains some attributes: Name, Family name, Phone and a reference number. Theses four are enclosed in a box with an associative solid hatch at 25% visibility in the backgroud. As of right now, it's a dynamic block with a stretch action that is used to make a bigger box for enclosing bigger attributes (A name with 15 characters, for exemple). So, it implies doing it manually every time, for every blocks and whenever I redefine the block. What I want it to do, obviously, is to automaticly detect the longest attribute between the four and ajust the box to the new size without user intervention. All the commands or LISP I found have failed me, they all works wonders with MTEXT but not with attributes. Is it possible to do it within the block or does it have to be done in the drawing after being inserted? Thank you, BLOC_POSTE.dwg
  5. Hi Guys, i have some drawings with blocks in them, (CAD file has been Attached below) Sample Block.dwg sometimes, i need to trim the lines inside the blocks. (Screenshot below) As Trim Doesn't Work on Blocks, i had to explode or burst the blocks and then trim the lines. But i don't want to burst or explode the blocks, because the blocks have properties. Is there any lisp routine that can fulfill my requirement? or, does anybody know a way to trim the lines inside the blocks without exploding? PS: i know that use "edit block in place" and then use the "trim" command, but using this method 155 times can be irritating.
  6. Hello dear Masters, My name is Sean and I'm very new to this Lisp programming. it's like 2 weeks now and I begin to frustrate that I can't get my code work. first thing I was able to make the lisp to count the blocks being selected and i was very happy to it. then I decided to name the blocks also that is being selected. I know about the command "BCOUNT" but older versions of AutoCAD has no bcount command yet (Autocad 2010) I really wanted to learn LISP stuffs but gets stuck every time. Please help me with this code. I've been to many sites and still can't figure out what to do next. Thank you in advance masters. so here's my code (defun c:BL (/ ssblks ssblks2 en ctr blk ent enlist) ;define funcntion (vl-load-com) (if (setq ssblks (ssget))) ;|selects blocks|; (prog (setq blk (sslength ssblks)) ;|get number of blocks|; (setq ct 0) ;|set counter to zero|; (repeat (ssget ssblks2)) ;|repeat the selecting blocks|; (ssadd (ssname ssblks2 ct) ssblks) ;|add ssname froms ssblks selection|; (setq en (car(entsel ssblks2)) ;|gets entity from ssblks2|; (setq enlist(cdr (assoc 2 (entget en)))) ;|get the dxf group codes of the entity;| (alert (strcat "\n There are " (itoa blk) " blocks and these are: " (vla-get-effectivename (vlax-ename->vla-object enlist)) )) ;|display result|; ) ;end prog (princ) ) ;end if (princ) );end defun (princ)
  7. trmurphy

    creating families

    hi anyone know if it is possible to create a family using existing family members and not extrusions? what i need to do is create a family consisting of a single vertical plane unistrut frame that is copied along a bay of columns. however since the size of the unistrut can change i would rather be able to open the family and change the strut from a drop down menu from the unistrut family, then save the parent family and all change within that bay. hope thats clear! like in CAD where you create a block then you just have to change it once when there's multiple instances. i know this is similar to families but in cad you could make a block out of multiple blocks cant seem to do that in revit any help appreciated!
  8. Steve Bigfish

    Blocks scaling

    I use blocks all the time and have them on pallets , ones I have created and ones from many others. I have just found that they all now add a 33 scale , I have looked into creating new ones and ticking the allow explode seams to work . How do I edit all the existing ones? I have tried in properties and it wont save ANY IDEAS
  9. I have been away from hands on drafting with Autocad for many years (since 2006) but am now getting back into it and need to know how to convert my vast library of schematic electrical blocks into something that I can readily use in AutoCAD MEP 2014. I see that there are palettes as a part of the content browser but they do not seem to be very complete so I definitely need to use the blocks that we have created over the years. So far I like what I see in MEP 2014 a lot and have been able to pick up much from where I left off in 2006 but the lack of relevant blocks is a huge time killer Is there a YouTube video or a written tutorial to help integrate the old with the new? Thanks in advance
  10. Hi! Newbie to the forums, so I hope I'm posting this in the right place. I maintain our office floorplans with employee names in AutoCAD. With 33 buildings and about 125 different CAD files, it can get cumbersome if there are a lot of changes to be made. I want to create a way to make this process easier. I'm thinking if I have some sort of block that can export all employee names and related location numbers to an excel spreadsheet/database, I can easily just edit the excel file without opening the CAD files. Is this possible. Can anyone point me in the right direction?
  11. I have master drawings for a client's building. Ever since I've started with this company these particular drawings have been very quirky and annoying. At least 1/3 of the furniture blocks have this invisible box associated with it. The box is typically as large as the building. The annoying part comes in when I try to select one item but end up selecting this invisible box for another item. I've check all my layers and dug around in the blocks to find the source of the block to no avail. The only resolution I've found is to replace each block with a new one. If the drawing was smaller and/or not a master I might do it. Unfortunately who has time to remaster an entire building. (There is another designer in my firm that has this problem too with her drawing but with a totally different client.) Has this happened to anyone? Any suggestions?
  12. AGove4123Sonnnnn

    Selection Within a Block

    I need a way to select everything but the centerlines within a block. They extend beyond the part which I hope to find the actual envelope dimensions of. I will then iterate through the remaining parts to find the max/envelope dimensions. The issue is this block is in a document with many other objects (blocks, lines, points, etc.) so exploding is not ideal as it would be a pain to recollect the parts. Also opening a seperate file is too time consuming, this must be done within the file at hand. Is this even possible? EDIT: Oh! A little drilling, and you can easily and directly access a block within a document, then iterate through them as I mentioned above. No inception-style selection sets needed! Nice. Looks very roughly like this: Dim blkTestBlock As AcadBlock Set blkTestBlock = AutoCAD.Application.ActiveDocument.Blocks("ACT1") For Each ACADEntity in blkTestBlock If linetype="Continuous" then getboundingbox....blahblahblah
  13. Hi i have a drawing boarder that is a block with enter-able text fields for drawing revision etc but for some reason the order in which you would enter the rev's 1,2,3, etc is the wrong way round in the enhanced attribute box. So when i click and start typing i end up with 3,2,1 in the rev boxes. i hope this makes sense and someone can fix this annoying error i have.
  14. Hey Everyone, I'm having a problem, I created a block w/ attributes for my border and saved it for future use on other drawings. But when I insert it, even if the units are the same the blocks I inserted scaled smaller than the actual border that i wanted it to be. Anyone able to help me please
  15. Hello to everyone, I'm new to the forum, I work in France as an architect on Autocad LT2013. I have a problem with the "in place" block editor and I couldn't find a solution on the internet, mainly because I fail to synthesise a sentence for the search that makes sense. My problem is that when I am in "edit block in place" mode I am still able to edit the drawing, so that I can still delete or stretch or move certain elements, even though they are not part of the block. This is quite annoying because it leads to unwanted changes and mistakes. Is there a variable or an option to change it and prevent any modification to anything outside of the block? Thank you, Duccio
  16. I used to work at a company that had a command for inserting blocks and depending on some factor (i think ltscale) the block would come in the correct size. but if it was off the block would come in the wrong size. I think it was a lisp routine but now the main problem I am using 2013 LT, no lisp:( And I can not add the 3 party programs, company computer. please help we use several size drawings here and they each have a differant dimscale. that would be good if the blocks were scaled based off the dimscale. but if not that s fine. diesel
  17. Hi all, I'm wondering if you guys have some suggestions, I'm looking for the best way to create some sort of background mask in my blocks. I'm using blocks as my mechanical symbols, to be inserted into my piping and instrumentation diagrams. The diagrams contain several lines, and in the past the company would simply trim out the lines around the symbols. I would like to stop trimming the lines by simply putting an invisible hatch/mask around my blocks. Any sweet suggestions?? Thanks!
  18. We have a drawing border that uses four lines of attributes for tracking revisions. I'd like to write a routine to move the values in each line up one line, so the latest revision is always on the lowest line. I can extract the attribute tags and their values into an associated (dotted pair) list easily enough. Since each line has attributes that are prefixed with a '1_', '2_', etc, I thought it would be easy to simply iterate through the list to change those numbers. It turns out that I was partially right. The list is easy to get, working with dotted pairs is not. My list looks like this: ("1_REV" . "1") ("1_DATE" . "04-11-13") ("1_DESCRIPTION" . "ADDED A BUTTERFLY VALVE TO THE BYPASS LOOP") ("1_BY" . "ABC"). I'd like to change all the instances of '1_' to '2_' in the list. I might be making this too hard, I know I could simply store those values to variables and then just create a new list, then push the new values into the block attributes, but that seems somewhat inelegant.
  19. jalba

    Blocks not purging

    Hi, I'm trying to purge some blocks. I'm successful in deleting them, but after a while they reappear so I have to repurge. Any explanation to this dilemma?
  20. Hi I have this code; Sub selectABlockOnALayer() Dim sset As AcadSelectionSet Set sset = ThisDrawing.SelectionSets.Add("EXCEPTIONS-BLOCK3") Dim filterType As Variant Dim filterData As Variant Dim p1(0 To 2) As Double Dim p2(0 To 2) As Double Dim grpCode(0 To 1) As Integer grpCode(0) = 8 grpCode(1) = 2 filterType = grpCode Dim grpValue(0 To 1) As Variant grpValue(0) = "FXPM" grpValue(1) = "4PLUG" filterData = grpValue sset.Select acSelectionSetAll, p1, p2, filterType, filterData Debug.Print "Entities: " & str(sset.count) sset.Delete End Sub I understand the code only selects 1 type of block on a layer but I cant even get that to work! I am trying to select 89 different types of block that exist on a specific layer. Is this something that can be done using VB? Any advice would be great. Thanks Tom
  21. I have difficult time finding a command that would match a block's attribute (text height, text rotation, and text scale) with a source block. I had found a LISP routine that would match the block itself with a source block but it did not include attributes. I don't need to match attibute values, just the properties. I'm using AutoCAD 2012 with regular blocks (not dynamic)
  22. I am trying to move specific block names to specific layers. I can get the block and change it, but it only works in the current tab. How do I select all instances of the block name, to change it to a specific layer? Here is a copy of what I have so far: ;;move block name to layer 0 (prompt "\nType BTL to move blocks to layer specific layers") (defun C:BTL () (setq Blks (ssget "_x" '((0 . "INSERT")(2 . "TB_8x11")))) (command ".chprop" "p" "" "la" "0" "") (princ) )
  23. Hopefully I can explain this well enough, I've been pounding my head on this for weeks. I have created an autonumbering lisp routine for block attributes that has a start value, increment, insertion order-forward or reverse, so I can autonumber blocks with a specific scheme. I work with wiring and electrical systems. My problem now is I have new blocks I've created for devices that need to be autonumbered, but they need to have a scheme like X3-1, where X3 is an alias and -1 is a wire location. I can have #1-24 on the wire location, then the next block needs to start at X4-1 and go through 24 again. How can I add a loop and range to my lisp to accomplish this or does someone have another idea? We work with hundreds of devices so it is not practical to number by hand like I have been. Any input would be appreciated. Thanks
  24. Bitseeder

    Block Library's

    Hey guys! Was wondering if anyone knows where to get free blocks for small civil projects? I am putting a roundabout in on our site and they are **** :twisted:about AS. its not a public road but need a block to see hoe they usually set these things out. thanks in advance. BiTSeeDeR
  25. In Autocad 2013, when I highlight a drawing in model space and copy, then go to new drawing and paste to original coordinates, everything comes in fine except for blocks. the blocks get thrown far away from everything else. can anyone help
×
×
  • Create New...