TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mhy3sx on July 05, 2023, 01:03:51 PM

Title: Help: parking ramp lisp
Post by: mhy3sx on July 05, 2023, 01:03:51 PM
Hi, I see this video in youtube. https://www.youtube.com/watch?v=Zk6DpEXRMt0 (https://www.youtube.com/watch?v=Zk6DpEXRMt0). Can any one have an idea how this can be done?


Thanks
Title: Re: Help: parking ramp lisp
Post by: danAllen on July 05, 2023, 03:57:12 PM
GRVECS + code
Title: Re: Help: parking ramp lisp
Post by: mhy3sx on July 06, 2023, 01:25:39 AM
Hi  danAllen. What is GRVECS + code ?

Thanks
Title: Re: Help: parking ramp lisp
Post by: danAllen on July 06, 2023, 01:34:09 AM
GRVECS is used to draw graphics to the screen during lisp command. The code appears to be calculating the rise & run of the two selected points then drawing to the screen the ramp as the cursor is moved around. When the 2nd point is selected then actual entities are created.

Here is an example: http://www.theswamp.org/index.php?topic=57716.msg610747#msg610747
another http://www.lee-mac.com/grtext.html
Title: Re: Help: parking ramp lisp
Post by: mhy3sx on July 06, 2023, 09:59:40 AM
Can you make an example lisp like the video?

Thanks
Title: Re: Help: parking ramp lisp
Post by: danAllen on July 06, 2023, 11:09:52 AM
I think it is within my skills to create such a lisp, but not quickly nor within my desirable free time. I would have no use for it since I could just design the same ramp in less than 5 minutes.
Title: Re: Help: parking ramp lisp
Post by: keithsCADservices on July 06, 2023, 10:47:11 PM
Check out some of this guys stuff on his YouTube channel. It's absolutely amazing! Most of it is 10+ years old. I think maybe when ACAD released ACAD Architecture for basically the same cost as ACAD full the demand for his stuff went down (unfortunately). The life of a LISP programmer, that is, always being the brides maid lol!

I don't think this is being done using GRVECS. To program the font to appear as it does would be nearly impossible (you'd have to draw zero-length lines as individual pixels basically... no f'ing way). The available literature via an online search is telling me that there is no mouse movement reactor included with AutoLISP. It's also not multi-threaded so a timer wouldn't work. I could be wrong but the effort to get this to work with GRVECS would require some AutoLISP voodoo magic. When you look at his other videos, his mouse movements not only draw lines but also affect existing elements too, which further leads me to believe he's using something else. Probably .NET or even C++.

Many of his dialogs are modal and look like DCL dialogs, so he might be combining LISP with other API's.

As far as programming this (or having someone create it for you): If you understand ramps you won't really need it. Similar to what danAllen is saying: It only takes minutes to draw the ramp anyways. Even if someone was kind enough to write the code for you, the time spent writing that code would never even equate to the amount of time saved by a single user over a lifetime. It's impressive code but not worth it unless many users were using it (and I presume that was the creator's plan back in the day).
Title: Re: Help: parking ramp lisp
Post by: danAllen on July 06, 2023, 11:59:50 PM
generally agree, but have you checked out Lee Mac's lisp to draw text to screen with grvecs? (brilliant)
http://www.lee-mac.com/grtext.html
(http://www.lee-mac.com/lisp/gifs/GrText1.gif)
Title: Re: Help: parking ramp lisp
Post by: keithsCADservices on July 07, 2023, 01:49:24 PM
Your link has me re-thinking my earlier assumption, in particular, the GRREAD function. Here's what seems to be the best resource on the subject:
https://www.theswamp.org/index.php?topic=12813.0

It's 19 pages long!!!

These guys are really squeezing every last bit out of what's available. For me, if I go that far I think I'd have to go through the C# API; I'm learning that at the moment anyways, and the level of creativity needed to make some of these things work in AutoLISP.

So I (think) I stand correct: It is possible in AutoLISP?
Title: Re: Help: parking ramp lisp
Post by: BIGAL on July 08, 2023, 12:13:11 AM
If you want amazing have a look at Autoturn, its has triple trucks, drive path that you can drag and it follows mouse. Producing trace of vehicle path.

Placing car and checking yep did that like ten years ago draws multiple cars along a pline based on standards for a car. Its built in to Civil Site Design, civil design software.

This is a plan view for forklift in factory. Used to check forklift path in a property.

I think pick 2 points is really all that is needed does it work or not, same with stairs.

There is some known values for change of grade that you know a car will not bottom out. (+ G1 G2) (http://)
Title: Re: Help: parking ramp lisp
Post by: keithsCADservices on July 08, 2023, 11:47:43 AM
It's hard to find the price. Meaning $$$$$.
Title: Re: Help: parking ramp lisp
Post by: danAllen on July 08, 2023, 07:15:04 PM
Free version of Vehicle Turning Simulation https://glamsen.se/
Title: Re: Help: parking ramp lisp
Post by: BIGAL on July 08, 2023, 07:31:58 PM
The Cad Tools vehicle turning looks good !
Title: Re: Help: parking ramp lisp
Post by: xdcad on November 22, 2023, 08:13:35 PM
Mark the post first
After completing the content, post it