Jump to content

Search the Community

Showing results for tags 'visability'.

  • 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 2 results

  1. I have a lisp that changes the visablity state of a block but i need a lisp that does somthing like descirped: if visablity state = INPUT1 set visablity state to INPUT2 (defun c:set1 (/ ss ans i blk dp scale) (if (and (setq ss (ssget "_:L" '((0 . "INSERT")))) (not (initget 1 "1:1 1:2 1:2.5 1:5 1:10 1:20 1:25 1:50 1:100 1:200 1:250 1:500 1:1000 1:2000 1:2500 1:5000 1:50000 ")) (setq ans (getkword "\nChoose Visibility [1:1/1:2/1:2.5/1:5/1:10/1:20/1:25/1:50/1:100/1:200/1:250/1:500/1:1000/1:2000/1:2500/1:5000/1:50000]: ") )) (repeat (setq i (sslength ss)) (setq blk (vlax-ename->vla-object (ssname ss (setq i (1- i))))) (cond (and (eq (vla-get-IsDynamicBlock blk) :vlax-true) (setq dp (car (vl-remove-if-not '(lambda (k) (eq (vla-get-PropertyName k ) "RMS_SCALE_VIS" ) ) (vlax-invoke blk 'GetDynamicBlockProperties ) ) ) ) (if (eq ans "1:1") (setq scale "RTA_SCALE_1")) (if (eq ans "1:2") (setq scale "RTA_SCALE_2")) (if (eq ans "1:2.5") (setq scale "RTA_SCALE_2.5")) (if (eq ans "1:5") (setq scale "RTA_SCALE_5")) (if (eq ans "1:10") (setq scale "RTA_SCALE_10")) (if (eq ans "1:20") (setq scale "RTA_SCALE_20")) (if (eq ans "1:25") (setq scale "RTA_SCALE_25")) (if (eq ans "1:50") (setq scale "RTA_SCALE_50")) (if (eq ans "1:100") (setq scale "RTA_SCALE_100")) (if (eq ans "1:200") (setq scale "RTA_SCALE_200")) (if (eq ans "1:500") (setq scale "RTA_SCALE_500")) (if (eq ans "1:1000") (setq scale "RTA_SCALE_1000")) (if (eq ans "1:2000") (setq scale "RTA_SCALE_2000")) (if (eq ans "1:2500") (setq scale "RTA_SCALE_2500")) (if (eq ans "1:5000") (setq scale "RTA_SCALE_5000")) (if (eq ans "1:50000") (setq scale "RTA_SCALE_50000")) (vlax-put dp 'Value scale) ) ) ) ) ) (princ)
  2. I am just beginning to learn Revit, using Revit 2011, and when I switch from elevation to section, all my level marks disappear. I have looked at visability / graphics to see if something got turned off but didn't find anything. Does anyone have any ideas? Thanks.
×
×
  • Create New...