Jump to content

Search the Community

Showing results for tags 'dxf code 41 to 43'.

  • 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...

Found 1 result

  1. The routine below is working while only selecting only the block "INSERT" but once a add the DXF code, see red bold below. any idea guys, i am totally lost. i am trying to select arrows with ScaleX -1 T.I.A. (defun C:[color=lime][u][i][b]YOUCOMMAND[/b][/i][/u][/color](/ aaaa bbbb cc cclist pt lay scfr scto) (defun FilterBlkNameX(bbbb valu) (setq aaaa 0 newSet(ssadd)) (while(< aaaa (sslength bbbb)) (setq cc(ssname bbbb aaaa)) (setq cclist(entget cc)) (if(= "INSERT" (cdr(assoc 0 cclist))) (progn (if(= (strcase valu)(strcase (cdr(assoc 2 cclist)))) (ssadd cc newSet) ) ) ) (setq aaaa(+ aaaa 1)) ) newSet ) (setvar "cmdecho" 0) (setq bbbb(ssget "X" (list(cons 0 "INSERT[color=black]")(cons 41 -1.0))))[/color] (if(and bbbb(> (sslength bbbb) 0))(setq bbbb(FilterBlkNameX bbbb "[u][i][b][color=lime]BLOCKNAME[/color][/b][/i][/u]"))) (if (and bbbb (> (sslength bbbb) 0)) [color=cyan] [b](progn[/b][/color] [b][color=cyan] (setq lay "0")[/color][/b] [b][color=cyan] (command "change" bbbb "" "Properties" "LAyer" lay "")[/color][/b] [b][color=cyan] (setq scfr(list 0.000000 0.000000 0.000000))[/color][/b] [b][color=cyan] (setq scto 0.500000)[/color][/b] [b][color=cyan] (command "SCALE" bbbb "" scfr scto)[/color][/b] [b][color=cyan] )[/color][/b] [b][color=cyan] )[/color][/b] (setvar "cmdecho" 1) (princ) ) (princ "\n [u][i][b][color=lime]YOURCOMMAND[/color][/b][/i][/u] to run the program.") (princ) routine updated for everyone
×
×
  • Create New...