Search the Community
Showing results for tags 'attribute definition'.
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
thbaiju posted a topic in AutoLISP, Visual LISP & DCLHi all, could you please give me a solution to update block attribute value in multiple layouts with out changing the existing values. eg: Tag DT3 Value "part-01" I need to edit the value as "MEP Part-01" The multiple layout have different numbers. So I need to add "MEP" to all layouts. Thanks for reading
Hey everyone! First time poster, long time user. I run Autocad 2010LT at work, where I do fire alarm drawings. I've been trying to create a dynamic block (sort of a one stop-shop) for my wiring diagrams, and wanted to include device text with it. My question is, is there a way I can create a dynamic block with multiple visibility states where each state has it's own independent/editable attribute definition? Basically what I'm trying to acheive is the ability to make a different description layout for each one of my device types. (They all have a different function, and a different address style) Really so I can minimize the time I spend edititng the formats when I'm trying to crank out a plan review ASAP. Any help would be VERY much appreciated!! Thank you everyone!
I'm currently working on a script to (semi) automise drawing rail constructions. This is going fine, except for one very odd issue. I'm quite a beginner, so please bear with me. I have to insert a block with an attribute. Since I want to avoid using ent* commands, I wrote the script using (command "INSERT" blockname coordinates "" "" "" attributevalue). At home this worked, yet at work the lisp engine treats the 'attributevalue' as a new command. Is there an AutoCAD variable or something else that determines the definition of attributes in the insert command? Both AutoCAD versions are 2010 vanilla, except for some heavy third party scripts and programs for work, which I can't and don't want to disable.