All Activity
- Past hour
-
xurshid_viewport joined the community
-
Beyond APPLOAD: A local script manager for those of us with too many LISPs
Steven P replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
I got as far as writing to the registry but got stuck for time - I think I needed a restart of AutoCAD - 80% there, just that final part - but this was al done in testing the concept if I could - and it looks like I didn't save it! Sorry (It is one I want to do in the next year or so before next upgrade time) - Today
-
Mohamed El-kayal joined the community
-
Beyond APPLOAD: A local script manager for those of us with too many LISPs
aridzv replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
I think that the will to simplify the proccess of controling our environment (Ribbons,Menues,Varaibles,Lisps Etc.) can leed to more complications... and I also feel it loose it's original goal wich is to control our cad environment. It started with how to manage our lisp's, CUI (ribbon and menues) and varaibles setting and ended up with cloud-based app that (in my eyes...) only add complictions and I didn't fully understand its goal... to control the lisps - one autoload lisp file do it, and for organizations it can sit in a shared location. simple documantation file like excel or other formats can use to tell users what each lisp dose . organazations have system administrators for that. about settings: Bricscad have On_Doc_Load & on_start files, Autocad have its equivalents, and that is where varaibles can be set automatically. about the Ribbon and menues: CUI files can be deployed and loaded. there are other ways to progrematically do it like mentioned here through the registry and more, but I feel that some significant overshoot was displayed here. and do it through the cloud also raise some doubts for me. -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
Paul Li replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
@aridzv I also like to use the autoload function. But instead of including those lines of code in a lisp file that is added to the Startup Contents window under Appload, I include those lines of code inside the mnl files. Since I'm loading partial menus as long as the mnl file name matches the partial menu cuix file name, then AutoCAD automatically loads the contents inside the mnl file without the need to add the file under Appload. Unfortunately, this feature only works with AutoCAD but not with LT. Hopefully in the near furture Autodesk will incorporate the support of mnl files as well with LT. -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
aridzv replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
about loading lisps: I use a lisp file with autoload lines for each lisp looks like this: (defun c:lisps_autoload ();;Autoload all lisp files (autoload "3D2D" '("3D2D")) (autoload "3dplifstraight" '("3dplifstraight")) (autoload "add_SYS_ATT" '("add_SYS_ATT")) . . . . ) (c:lisps_autoload) this file have about 190 lines to autoload lisps - can have much more of course.. this file sits in place that is part of the cad path and I need to APPLOAD only this lisp - then all my lisps are availble on demand. not loaded wich take memeory but wating to be called and only those I call are loaded. about CUI: I have my custom CUI file and when I make new installtion (happens every 3 yeers...) I finish the intalation and copy the CUI file to new location and with "Customize" commad load it and done. the same with my lisp's folder - copy it the new location, use APPLOAD once to load the autoload lisp file mark the "Autoload" check box and finish. copy one CUI file,one lisps folder,set my CUI to mine,APPLOAD one lisp file and done. About dependencies: If a lisp is called from other lisp but didn't load before (didn't call it or it is a function lisp that will never be called by a user) I use this code to check if it is loaded and if not load it: (if (or (not breakallfunc) (not BREAK_WITH));; if breakallfunc command or BREAK_WITH command are not loaded load breakall.lsp (load "breakall.lsp") ) -
Using Arraypath function via scripting, duplicating lines are created in opposite direction of curve path
harshil replied to harshil's topic in AutoCAD LT
Thanks for reply. I dont want user to select the layer name and its object instead I want user to predefine the layer names and user just need to allocate the line to particular layer names and then run script. can that be included in script? -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
Paul Li replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
@BIGAL I'm only able to successfully add the file by do the following: 1) Right after adding the file using the lisp function, don't run Appload but close out of AutoCAD and re-start it 2) Manually add the file using Regedit, and if AutoCAD is running, don't run Appload but close and restart AutoCAD AutoCAD seems to have a hold of what goes on inside the Startup Suite window. -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
BIGAL replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Did look in the DFS file and it was up to date. Removed a line and saved. But no change will look further. -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
Paul Li replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Thanks @BIGAL. This is similar for AutoCAD: "HKEY_CURRENT_USER\\Software\\Autodesk\\AutoCAD\\R##.#\\ACAD-####:###\\Profiles\\<<Profile Name>>\\Dialogs\\Appload\\Startup" Retrieved using the following code: (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "CPROFILE") "\\Dialogs\\Appload\\Startup") But here's the problem I'm encountering with attempting to use lisp to add files into AutoCAD's Startup Suite window: 1) I would load & run the attached AddToStartupSuite.lsp function to add a lisp file to this registry location 2) I verify that the file has been added by running the in Windows the Regedit command, drill down to that registry location and I see that the file has been added 3) I can also verify by running the other attached ListStartupSuite.lsp function which returns with the added file at the end of the returned list. 4) But the added file doe NOT get populated in the Startup Suite window. Also once I enter the Appload command and close out of it the added file disappears from the registry. AddToStartupSuite.lsp ListStartupSuite.lsp - Yesterday
-
Beyond APPLOAD: A local script manager for those of us with too many LISPs
BIGAL replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
You will see lots of references to use ACADDOC.lsp which if you add all your lisps to it will load on startup, but I prefer to leave all custom loads outside of the inbuilt ones. There is another one also. When updating new version of CAD ignoring download "Install" time using a "Install lisp" and manually updating startup suite, plus a couple of other things like end users preferred toolbars, only took about 3 minutes and was all set up. @Paul Li this is Bricscad location I will try making a lisp to update. There was also a mention of a DFS file. The file name "Autoload" was just for convenience can use any reasonable name. Computer\HKEY_CURRENT_USER\Software\Bricsys\BricsCAD\V25x64\en_US\Profiles\Default\Dialogs\Appload\Startup -
Lisp Code for transforming list number to numbered block?
BIGAL replied to dber's topic in AutoLISP, Visual LISP & DCL
Thanks @SLW210 if you go to MS Word and just say make 5 paragraphs you can Number or Alpha each of those paragraphs. So adding or removing auto redoes the item. I then added a new indent label using Hexagon TTF and removed the period so got the hexagon labels to appear. My idea was to make a TTF with a character like "A" but it makes a hexagon enclosed "1" so can do 1-26. 27-52 is lowercase. In Word use A-Z as items in Cad appear as numbers. The lisp code will make either a dxf or pdf of 1-9 and A-Z for testing. I think need to adjust sizes as I think that was part of problems with fontforge. make num in hexagon.lsp -
Is the LIST command enough to troubleshoot CAD geometry?
BIGAL replied to indiancad's topic in AutoCAD Drawing Management & Output
Dont forget about DUMPIT.lsp that shows the properties via VL. I use it often reveals lots of info. DumpIt.LSP -
Using Arraypath function via scripting, duplicating lines are created in opposite direction of curve path
BIGAL replied to harshil's topic in AutoCAD LT
At a glance a couple of comments; Dont use "X" in the ssget. so you can select one or more objects. Ok the reason the objects array backwards is because of the arc direction, I tested by arraying objects two times and pick an arc on both ends and yes array went wrong way for one end pick. So there is a way around it, select an end you imply a direction, so use a pause to select path. Dont use the ssget to get path object. Rather use Entsel or even getpoint. My take on the task. (defun c:AUTOHPA ( / objLayer objSS pt pathCurve pathLength items) (setvar "CMDECHO" 0) (setq objlayer (cdr (assoc 8 (entget (car (entsel "\nPick an object for layer name ")))))) (princ "\nPick objects to Array ") (setq objSS (ssget (list (cons 8 objLayer)))) (if (= objSS nil) (progn (alert "No objects selected that match layer name \nWill now exit")(exit)) (progn (setq items (getint "\nEnter how many items ")) (setq pathCurve (entsel "\nPick path near an end for direction ")) (setq pt (cadr pathCurve)) (setq path (vlax-ename->vla-object (car pathcurve))) (setq pathLength (vlax-curve-getDistAtParam path (vlax-curve-getEndParam path))) (princ pathLength) (command "._ARRAYPATH" objSS "" pt "M" "D" "I" items "") (princ "\nArray completed successfully using layers.") ) ) (setvar "CMDECHO" 1) (princ) ) (c:AUTOHPA) -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
Paul Li replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
@Steven P "For each new installation you typically need to populate the startup suit though - the settings are saved as (typically) a Windows Registry key - and it is possible to have a LISP to add modify registry keys... just need to find the key location..." I've tried using lisp to add the items into the Startup Suite window via the registry. Unfortunately, I've not been successful in populating the Startup Suite window using this automated method. Perhaps you can share your lisp routine that is successful in getting this to work. -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
Steven P replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
So I am not so sure about BricsCad But yes, in AutoCAD there is a pop-up from the Appload dialogue - bottom right corner - 'startup suit' that loads things on opening each drawing (Usually LISPs). For each new installation you typically need to populate the startup suit though - the settings are saved as (typically) a Windows Registry key - and it is possible to have a LISP to add modify registry keys... just need to find the key location. In AutoCAD it is not a tricky task with 5 or 6 mouse clicks for each LISP for each time you have a new installation to change the startup suit. You can also save LISPs to trusted locations - load on demand - but this falls down that each user would need a local copy of the code, a central store in the company shared drives is better. If you do that then all that needs entering into the startup suit is a single LISP file, and this file contains the load on demand code, for example: (Defun C:ZA ( / ) (Load "F:\\AutoCAD\\AutoCAD LISPS\\ZOOMS.lsp") (C:ZoomAll)) Here the user uses the Alias or shortcut ZA, which loads the LISP file Zooms and runs ZoomAll - Having an alias like this will always load in the latest version, typically takes milliseconds to load the file - the time it takes to move the mouse a bit. Instead of ZoomAll use ZA and you will only get the newest copy when a drawing opens but it is faster (and usually sufficient considering the number of times a LISP has major updates made) Whoever manages the company LISPs (if anyone does) only has to save the file somewhere shared and add to the LISP in the startup file once the LISP is validated and approved everyone has access next time they start AutoCAD. Probably teaching your granny to suck eggs there... sorry! -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
aridzv replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
@Steven P So it is "APPLOAD" - meaning the lisps files are loaded on startup, not as "autoload" that only load the lisp the first time you type the command - load on demand? and can you save this "startup suit" to a file and use it on other computer or you must do it manually on a new machine? -
Using Arraypath function via scripting, duplicating lines are created in opposite direction of curve path
harshil replied to harshil's topic in AutoCAD LT
curve direction reverse using pedit I have tried but not working. I think script is not working because of default base point selection. -
Using Arraypath function via scripting, duplicating lines are created in opposite direction of curve path
harshil replied to harshil's topic in AutoCAD LT
manually arraypath is working fine but only while script running it is not working. At some location of layout it is working and at other location same script is not working. test_01.dwg -
Lisp Code for transforming list number to numbered block?
SLW210 replied to dber's topic in AutoLISP, Visual LISP & DCL
I am still not 100% on what the OP is asking for "EXACTLY" though they seem happy with @Romero's latest code. I might have time too look into it later this week. I have used Fontforge a long time ago, I'll see what I can hammer out. -
Using Arraypath function via scripting, duplicating lines are created in opposite direction of curve path
SLW210 replied to harshil's topic in AutoCAD LT
That's an Image, not a drawing. But since you want guesses only, my WAG is the direction of whatever object you are using for the 'curve path". -
Why do hatches become difficult to manage in complex drawings?
SLW210 replied to indiancad's topic in AutoCAD 2D Drafting, Object Properties & Interface
IIRC, I have just frozen all layers (or use LAYISO is usually easier) except what I need or even create a couple of new layers and only have those on. You can also try tweaking the scale, angle, etc. -
Is the LIST command enough to troubleshoot CAD geometry?
SLW210 replied to indiancad's topic in AutoCAD Drawing Management & Output
Best way to troubleshoot an issue in general is to watch the commandline and history, or in my case, the Text Window. I keep as much screen as possible when working on something, so no commandline ever. Dual screens I can have the Text Window open on the other monitor. Also, Properties can be opened with a Right-Click, so need need for that always on screen, mine is always docked. Is this question about 3D modelling only or just in general? If it's a geometry issue a close inspection usually can detect that if nothing shows in the commandline history. For 3D SECTIONPLANE can check for issues. LIST is handy in some cases, I sometimes use it for LISP uses, but I have various DUMP LISPs too, those can also help detect some issues. If it is a drawing I started, there usually should be no issues with geometry, like open gaps where you expect closed shapes, etc. so exactly what specific issues are you thinking of? LIST is probably behind a look at the Text Window and history, Properties, and a quick glance. But I usually use LIST for a way to quickly copy and paste that information and/or for double checking LISP results et. al. -
VedaCAD - Technical Support, Updates & Community VCIDs
VicoWang replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
This group already has 30+ members, welcome all developers, CAD managers, and users to join for CAD usage, technical discussions, development, and plugin sharing. -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
Steven P replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
'Appload' and Startup suit is in the bottom right corner... in AutoCAD.... Must be AutoLoad in BricsCAD -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
aridzv replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
@BIGAL I'm awre of APPLOAD... that's why I asked @Steven P what did it means - is it the use of APPLOAD or other way? -
Beyond APPLOAD: A local script manager for those of us with too many LISPs
BIGAL replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Just type Appload in Bricscad, you will ser the "Load Application Files" click on "Autoload" and the lisp entry will be loaded on startup.
