Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/26/2022 in all areas

  1. Create a pagesetup in a template and use psetupin. I use this to import my page setups. (defun c:page (/ f) (vlax-for x (vla-get-plotconfigurations (vla-get-activedocument (vlax-get-acad-object))) (vla-delete x) ) (setvar 'filedia 0) (cond ((setq f (findfile "X:/Path/pagesetups.dwt")) (vl-cmdf ".-psetupin" f "*") (princ "\n <<<Pagesetups Imported>>>") ) ((princ "\n <<<Pagesetups NOT FOUND!>>>")) ) (setvar 'filedia 1) (princ) )
    2 points
  2. A couple more suggestions I would add dcls for your input maybe start with this. (setq traywidth (getreal "\n Input Tray Width (150/300/600/900) = ")) (if (not AH:Butts)(load "Multi Radio buttons.lsp")) (if (= but nil)(setq but 1)) (setq traywidth (atof (ah:butts but "V" '("Choose a width " "150" "300" "600" "900")))) (setq numberyn (getstring "\n Place Number to Cables? (Y/N)")) (setq numberyn (ah:butts but "H" '("Cable number Y/N " "Y" "N"))) (while (setq cableod (getreal "\n Input Cable O.D. = ")) (setq cableqty (getint "\n Input Cable Q'ty = ")) (if (not AH:getvalsm)(load "Multi Getvals.lsp")) (while (setq ans (AH:getvalsm (list "Enter values " "Input Cable O.D. " 5 4 "6" "Input Cable Q'ty" 5 4 "1" ))) (setq cableod (atof (car ans)) cableqty (atoi (cadr ans))) If you change this (setq fo (open (setq fname (vl-filename-mktemp "" "" ".dcl")) "w")) to a filename then you can see the dcl code produced and use that to make a custom dcl within your code. I have multi column radio button but only 2 columns need to have 3 for you. Working on a new version as many columns as required. Oh yeah have make a entmake a circle block with text inside if you want, just ask. Multi GETVALS.lspMulti radio buttons.lsp
    2 points
  3. To find the paper size that the page setup is at I use: (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (vla-GetPaperSize (vla-get-ActiveLayout doc) 'PaperWidth 'PaperHeight) ;;PaperWidth and PaperHeight are then used as variables From that I look up the paperwidth and paperheight from a predefined list of dimensions - which correspond to another list with the papersize name to plot with (so if paperwidth is 1189 and height is 841, the lookups return 'ISO A0 (841x.....' ), you can customise this to return whatever name you want. (as a point to note, copying this snippet and noticed my plotPdf Lisp file is littered with a 'RJP' suffix for various parts!)
    1 point
  4. I'm not sure, but I don't think it's a violation of the EULA to use 2016. As far as I know, the subscription model is based on the number of users in your office, not necessarily which versions are being used. So you could have 10 people in the office, and every person could be running a different version. As long as you're paying for the seats I don't think Autodesk cares which versions are being used. I could be wrong, but that's how I understand it. Funny story: There was a guy at the last office where I worked and he always refused to upgrade. He liked his old version, (can't remember which one), but one day they finally convinced him to upgrade. He wasn't happy about it though and he kept the old version installed and continued using it locally, saving to his computer. He would work in the old version all day, and when he was done, he would open the drawing in the new version and save to the server. The only thing he used the new version for was saving. I wonder if he's still doing that? Using the educational version for commercial use is a different story though. That's definitely a clear violation. And since they keep stiffing you on payment for the work you do, maybe an email to Autodesk might be in order?
    1 point
  5. Match works for me but not the other two. Seems its a stop gap so we can't access future data.
    1 point
  6. It's a difficult topic to breach. As I spend more time in the free-lance world and I find these situations they generally occur with client's who often stiff me on my invoices, though the Arch/GC group loved and approved the work, or they make unrealistic demands in the scheduling of drawings, often times leaving out very important information on revisions and changes needed right up until the 59th minute of the 23rd hour but they want the drawings yesterday. One client even had EDUCATIONAL VERSIONS of 2018 scattered all over their offices. Somehow they were bypassing the banner which usually prints in the margins when using the educational version of just about anyone's software. And yeah, the stiffed me on my last invoice too. Kinda seeing a pattern here with these cheapskates.
    1 point
  7. 1 point
  8. I don't know which zip file your trying to download but winrar works for me without any problems.
    1 point
  9. Good presentation @exceed A few notes if you would like to improve your routine a bit better. 1- You don't need to the CMDECHO system variable nor assuming all users have it set with one. 2- Always wrap your user inputs with AND function to avoid error and failure when a user hits enter or might enter different value far from the message you asked them to go with. 3- The Calcs you did in error function also should check for valid value and for assigned variables in prior of processing any prints to command line. 4- Your error function requires one argument to avoid an error message: Two few arguments.
    1 point
  10. ZIP files wouldn't open for me either in Windows 10 File Manager, you may need a special ZIP file manager like PKzip or WinZip needed to access these ZIP files.
    1 point
×
×
  • Create New...