Jump to content

Search the Community

Showing results for tags 'dimstyle tblsearch'.

  • 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. This is a script type routine I run on drawings created in Solidworks. I get dimensions with all sorts of different DIMSTYLES. I want to change them all to Standard. Here's what I have so far.. I don't know how to change (3."xxxx") to (3."Standard") Also, can you do a TBLSEARCH for several items at once? (DEFUN C:SWDX () (Prompt "Change SW Lines:") (setq ss4 (ssget "x" '((0 . "LINE")(6 . "PHANTOM")))) (setq TEST (tblsearch "LAYER" "X25")) (if (= TEST nil) (progn (Command "-layer" "n" "X25" "C" "RED" "X25" "") ) ) (command "CHANGE" ss4 "" "p" "la" "X25" "c" "bylayer" "lt" "Phantom" "LW" "default" "") (setq ss5 (ssget "x" '((0 . "DIMENSION")))) (setq TEST (tblsearch "LAYER" "DIM")) (if (= TEST nil) (progn (Command "-layer" "n" "DIM" "C" "RED" "X25" "") ) ) (command "CHANGE" ss5 "" "p" "la" "DIM" "c" "bylayer" "LW" "default" "") [b];;; Need to change (3."xxxx") to (3. "Standard") for SS5[/b] (setq ss9 (ssget "x" '((0 . "LINE")(6 . "*CENTER*")))) (command "ERASE" ss9 "") (princ)) I know my code writing skills are very elementary... If there's a better way to do what I've done, I'm open. If someone wants to just fill in the blanks that's fine too... Thanks!
×
×
  • Create New...