All Activity
- Past hour
-
itacad started following Visibility of block attributes
-
Visibility of block attributes
itacad posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Hello, in a drawing I use a block with attributes. The same attributes in some cases must be shown and in other cases not. The only system I have devised is to give membership to a specific frozen layer in cases where the attribute should not be shown. I ask for clarification: it is not possible to set the visibility of an attribute of a block at discretion, correct? In practice, I cannot in a file use the same block in some cases with visible attributes and in some cases with non-visible attributes, correct? Greetings -
Here is the program changed... almost as you requested. (defun c:pp( / ssb) (setq ssb (ssget '((0 . "INSERT")(66 . 1))) lst nil bulge 0.2) (repeat (setq i (sslength ssb)) (setq b1 (ssname ssb (setq i (1- i))) poz (cdr (assoc 10 (entget b1)))) (while (and (/= (cdr (assoc 0 (setq attl (entget (setq b1 (entnext b1)))))) "SEQUEND") (/= (cdr (assoc 2 attl)) "ORDRE"))) (setq lst (cons (cons poz (cdr (assoc 1 attl))) lst)) ) (setq lst (vl-sort lst '(lambda (x y) (< (cdr x) (cdr y)))) lst (mapcar '(lambda (x) (cons 10 (car x))) lst)) (setq l1 (list '(0 . "LWPOLYLINE")'(100 . "AcDbEntity")'(100 . "AcDbPolyline")(cons 90 (length lst)))) (foreach x lst (setq l1 (append l1 (list x))) (setq l1 (append l1 (list (cons 42 (setq bulge (- bulge)))))) ) (entmake l1) ) It will draw a curved polyline. Select it, than drag the ARC's midpoint to the desired position
-
Goal: Find methods to help assemble a new LISP program or find an existing LISP program to perform the following: Convert all entities to layer zero while maintaining properties as originally assigned based on the entities' original layer. In a single DWG file, 700+/- details are organized and include drawing borders that supply individual details to our main non-Autodesk specialized and multi-functional design application. Please provide: Links to and/or actual LISP programs that perform this or similar conversions. LISP tips and/or instruction on links to methods to create a conversion LISP program. Non-programmed methods to accomplish this conversion. Skill level: LISP Beginner
- Today
-
@lisp Multiple Text alignment in Rectangle
Shib Sankar replied to Shib Sankar's topic in AutoLISP, Visual LISP & DCL
https://1drv.ms/u/s!AiER42EkFNJq3R10MA6aLaivc7gm?e=i1qv6I Thanks mr. Bigal.. Pls see the attachment -
im moving a 3D drawing from from grid to the other( eg moving from national grid to a local grid). the level should remain the same but in this case the level changes, i dont know why )
-
Problem with zoom extended
itacad replied to itacad's topic in AutoCAD 2D Drafting, Object Properties & Interface
It must be something you have in America, maybe the water... on all PC of all the participants in this work we have the same display problem -
Problem with zoom extended
SLW210 replied to itacad's topic in AutoCAD 2D Drafting, Object Properties & Interface
Maybe run a repair on your AutoCAD. Graphics card or driver issue? -
How to change Position Markers to Point
SLW210 replied to vindicate's topic in AutoCAD 2D Drafting, Object Properties & Interface
How are you making the marker a point? AFAIK, you can only scale the size, all you have to do to keep the Text the same size is scale it up accordingly. -
Problem with zoom extended
itacad replied to itacad's topic in AutoCAD 2D Drafting, Object Properties & Interface
It's a mystery...I get the same defect on your file too -
Lsp to Automatically put tabs on polyline
DELLA MAGGIORA YANN replied to claire2017's topic in AutoLISP, Visual LISP & DCL
-
Problem with zoom extended
SLW210 replied to itacad's topic in AutoCAD 2D Drafting, Object Properties & Interface
Did you alter the file before posting here? Maybe you have set limits. I did nothing to the drawing Except Zoom>Extents. SLB1.dwg -
How to write a Condition where either one is true
gsc replied to gsc's topic in AutoLISP, Visual LISP & DCL
Thanx, your'e right, this works more efficient -
lukasz.jedraszczak joined the community
-
Problem with zoom extended
itacad replied to itacad's topic in AutoCAD 2D Drafting, Object Properties & Interface
Yes, of course. After opening the file, if I use the zoom extensions command the view I get is the one shown, as if there was something in the top left corner -
Elevation marker for 2d architectual drawings/sections
Nikon replied to Butch's topic in AutoLISP, Visual LISP & DCL
@Tsuky thank you very much for the improvement. I add to the first string "scale"... (defun c:LEVEL-PT ( / pt ss e_ref ang dxf_210 scale factor suffix obj# obj) and you can make a backlight to select the coefficients 0.01(cm) and 0.001(m) for M100 and 0.0005 (m for M50) (setq factor (getreal "\nMeasurement conversion factor?[1.0/0.01/0.001/0.0005]: ")) -
Lsp to Automatically put tabs on polyline
DELLA MAGGIORA YANN replied to claire2017's topic in AutoLISP, Visual LISP & DCL
wow It works very well, super lisp too in the case where we wish to offset a simple polyline alone, could we choose the side where the offset is made? otherwise in a closed polyline it works well thanks -
How to change Position Markers to Point
vindicate replied to vindicate's topic in AutoCAD 2D Drafting, Object Properties & Interface
It is not a block. It is a position marker. Here, I attach a sample for you reference. Thanks a lot sample.dwg -
How to change Position Markers to Point
BIGAL replied to vindicate's topic in AutoCAD 2D Drafting, Object Properties & Interface
Need a dwg to see what they are, looks like Blocks not Points. Just look at properties top line. If its a block maybe be able to use Bedit to change point style, there are numbers for each style. PDMODE -
Bounding box of dynamic block ignoring other visibility states?
BIGAL replied to Hopeless Turtle's topic in AutoLISP, Visual LISP & DCL
So you have this, when i generate the rectangs I know there size len& wid and importantly scale this is stored in the dwg. The rectang is the size of the Mview. So layouts are then made. You can add, delete, move or rotate the rectangs, just not change size, but different sizes can be made, but just not all in one go. Re dynamic block can just change the size of a 1x1 rectang to suit the sheet size and at scale update say Distance 1 & Distance 2, hidden behind this dcl is all the values required, use Lee's dynamic block lisps to update. Then just copy copy. -
Automatically update attribute tag of Different blocks.
BIGAL replied to filapost's topic in AutoLISP, Visual LISP & DCL
For me I write custom attribute updates, I am sure though that Lee's code is great but could be made to accept say a list of block names etc a lot of work and may ruin a good program. You could have a lisp with multiple block names and tags inside just call the correct list. Another way is read from Excel or a text file the information. That way 1 program does all similar to Lee's. Looking for blocks and attributes is not that hard to code. Maybe explain more and supply a dwg. -
Double Click Inside of VPORT Causes Zoom Extents Automatically
BIGAL replied to Bill Tillman's topic in AutoCAD LT
Maybe start with a clean DWT way simpler than wading through hundreds of variables. -
Not sure if this helps but do plot set all tha correct parameters then do save plot and apply to layout then cancel it should now resize all the white and black areas of a layout. Dont forget 8.5x11 will not plot to that size its I guess 8x10.5 We always worked with title blocks at 1=1 scale ie true size so if you have 16.5x12.5 who knows what is going on.
-
Are you designing roads or just want the field survey plotted ? If so like this rectangs are auto generated at scale following a line or pline, then can auto make layouts.
-
Just some ideas get co-ords of pline sort on X&Y use a Intersect with to work out new bottom points then update pline co-ords. A little trick is can select pline near a corner and rearrange the points so start at that corner. Possibly the way I might go. Will think about it. Oh yeah people will understand CW or CCW.
-
mtw joined the community
-
Problem with zoom extended
BIGAL replied to itacad's topic in AutoCAD 2D Drafting, Object Properties & Interface
Did you bother to do a Z E once you opened the dwg ????? The dwg was saved at whatever user zoom in view was last used. Open a dwg does not do a zoom extents. -
Without code you can use "ZOOM 100XP" to zoom in at a point scale 1:100 etc. Say use ZOOM C PT scale 1st the scale is not critical what it is doing is centralising your viewport. I would maybe work other way around, if you have fixed Title sheets in a layout with a mview set can use Layout Copy then go to new layout then mspace and set the scales. Ok maybe the problem if you have say 4 mviews in one layout you can set which viewport you want to set, only thing hidden is that number of viewports is always plus 1, ie Paperspace is counted as a viewport. We had fixed title blocks and they were always at 1=1 true size in a layout, when I see this see problems. (setq p1 (getpoint "\nSelect the first point of the box: ")) ;;Ask the user for two points defining the box (setq p2 (getcorner p1 "\nSelect the diagonally opposite point of the box: ")) Look at this all the matching numbers are in the code. You can have a layout with multiple mviews preset. These don't even have to exist in current dwg can be in say a master layout dwg, Layout Copy Template dwgname layoutname