Jump to content

All Activity

This stream auto-updates

  1. Today
  2. Nikon

    annotative text/leaders

    To select multiple objects, use **`ssget`** instead of `entsel`, and then apply `setpropertyvalue` to each selected object in a loop. Select several objects using a frame, or one at a time. For all selected objects, the **Annotative** property will change to **No**. The filter allows you to select: `TEXT`, `MTEXT', `DIMENSION`, `MULTILEADER` **Objects are not deleted or recreated.** Only the `Annotative` property is changed. ; "Annotative" 0 /No/ (defun c:NoAnno (/ ss i) ; AI (if (setq ss (ssget '((0 . "TEXT,MTEXT,DIMENSION,MULTILEADER")))) (progn (setq i 0) (repeat (sslength ss) (setpropertyvalue (ssname ss i) "Annotative" 0) (setq i (1+ i)) ) (princ (strcat "\nProcessed objects: " (itoa i))) ) ) (princ) ) ; "Annotative" 1 /Yes/ (defun c:YesAnno (/ ss i) ; AI (if (setq ss (ssget '((0 . "TEXT,MTEXT,DIMENSION,MULTILEADER")))) (progn (setq i 0) (repeat (sslength ss) (setpropertyvalue (ssname ss i) "Annotative" 1) (setq i (1+ i)) ) (princ (strcat "\nProcessed objects: " (itoa i))) ) ) (princ) ) ;;; Remove/Add Annotative property to objects [No/Yes] (default No) ;;; Supported objects: TEXT, MTEXT, DIMENSION, MULTILEADER (defun c:SetAnno (/ ss i ans val) ;; Prompt the user, default is No (initget "No Yes") (setq ans (getkword "\nRemove/Add Annotative property to objects [No/Yes] <No>: ")) (if (not ans) (setq ans "No")) ; if Enter pressed — use No (setq val (if (= ans "Yes") 1 0)) ; Yes = 1, No = 0 (if (setq ss (ssget '((0 . "TEXT,MTEXT,DIMENSION,MULTILEADER")))) (progn (setq i 0) (repeat (sslength ss) (setpropertyvalue (ssname ss i) "Annotative" val) (setq i (1+ i)) ) (princ (strcat "\nProcessed objects: " (itoa i) " | Annotative = " ans)) ) (princ "\nNo objects selected.") ) (princ) )
  3. Are you going to go around reviving old threads? One can certainly appreciate your providing answers, but some of these posts the OP is long gone. Perhaps it would be better to create a single new thread addressing these issues.
  4. I do very little of that sort of thing, but interestingly, I never ran into that issue as I recall. Speaking from experience though, I would make sure any survey data clearly had the coordinate system we use or I would send it back. That's why we paid them money. For my work we have local benchmarks.
  5. SLW210

    annotative text/leaders

    What was wrong with @alanjt's code in the link I posted?
  6. SLW210

    components into blocks

    That's most likely going to need a LISP or some other type of programming for "automatically". Can you post an example drawing?
  7. Welcome to CADTutor! I moved your thread to the AutoCAD Beginner's Area Forum. Some of those issues are discipline, company, and personnel preference specific in many instances. I use mostly default keyboard shortcuts, I used to have to show people AutoCAD on their computers and having mine customized was throwing me off. I use blocks a lot, most of the blocks are internally all on Layer 0 and ByLayer to take on the block layer's properties. One rule to never break IMO is nothing on Defpoints layer, if you need objects on a non-plotting layer, you can create them. A little background on why you are looking into drafting and which discipline(s) your are looking to work would help.
  8. Steven P

    Dialux to Autocad

    ... 6 1/2 years later to an OP who only ever asked one question, and never came back to see if anyone replied.
  9. indiancad

    annotative text/leaders

    You can use AutoLISP's setpropertyvalue to change the Annotative property to No without deleting the objects. LISP code=>(setpropertyvalue (car (entsel "\nSelect object: ")) "Annotative" 0) For processing nested objects, you would also need to iterate through the block definitions and apply the same change to their entities. Xrefs cannot be modified this way without editing their source drawings. This is a useful alternative to manually changing each object's Properties palette.
  10. In infrastructure projects, survey data may arrive from multiple contractors using different coordinate systems, local benchmarks, or grid references. Each drawing can appear internally correct, yet combining them may introduce positional discrepancies across roads, boundaries, and utility layouts. Simply aligning visible reference points may hide systematic coordinate or rotation errors. What verification process do you follow before combining survey DWGs from different sources? Do you validate control points, coordinate transformations, grid-to-ground corrections, or use another method?
  11. Small Revit API finding, and a question for anyone who knows the answer. When I create a family extrusion through the API from one full closed circle (Arc.Create, 0 to 2π), Revit saves the sketch as two half arcs. Then I checked Autodesk's own M_Table-Round family, where the circle was drawn by hand with the Circle tool. Same thing underneath: two half arcs, two sketch lines. So it looks like Revit stores every sketch circle as two halves, whether you draw it or the API does. The family flexes fine and a diameter label drives the whole circle, so nothing is broken. Has anyone found a way through the API to make the two halves pick as one circle in Edit Extrusion, like a hand-drawn one? Or is this just how Revit works? // Inside an open Transaction in a family document Level refLevel = new FilteredElementCollector(doc) .OfClass(typeof(Level)).Cast<Level>().First(); // "Ref. Level" XYZ centre = XYZ.Zero; // origin double radius = 100 / 304.8; // 100 mm SketchPlane sp = SketchPlane.Create(doc, refLevel.Id); // ONE closed circle Arc circle = Arc.Create( Plane.CreateByNormalAndOrigin(XYZ.BasisZ, centre), radius, 0, 2 * Math.PI); CurveArray loop = new CurveArray(); loop.Append(circle); CurveArrArray profile = new CurveArrArray(); profile.Append(loop); Extrusion ext = doc.FamilyCreate.NewExtrusion(true, profile, sp, 300 / 304.8); doc.Regenerate(); // Read back: 1 loop with 2 arcs, each half the circle foreach (CurveArray l in ext.Sketch.Profile) foreach (Curve c in l) TaskDialog.Show("Sketch curve", c.GetType().Name + " length " + Math.Round(c.Length * 304.8, 1) + " mm");
  12. Hi everyone, I am getting started with 2D CAD drafting and want to make sure I build good habits right from the beginning instead of having to unlearn bad ones later. Right now, I am comfortable drawing basic lines, circles, and rectangles, and using simple tools like TRIM, EXTEND, and OFFSET. However, once a drawing starts getting bigger, things quickly feel disorganized. For the experienced drafters here, what are the top 3 or 4 essential habits or commands you wish you had mastered on Day 1? (For example: proper layer management, Object Snap settings, using blocks, or keyboard shortcuts). Any practical workflow tips for keeping drawings clean and accurate would be really appreciated. Thanks!
  13. AONE_LED

    Photometric light issue

    If spotlights show nothing in a render, check these. First, DEFAULTLIGHTING must be off (0) once you add your own lights; also set LIGHTINGUNITS to 2 so you get photometric lights, and check the units in INSUNITS match your drawing. Second, spotlight intensity is often too low for the scale of the scene: in the Properties palette raise the intensity (or lamp flux) and check the hotspot and falloff angles, since a narrow cone can miss the surface. Third, make sure the spotlight's target points at the geometry and is not behind a surface. Finally, check the light is On and its layer is not frozen, and in the render settings use at least medium quality, with exposure adjusted, because a photometric scene can render dark at default exposure.
  14. AONE_LED

    Photometric Web File Not Valid

    Some things to check with the "photometric web file is not valid" message. First, save the .IES as plain ASCII text with the .ies extension, with the bracketed keyword lines at the top and the TILT line directly before the numeric data. Second, the light stores the file path, so if the file was edited or moved after attaching it, re-select it in the Properties palette (Web file) to re-attach it. Third, test with a known-good manufacturer IES to see whether the problem is the file or the drawing. For a 4 ft fluorescent, a manufacturer's linear luminaire IES on a Weblight is usually more reliable than a hand-built one, and it avoids modelling a glass tube, which is what makes the render so slow.
  15. Paul Li

    annotative text/leaders

    you're welcome...I did have to go back & forth with chatgpt a few times before it finally got it right...of course it does help to know a bit about lisp to know when the lines of code provided make sense...sometimes I wonder if I'm teaching it to learn or is it training me to do better...lol
  16. masterfal

    annotative text/leaders

    appreciate the feedback guys. i guess chatgpt > copilot for this sorta stuff then. spent a good hour or so going around in circles with copilot
  17. This company has all of their appliances in one drawing and I have to copy and paste into the customers drawing, but they're all individual appliances and lines. Instead of going through each drawing and making a block, how do I automatically turn them into individual blocks?
  18. Yesterday
  19. Then there's this by ChatGPT to replace Express Tools Burst with lisp version that converts Attributes to Text keeping the original Attributes. This can be run with Accoreconsole in a script: (BurstAttrBlock BlockNameWithAttributes) BurstAttrBlock.lsp BurstAttrBlock.scr
  20. As programmable as AutoCAD can be, Excel (and LibreOffice Calc, et. al.) IMO handle Text, MText, Attributes, etc. much better.
  21. I forgot about this. Att2Text.lsp converts attributes in a block to text outside the block, removes the attribute from the block and Att2TxtBlk.lsp converts attributes in a block to text outside the block, leaves the attribute in the block. Att2Text.lsp Att2TxtBlk.lsp
  22. SLW210

    Center mark replacement

    I almost forgot, I ended up redoing the original turn off the center mark for diameter and radius dimensions to better maintain associativity. If there is still an issue with losing associativity for the dimensions you can run this separately. If there are still center marks, they are likely hard-coded overrides and I couldn't find any method to keep from breaking associativity in those instances. Maybe someone smarter or at least more familiar with such cases can explain a better method. F_Off_Mrks.lsp
  23. AONE_LED

    question re. blocks

    Another route: since each luminaire type is already on its own layer, pick one exported block per type and make a proper block from it (or use your standard library block), keeping the same insertion point at the fixture centre. In current AutoCAD versions, BLOCKREPLACE lets you select all the unique blocks on that layer and replace them in one go with the chosen block. Select them first with QSELECT or SELECTSIMILAR, filtering by layer. On LT 2018 there is no BLOCKREPLACE, so use a free swapblock-style LISP only if your LT build supports it, or insert your block and copy it to each fixture position using the exported blocks as a guide. Check scale and rotation afterwards, because exported fixtures can differ in units. Keep all luminaires on a dedicated lighting layer.
  24. AONE_LED

    Dialux to Autocad

    DIALux exports each luminaire as its own uniquely named block, so the names can't be changed at export. Best fix is after export: put one luminaire of each type on its own layer (DIALux usually keeps types on separate layers), then create a single clean block for that type, with the insertion point at the fixture centre. Use the Express Tools BLOCKREPLACE (or SWAPBLOCK, or the native BLOCKREPLACE in AutoCAD 2023 and later) to swap all the exported blocks on that layer for your block. Select them with QSELECT or SELECTSIMILAR first. Check the scale and rotation after the swap, since DIALux blocks are often in metres or millimetres. Finally, purge the old blocks and keep all fixtures on a dedicated lighting layer.
  25. Ever sent a drawing to a colleague, only to get a message back that the xrefs are missing? Or the font is wrong? AutoCAD eTransmit exists to prevent exactly that. It bundles a drawing together with everything it depends on, including xrefs, images, fonts, plot styles, and other referenced files, into a single package that’s ready to send. Most people use it with default settings and never look further, but there are some features in the dialog that a casual user may not be aware of. Today, I’m going to walk through them. How to open AutoCAD eTransmit and use Transmittal Setups First things first. You can find eTransmit in the Application Menu (the big red A in the corner), within the Publish fly-out menu. Or you can be like me and type in ET from the command line or dynamic input box. eTransmit will be your first option. The Create Transmittal dialog will appear. You’ll see the files tree, where all of the references and support files will be displayed. You’ll also select other drawings to transmit here. On the right, there will be a list of saved transmittal setups, with Standard being the default option. Below that is a very important button: the Transmittal Setups button. Clicking it displays a small dialog that allows you to create or remove setups, rename them, or, most importantly, Modify them. Choose the setup that you want, and click the Modify button. In all honesty, as a CAD Manager I would rarely create new setups, but would just modify Standard to my current needs. I would always check the settings first anyway, so I found no point in predefining them. As always, your mileage may vary. The Transmittal Setup options Finally, the Modify Transmittal Setup dialog will appear. This is where the rubber meets the road. There are four panels in the dialog: The type and location, path options, other actions, and what types of entities get included in the transmittal package. Let’s look at each. First up is the type and location. You can write the files to a folder (or folders), or have it create a Zip file for you. Your choice. Note that if you select to make a Zip file, the bottom file name option will become disabled. Your next choice is the file format. You can keep the files in their current DWG format, or save down to anything from 2000 on. I’ve had clients that require a certain format – it happens. This is also a convenient way to batch file format change. Below that is a checkbox for visual fidelity. Please click the info icon next to it for a detailed explanation, but typically, leave it checked, especially if you use annotative objects. If you don’t, it won’t matter anyway. Next, define where the files you’re creating will be saved. Only you know where this will be, but please choose wisely. Next is the path options section. This section is very important. When the transmittal reaches its destination (let’s say another company), how do they see it? How do the references resolve? You can create an organized folder structure that is the same as your project. It is also the default. You’ll simply need to specify the root folder of the project. This option is for references that utilize relative pathing. The recipient can place it in any folder structure that they want, and everything will resolve. The bottom two options are for those who do not use relative pathing. You can keep them “as is”, in which case the recipient will need to make sure they have a duplicate server drive setup as you do. Or, you can specify that the new files will all be written into a single folder. Why would you do that? Since they all have hard-coded reference paths, how will they resolve? Before considering the save path, AutoCAD always looks in the current folder for the reference, and if not found, only then does it try the saved path. This option lets you get away with the not-so-great option of hard-coded pathing. Moving on the upper right section, you have some checkbox options to choose from, a couple of which are what I consider just being a friendly transmitter. Unless you have a firm directive to do otherwise, please set the default plotter to “none” and purge the drawings as you go. That leaves us with Bind External References. Much like using the save format as a batch save-down tool, this option can be used as a batch binding tool. Selecting this option will allow you to bind as a “bind” or an “insert”. If you’re doing this, you should already know the difference. But here’s a hard-learned lesson for you. There are a LOT of things that will keep an Xref from binding, but this option does nothing to warn you about whether it succeeds or not. You’ll finish the transmittal and assume that everything bound correctly. Do not trust that it succeeded. Whenever I use this option, I always use the external Reference Manager to check the transmittal. Please take heed. Future you will thank me. Finally, it’s up to you to choose what gets included in the transmittal (or not). If you use some custom fonts, you may want to send them along so that the drawings appear as yours do. The middle three options are on by default, but even if your files don’t contain any of them, it won’t affect anything. The last option is for including unloaded references. I’m sure there are reasons to include these, but generally, if a reference is unloaded, there’s a good reason, and sending it along would only create unnecessary bloat in the transmittal. Again though… you do what you need. AutoCAD eTransmit and Sheet Set Manager I kind of glossed over the file selection button in the first dialog. Projects can get large. Manually selecting your files doesn’t need to be tedious, which is yet another reason to use AutoCAD’s Sheet Set Manager. The eTransmit command is right there for you. Hey, when it comes time to transmit your drawings or entire project to someone else, make sure they’re happy with what they get. You wouldn’t want to get drawings with references that don’t resolve, so why would they? Always transmit friendly files with eTransmit. More Tuesday Tips Check out our whole Tuesday Tips series for ideas on how to make AutoCAD work for you. The post AutoCAD eTransmit: Tuesday Tips With Frank appeared first on AutoCAD Blog. View the full article
  26. Maybe yes, that would work, and in excel just combine any attributes that need to be - formula for that I guess if doing many sheets
  27. SLW210

    Center mark replacement

    I may attempt to get it to work with the proxy objects eventually, but for now I will just create drawings in AutoCAD 2000i and get those working first. Maybe using DWG Convert works better? -ExporttoAutoCAD would probably work.
  1. Load more activity
×
×
  • Create New...