All Activity
- Past hour
-
VincentP13 joined the community
- Today
-
[LISP plugin] Omni Wheel-a custom radial menu tool
Ajmal replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Nice work. I built the same kind of wheel for Revit a while back, so it was good to see someone doing it on the AutoCAD side. I could not see it running from the thread either, so a short screen recording would probably get you more replies here than anything else. Everything below is from my side, on Revit, so translate it however it fits. These are the ones that cost me the most time. Aim by the pointer angle, not by which shape is under the pointer. Point in a direction and that wedge lights up, whether you are near the middle or way out past the rim. That one change is what made mine feel like a game wheel instead of a menu. Number keys 1 to 9 pick a slot directly. Once you know your own layout you stop looking at the wheel at all, and that is where the real speed comes from. Grey out a slot that cannot run right now, and work all of them out in one pass before the wheel opens. Mine has to check the current selection to answer that. Doing it slot by slot meant a 50,000 element selection got walked once for every slot on the wheel. Once for the whole wheel fixed it. Check the command will really be accepted before you fire it. When mine was refused, nothing ran but the wheel still closed as if it had worked. That is the worst kind of failure because it looks like an answer. Smaller things I would not have guessed: Test the wedge maths outside CAD. I rebuilt mine as a standalone renderer and produced every slot count at every wheel size as images. Far quicker than restarting the host for each attempt, and it found a label collision at my highest slot count that I would never have caught by eye. Store the command name in the slot, not the button text. Rename a button later and the layout survives. Slot 1 at the top, the rest clockwise, always. The muscle memory is the whole point, so that order can never move. Drop any glow or fade. Mine had a soft shadow on the hovered wedge and a fade across the whole ring, and both were being recomputed every time the pointer crossed a boundary. A brighter fill and a thicker outline read exactly the same and cost nothing. Only redraw the wedge that changed, never the whole ring. Let the config file be missing or corrupt without complaining. Mine falls back to the defaults instead of throwing a message at me, and I have never once wanted the message. Do not let dead keys close it. Enter, space and a number higher than my slot count all used to dismiss the wheel doing nothing, which just felt broken. Open the settings from the wheel itself, and let people set it up by dragging onto a real wheel instead of filling in a list. Drag a tool onto a slot to fill it, drag one slot onto another to swap them. Mine draws the same ring at a smaller size for that, so what you arrange is what opens. Two things I am curious about, since you draw with real entities in model space rather than a window over the top. Does the wheel stay the same size on screen at any zoom, or does it scale with the drawing? Mine sits in a window above everything so I never had to deal with that, but it looks like the harder half of your approach. And the double click. In AutoCAD a double click on an object opens its editor, so what happens when the pointer is over an entity instead of empty space? I went with a keyboard shortcut and dodged the question, but yours is the nicer gesture if it works. -
[LISP plugin] Omni Wheel-a custom radial menu tool
VicoWang replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
It's cool how we both use LISP to bypass tedious UI coding! What you described about unzipping CUIX to tweak the XML is very much like tweaking static DCL. It's a great, geeky hack for customization, and highly reliable since the underlying files are persistent. Though we take slightly different paths on file management. Instead of juggling multiple external files to get a feature working, I'm totally obsessed with the 'all-in-one LISP' paradigm. In my VedaCAD main program(Fully utilized temporary DCL technology to achieve multi-level dynamic DCL pages similar to web pages), the Gomoku game, and this OW LISP, I generate temporary DCLs on-the-fly. I basically use native CAD entities to draw the interface directly in model space, and then destroy/clean up everything right after the routine finishes. Pure plug-and-play. - Yesterday
-
[LISP plugin] Omni Wheel-a custom radial menu tool
BIGAL replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Gif is there now, a cool idea. The menu issue for me is writing a CUI or CUIX for a custom ribbon, but say using notepad or excel, if you change a cuix to zip can look inside. It is made of a few XML files, that would be helpfull. I also made a write mnu lsp so it helps the typing time, use it for pop menu's. One of the things I have played with is make dcl code from a dwg, uses blocks etc, but need to make it look at a more complex dcl. -
@Steven P It could be as simple as supporting mtext in a dcl. Then color and style would work.
-
Steven P started following [LISP plugin] Omni Wheel-a custom radial menu tool and Why does the same CAD drawing behave differently on two computers?
-
Why does the same CAD drawing behave differently on two computers?
Steven P replied to indiancad's topic in AutoCAD 2D Drafting, Object Properties & Interface
If it is going to a client I'll try to keep it all basic - no add ins, standard fonts, etc, if I can, on the assumption that their doc control will copy just the dwg file and all the rest will be lost to them at worst and at best when it is sent out again whoever sends it won't e-transmit, just the dwg, so we have to go round and round to get the rest. -
All image tiles.. nothing too fancy.. the time was spent creating each letter as an image Letter Coordinates.lsp
-
[LISP plugin] Omni Wheel-a custom radial menu tool
VicoWang replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
-
[LISP plugin] Omni Wheel-a custom radial menu tool
BIGAL replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
No Gif. Use window+shift+r thats windows built in recorder. -
Why does the same CAD drawing behave differently on two computers?
BIGAL replied to indiancad's topic in AutoCAD 2D Drafting, Object Properties & Interface
If you use Etransmit it will add extra files to what is exported, in particular say custom fonts and xrefs. -
[LISP plugin] Omni Wheel-a custom radial menu tool
VicoWang replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
I tried to fix the demo file, can you see that GIF? This plugin does not provide the source code. -
@SLW210, yes well aware of using VBA forms rather than DCl a much better way for input dialogs, running VBA is pretty easy load the dvb then run the sub function. The only thing is must have the VBA runtime installed, which is a separate install in Acad. It is interesting though that a few years ago now Autodesk announced they would be discontinuing support for VBA but it is still there, I think the powers to be thought every one would jump onto .NET. @Steven P can you post code would like to try in Bricscad. The idea was based on a forum request to see your different text styles in a dcl.
- Last week
-
[LISP plugin] Omni Wheel-a custom radial menu tool
Steven P replied to VicoWang's topic in AutoLISP, Visual LISP & DCL
Could you put up a screen shot so we know what you want us to download - i'm very sceptical about just down loading unknown files. Better again would be the code to look at first of course. -
VicoWang started following [LISP plugin] Omni Wheel-a custom radial menu tool
-
[LISP plugin] Omni Wheel-a custom radial menu tool
VicoWang posted a topic in AutoLISP, Visual LISP & DCL
This is a radial menu tool that can be configured with up to 18 custom commands, accessed by double-clicking with the mouse. Installation method (upgradable in the future): [Omni Wheel] VCID: US87Y8 @ VedaCAD Note: To install via VCID, you need to install VedaCAD in advance and log in to a free account (or PRO account). -
Steven P started following Update to the creation of DCL's
-
Don't know about that.... ...not easy but because it was a quiet Christmas week last time... and if we can insert image buttons, we can insert custom button shapes: (just realised I have shamelessly not credited RLX? with the mouse) Suspect the same as SWL though, I'd be surprised if anything changes. BricsCAD is likely to maintain compatibility with AutoCAD and not go too far away... so 'BricsCAD' DCLs will work as 'AutoCAD' DCLs Colours and fonts would be handy... which is why I made up the first one, though Bold and Italic might be a better first step, and multiline text (I have a few with filepaths displayed where word wrapping would save me a few lines of coding). Not sure what else, but I am sure to think of something over the net week or so to add
-
mostar joined the community
-
You can handle that by separating the prefix from the numeric part of the ADDRESS attribute and sorting on the components rather than treating the whole value as a plain string. For example, L1-001, L1-002, L1-010 should be compared using L1 as the prefix and 001, 002, 010 as the numeric portion. The same idea works for something like 1/1/1-001, where the part before the final hyphen is the prefix. If the Lisp currently assumes that ADDRESS contains only digits, that's probably the part that needs changing. The important bit is to extract the number after the final -, convert that substring to an integer, and use it as the sort key. That will also preserve the expected order for values such as ...-002, ...-010, ...-100 instead of getting alphabetical ordering. If different prefixes need to be grouped together, I'd make the sort key something like (prefix, numeric part). That should let the same routine handle all three formats without having to hard-code L1 or 1/1/1.
-
Jeffery2145 joined the community
-
Why does the same CAD drawing behave differently on two computers?
indiancad posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Both systems may have the same drawing, but the result can still be different. Fonts, SHX files, plot styles, support paths, and installed add-ons can change how the drawing behaves. This is why sending only the DWG file is sometimes not enough. For team projects, I usually keep the required support files together with the drawing. It makes troubleshooting much easier when another user opens the same file. What additional files do you always send with a DWG? -
You could always use VBA, and/ or .NET to make the User Forms and work the LISP. I have a VBA or 2 around that I did, one runs Scripts in AutoCAD, I'll have to see what the others may do as I really haven't used them in a while. The inbuilt one works for me for now, but always could use more options. Autodesk hasn't made meaningful improvements to LISP since 1999 for AutoCAD 2000 and as you stated 0 DCL in 40 years, so don't get your hopes up on BricsCAD picking up the torch. Worth a try I would imagine.
-
Why does Object Snap sometimes stop working correctly in CAD?
SLW210 replied to indiancad's topic in AutoCAD 2D Drafting, Object Properties & Interface
Shift + Right-Click brings up a menu, except for Geometric Center, they all have a 1 letter shortcut, once in the habit it is very fast to select the snap you need. -
Free Multi Plot Lisp – Fast Batch Printing for AutoCAD, BricsCAD & ZWCAD | Model/Layout, Zone Plotting & PDF Merge
CamDuy replied to CamDuy's topic in AutoLISP, Visual LISP & DCL
-
AutoCAD 2027.1 Now Available: Smarter Autodesk AI Assistance and Smoother Collaboration
animal1103 replied to The AutoCAD Blog's topic in AutoCAD Blogs
-
Free Multi Plot Lisp – Fast Batch Printing for AutoCAD, BricsCAD & ZWCAD | Model/Layout, Zone Plotting & PDF Merge
Nikon replied to CamDuy's topic in AutoLISP, Visual LISP & DCL
The code doesn’t work (Autocad 2021 localized ) command: MPL Unknown command "MPL" -
Free Multi Plot Lisp – Fast Batch Printing for AutoCAD, BricsCAD & ZWCAD | Model/Layout, Zone Plotting & PDF Merge
CamDuy replied to CamDuy's topic in AutoLISP, Visual LISP & DCL
2026/08/18 - Version V13: Added Custom Name and Draw Temp Layout features Link Drive: https://drive.google.com/file/d/1McaDZI-gqSdi3zAdaHNu5LQ14_2JsDOj/view?usp=sharing -
VicoWang started following Update to the creation of DCL's
-
Designing UIs on the legacy DCL is basically dancing on a tightrope. It's a shame—even if there are new features, I can't use them in VedaCAD due to the need for cross-platform and full-version compatibility. If we really need a new feature, I think it should be native support for rounded buttons.
-
Since Acad first introduced DCL's that is like 40+ years ago, there has been no improvements to DCL's. This may be a big opportunity for Bricscad to add some more features. A few obvious ones. Text color Text style Text size Using other methods like .Net, VBA and maybe Open dcl the latter I don't use, allow for some of the options to be used. Obviously it's a support request, given that Bricscad has added VL functions not in other software, then maybe some new dcl options would be good. A proper forms engine would be good. So before sending a support request any other suggestions ? Hopefully more support requests will follow.
-
Why does Object Snap sometimes stop working correctly in CAD?
BIGAL replied to indiancad's topic in AutoCAD 2D Drafting, Object Properties & Interface
Why not just, saved in a startup lisp. (defun C:15 ()(setvar "osmode" 15359)) ; sets all snaps on (defun C:47 ()(setvar "osmode" 47)(setvar "AUNITS" 0)) (defun C:99 ()(setvar "osmode" 99)) (defun C:8 ()(setvar "osmode" 8)) (defun C:9 ()(setvar "osmode" 9)) (defun C:0 ()(setvar "osmode" 0)) Ok, a little unknown tip is say you type Line you can then type '47 note apostrophe this runs a transparent command inside the Line command, setting the osmode to be used. Or type the number to set your osnaps. In lisp use (setvar 'osmode 47) before executing "do something".
