Jump to content

Search the Community

Showing results for tags 'setvar'.

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

  1. What is the problem? FILLETRAD not setting (defun c:test() (setq der(getstring(strcat "\test <" (vl-princ-to-string der)"> : "))) (setvar "FILLETRAD" der )) i give "500" then it will come AutoCAD variable setting rejected: "FILLETRAD" "500"
  2. I am new to script so this is basically my first script file: Don't know why but my script only run about 4 line in and then no more output in the text window is observed. Curiously if I reorder some of the line in the scr I get only 1 line being run. The (command) is not as intended as enter/space but rather as Cancel. And this script is trying to find out which are read-only; I want the print out for each variable of whether it accept value or is read-only as though it's done manually with the Setvar Command. So I'm not trying to change any variable. I thought of using (setvar) and see which output error but I am assuming that I don't know what value are appropriate to pass for each variable so I could have just passed an invalid value to a non-read-only variable and that would throw the same error as a read-only one. So I want the script to behave like the below (manually typed) history, going thru each variable. Command: SETVAR Enter variable name or [?]: _server _SERVER = 0 (read only) Command: *Cancel* Command: SETVAR Enter variable name or [?] <_SERVER>: *_AUTHORPALETTEPATH Enter new value for *_AUTHORPALETTEPATH <"C:\Users\L\AppData\Roaming\Autodesk\AutoCAD 2020\R23.1\enu\S...">: *Cancel* Command: SETVAR Enter variable name or [?] <*_AUTHORPALETTEPATH>: HQGEOM Unknown variable name. Type SETVAR ? for a list of variables. Command: *Cancel* Command: SETVAR Enter variable name or [?] <*_AUTHORPALETTEPATH>: 2DRETAINMODE Enter new value for 2DRETAINMODE <1>: *Cancel* Command: SETVAR Enter variable name or [?] <2DRETAINMODE>: 2DRETAINMODELEVEL Enter new value for 2DRETAINMODELEVEL <0>: *Cancel* But this is what running my script produces, stopping after parsing the 4th line in the script file. So I'm wondering why doesn't it continue in the same pattern? If you move 2dretainmode to the first line in the script it actually only finish only the first line while ordering the scr another way get a few more like the one below, but all seems to just stop abruptly. Note that I don't want to change any variable with this script, nor have I even tried to confirm the variables as I am intending to cancel the setvar command each time. Command: setvar Enter variable name or [?]: "_SERVER" _SERVER = 0 (read only) Command: (command) Command: nil Command: setvar Enter variable name or [?] <_SERVER>: "*_AUTHORPALETTEPATH" Enter new value for *_AUTHORPALETTEPATH <"C:\Users\L\AppData\Roaming\Autodesk\AutoCAD 2020\R23.1\enu\S...">: (command) Command: nil Command: setvar Enter variable name or [?] <*_AUTHORPALETTEPATH>: "HQGEOM" Unknown variable name. Type SETVAR ? for a list of variables. Command: (command) Command: nil Command: setvar Enter variable name or [?] <*_AUTHORPALETTEPATH>: "2DRETAINMODE" Enter new value for 2DRETAINMODE <1>: (command) Command: nil setvar.scr
  3. Hi everyone, is there any ObjectDBX equivalent for getvar and setvar functions? Any reply or clue is fully appreciated.
  4. Hi friends, how is it possible to explode all blocks in all spaces (layouts) without setting each tab current (I mean issuing (setvar 'Ctab ...)) Thanks in advance
  5. Back ground: My blocks are comming in at the wrong size. I read a post some time back that had the setvar as a side note tidbit that talked about it. I wrote it on a stick note but the dang thing fell behind my 300 lb desk. I have done a search for it but, can't remember what I was looking for when I found it. I'd ask facilities to move my desk to get it but frankly, those guys scare the bejesus out of me:unsure: They have no disernable necks. . . .that's just not natural! The real question: Does anyone know the setvar that effects a blocks ability to be inserted at the dimscale? my dimscale is 20 and my blocks are coming in at 1.67. Dainty arn't they?
×
×
  • Create New...