Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. Yes you can have custom buttons Ok_Cancel_Width. Have to go back to my R12 paper manual for details.
  3. BIGAL

    A new get length LISP

    Nice job on the vector images. Like the highlite option.
  4. @BIGALOr another option would be to provide a button to click on so that the selected item on the list box will open up into another dcl written on the fly with an Edit Box having a set edit_width attribute greater than the length of the selected item.
  5. Today
  6. @Paul Li another way may be to check the strlen of the selected item in the list and do a child dcl that has correct width press Ok to keep else Cancel and go back to list.
  7. @SLW210 Your revised version works beautifully and can now support older versions of AutoCAD...thanks a bunch!!!
  8. SLW210

    A new get length LISP

    I worked on the DCL after some inspiration from... Hopefully I didn't break anything. New version with nicer DCL in first post.
  9. Yes, I was working on that for my home computer with 2000i. Since I had some home time today with AutoCAD 2000i, I did some updating to your code. Seems to work great with minimal testing. Here is my Test Code... ; ================================================================ ; Test command ; ================================================================ (defun c:SelectDWGs (/ files) (setq files (pl:getfiledps "Select DWG Files" (getvar "DWGPREFIX") "dwg" 1 ) ) (if files (progn (princ "\nSelected files:" ) (foreach file files (princ (strcat "\n" file ) ) ) ) (princ "\nNo files selected." ) ) (princ) ) pl_getfiledps_2000i.lsp
  10. Yes, I've done this as well...just not as effective as having a scroll bar of course...
  11. so does the pl:getfiledps function still run properly on those older AutoCAD versions?
  12. Could you test if this PowerShell-p function would return nil on your powershell blocked computers? ; PowerShell-p function to check if powershell is available to run...Returns T if available (defun PowerShell-p (/ shell result) (setq shell (vlax-create-object "WScript.Shell") result (vl-catch-all-apply 'vlax-invoke-method (list shell 'Run "powershell.exe -NoProfile -Command \"exit 0\"" 0 T)) ) (vlax-release-object shell) (and (not (vl-catch-all-error-p result)) (= result 0) ) )
  13. How are you executing the Chinese input? Like I stated, Autodesk claims you should use MText for multi-language. I just got into pinyin inputs so far and mostly I have been going over the pronunciations, though the characters are displayed. I have so far just been repeating that until I have a solid grasp. More or less it's a course where I am also brushing up on programming, they have a Chinese (simplified) and a Spanish (also English) pretty much for programming. My home computer has the Chinese switch, I'll have to see if I can do that at work.
  14. @SLW210 Glad to hear that you are learning Chinese. I used the English full version of AutoCAD 2027, set LISPSYS to 2, and restarted the computer to test the code. The result is that Chinese input still doesn’t work. I tried to catch keyboard input: once a key is pressed, the program exits the grread loop and calls getstring. This makes Chinese input possible.
  15. I have been looking at the discussion boards for the past month while working on my structural project for Penn Foster. It has been a great help but I was wondering if anyone could point me to a visual example of plate 3 (Section A)? I'm sure there is one somewhere in the boards but I have not been able to find it. I also don't need details, I am just a visual learner and I know for a fact the drawing I have made for this is completely wrong since the instructions are not clear to me. All of the plates after this seem to be based off of this one so I am struggling to go any further without a visual to see what I need to fix or how wrong exactly my drawing is. Any visual for this plate would be of great help! Thank you!
  16. Here's a simple workaround. When you get a drawing from someone else, open a New drawing (from one of your templates). Xref their drawing into that one and Bind it as an insertion. That gives you a block, which you can edit to clean it up and then explode. If there's a scale problem, it will show up there. Voila! You have their drawing with all your settings applied.
  17. Danielm103

    xdrx

    there's also a board dedicated to XDrx-API https://www.theswamp.org/index.php?board=78.0
  18. Have you ever started working on a DWG file and discovered at some point that it was created using incorrect units? You can easily verify them with UNITS and see the DWG's insertion scale and other units-related settings before you begin making any changes. When working with someone else's DWG or from another company, I always like to check the units first, rather than just trusting that it's set up properly. It can save you headaches down the road when dealing with insertion scales of blocks, inserting or attaching references, etc. Do you check UNITS as part of your standard procedure when you receive an unfamiliar DWG?
  19. SLW210

    xdrx

    Why would I contact them? They have a website are usually on at a few AutoCAD fora. @XDCAD_net and @XDSoft should be the originators of that program. In looking at your first post, I would believe a newer program to be in C:\Program Files\, not in C:\ Program Files(x86)\. Here are installation instruction from the GitHub... xdcad · GitHub
  20. granat

    xdrx

    Did you try contacting XDSOFT? HOW? I LOAD "XDRx.x64.25.arx" AND i get this error
  21. @BIGAL, they are using Text, not MText, which could be part of the problem, from what I've seen on Autodesk site, Text doesn't lend itself to multiple languages.
  22. SLW210

    xdrx

    Did you try contacting XDSOFT? Maybe provide more information. What are you attempting to do that gives the error?
  23. Professionally all updates are via email. Recorded in the company systems and auditable.
  24. @Paul Li it may not be the answer but what I have done in the past is to quickly get the strlen of say file name, Then get the maximum value of all the file names and add say 2, that becomes your new width for the dcl.
  25. 3) Regarding Horizontal Slide Bar (or better term may be Scroll bar)
  26. "3) Horizontal slide bar to list box" not sure if you mean like this a horizontal slider. as you move it the item in in the list box is selected. A slider uses a min max number and step size. So could do "1 to length of list", step of 1. This has 3 sliders and updates total. Sliders arrows are not clear in image. "6) A select file dialog box " thumbnails choice. Your "pl_getfiledps.lsp" when the explorer is opened click on the "More" option and can see icons etc.
  27. Yesterday
  28. Works great often do old fashioned DOS to get file names list or use the VL files functions. A suggestion remove "result" from the local variables list. As the answer disappears. Or ; Example: ; (setq files (pl:getfiledps "Select Files" (getvar"dwgprefix") "dwg" 1)) A side comment I have used Powershell with Bricscad and sometimes does not work. Your code may help as you do a deeper dive into running Powershell. I generally only do a "Power shell and script" I have used it to change programs, I jump to Excel from CAD.
  1. Load more activity
×
×
  • Create New...