All Activity
- Past hour
-
multiple file selection dialog box using lisp & powershell
BIGAL replied to Paul Li's topic in AutoLISP, Visual LISP & DCL
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 using powershell. I generally only do a "Power shell and script" I have used it to change programs, I jump to Excel from CAD. -
multiple file selection dialog box using lisp & powershell
GLAVCVS replied to Paul Li's topic in AutoLISP, Visual LISP & DCL
One observation: in older versions of AutoCAD (2000 and 2002, at least), 'vla-get-HWND' applies to the Document object rather than the Acad object. -
How can I make the following program support Chinese input?
BIGAL replied to xcn's topic in AutoCAD 2D Drafting, Object Properties & Interface
Still for me your just replacing the inbuilt mtext ability. The Mtext should support Chinese characters. 1 Select mtext, using dbl click 2 Highlite characters 3 Edit characters 4 Press OK - Today
-
multiple file selection dialog box using lisp & powershell
Paul Li replied to Paul Li's topic in AutoLISP, Visual LISP & DCL
Thanks for troubleshooting. That could definitely be caused by having a write-line statement that's way too long. I've made the changes to reduce the write-line on the dcl. Kindly troubleshoot some more for offices that do allow for running powershell with the attached revised version...thanks in advance. pl_getfiledps.lsp -
caado joined the community
-
then xdrx.x64.25.arx seems correct, it should match (substr (getvar "ACADVER") 1 2)
-
multiple file selection dialog box using lisp & powershell
SLW210 replied to Paul Li's topic in AutoLISP, Visual LISP & DCL
I'm not going to troubleshoot it since Powershell is blocked at work, but if the load has that error, then it's something in the Code, probable in the DCL write-line part. -
VedaCAD - Technical Support, Updates & Community VCIDs
VicoWang replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Thank you for the reminder, this is long-term content for search engines. At least I know there are several WhatsApp groups in the AEC field, and I guess there should still be some users. What methods do you mainly use? -
Steven P started following multiple file selection dialog box using lisp & powershell and VedaCAD - Technical Support, Updates & Community VCIDs
-
VedaCAD - Technical Support, Updates & Community VCIDs
Steven P replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Not so sure on that one, CAD engineers don't get work phones so often, so whatsapp not so useful to keep up to date with a file repository. -
multiple file selection dialog box using lisp & powershell
Steven P replied to Paul Li's topic in AutoLISP, Visual LISP & DCL
String too long - just a guess, file path and file name string length? - going back old school when we had 256? characters for it all - but just a guess -
This thread was started 5 months ago and there was never a response to original questions. My WAG is @BIGAL's suggestion of RECOVER did the trick.
-
multiple file selection dialog box using lisp & powershell
SLW210 replied to Paul Li's topic in AutoLISP, Visual LISP & DCL
Many work computers are likely limited for using Powershell. Unrelated to Powershell being blocked, I get an error loading. error: string too long on input -
How can I make the following program support Chinese input?
SLW210 replied to xcn's topic in AutoCAD 2D Drafting, Object Properties & Interface
I was just suggesting a rewrite, though I think maybe it is just a Unicode issue so it might be altered. That's what I came back with on an internet search for change AutoCAD LISP from English input to Chinese and the articles I read stated Chinese has double-byte Unicode, the GRREAD may also be an issue. LISPSYS=2 is necessary. Is this on a Chinese Simplified version of AutoCAD, Windows , etc.? Give some more detailed information on the setups this will be used. I just started studying Chinese a few weeks ago, so I want be a ton of help on that end and haven't got into the characters yet. -
From coordinate hallucination to 7-token precision (LISP Sandbox)
VicoWang replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Just a quick update on this experiment: An AEC startup working on automated 2D quantity takeoff reached out to me today. They’ve been using AI to extract drawing data, but have been hitting a wall with geometric precision, and wanted to see if the v-code RPN approach could work for their 2D pipeline. When I started experimenting with v-code, the whole point was to slash token bloat and eliminate coordinate hallucinations through a deterministic stack machine (the 3D CSG solid in the sandbox was just a visual way to demonstrate the stack collapsing into geometry). Seeing a team take that core concept and explore applying it to real-world 2D data extraction has been an unexpected and very encouraging surprise. -
VedaCAD - Technical Support, Updates & Community VCIDs
VicoWang replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Welcome to join the VedaCAD WhatsApp group: https://chat.whatsapp.com/BsM62YEol9SHdKoWxaeW1D -
NTH joined the community
-
How can I make the following program support Chinese input?
xcn replied to xcn's topic in AutoCAD 2D Drafting, Object Properties & Interface
@BIGAL The goal isn’t just to change color. This AutoLISP routine is an interactive character-level editor for a single-line TEXT entity. It lets you: 1. Select an existing TEXT object. 2. Move the mouse along the text to highlight a range of characters. 3. Type replacement characters. 4. Press Enter or Space to replace the highlighted range in the original text. The temporary red text created by ht:paint is only a visual highlight of the selected character range. It is not meant to permanently change color. -
How can I make the following program support Chinese input?
BIGAL replied to xcn's topic in AutoCAD 2D Drafting, Object Properties & Interface
Not sure what your trying to achieve. Could you describe more. If it's about changing color then just use mtext. - Yesterday
-
multiple file selection dialog box using lisp & powershell
Paul Li posted a topic in AutoLISP, Visual LISP & DCL
Attached is an improved version of getfiled that implements powershell with the option to select single or multiple files returning a list of the selected item(s): Examples: (pl:getfiledps "Select Files" (getvar"dwgprefix") "dwg" 0) ; for single selection of file type dwg (pl:getfiledps "Select Files" (strcat (getenv "userprofile") "\\downloads") "dwg;dxf" 1) ; for multiple selection of file types dwg & dxf Feedback & comments are welcome. pl_getfiledps.lsp -
ynywii joined the community
-
Danielm103 started following xdrx
-
if you're running Civil 3D 2019, then xdrx.x64.25.arx is not the correct version, it would be xdrx.x64.23.arx
-
How can I make the following program support Chinese input?
xcn replied to xcn's topic in AutoCAD 2D Drafting, Object Properties & Interface
I came up with it. If it could be completely rewritten, that would be great. -
I haven't seen the person that was posting here promoting that in a while, but you might try messaging them here or their website. @XDSoft
-
Do you really need a separate DWG for every revision?
SLW210 replied to indiancad's topic in AutoCAD Drawing Management & Output
I forgot to mention, for keeping up with the revisions we have Excel drawing lists with the Drawing names, dates and latest revision number on the network. P&IDs keep a dated track of each and every revision in cast things get put back to an older revision. -
How can I make the following program support Chinese input?
SLW210 replied to xcn's topic in AutoCAD 2D Drafting, Object Properties & Interface
From where did that LISP originate? Mandarin? Glancing through that LISP a little, I am almost positive the best way would be to completely write something new. -
Well done, nice use of Parallel.For! Kdtree’s are definitely a must have in the CAD programmer’s tool box.
