Author Topic: Help: parking ramp lisp  (Read 2274 times)

0 Members and 1 Guest are viewing this topic.

mhy3sx

  • Newt
  • Posts: 120
Help: parking ramp lisp
« on: July 05, 2023, 01:03:51 PM »
Hi, I see this video in youtube. https://www.youtube.com/watch?v=Zk6DpEXRMt0. Can any one have an idea how this can be done?


Thanks

danAllen

  • Newt
  • Posts: 134
Re: Help: parking ramp lisp
« Reply #1 on: July 05, 2023, 03:57:12 PM »
GRVECS + code

mhy3sx

  • Newt
  • Posts: 120
Re: Help: parking ramp lisp
« Reply #2 on: July 06, 2023, 01:25:39 AM »
Hi  danAllen. What is GRVECS + code ?

Thanks

danAllen

  • Newt
  • Posts: 134
Re: Help: parking ramp lisp
« Reply #3 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

mhy3sx

  • Newt
  • Posts: 120
Re: Help: parking ramp lisp
« Reply #4 on: July 06, 2023, 09:59:40 AM »
Can you make an example lisp like the video?

Thanks

danAllen

  • Newt
  • Posts: 134
Re: Help: parking ramp lisp
« Reply #5 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.

keithsCADservices

  • Newt
  • Posts: 45
Re: Help: parking ramp lisp
« Reply #6 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).

danAllen

  • Newt
  • Posts: 134
Re: Help: parking ramp lisp
« Reply #7 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

keithsCADservices

  • Newt
  • Posts: 45
Re: Help: parking ramp lisp
« Reply #8 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?

BIGAL

  • Swamp Rat
  • Posts: 1430
  • 40 + years of using Autocad
Re: Help: parking ramp lisp
« Reply #9 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)
A man who never made a mistake never made anything

keithsCADservices

  • Newt
  • Posts: 45
Re: Help: parking ramp lisp
« Reply #10 on: July 08, 2023, 11:47:43 AM »
It's hard to find the price. Meaning $$$$$.

danAllen

  • Newt
  • Posts: 134
Re: Help: parking ramp lisp
« Reply #11 on: July 08, 2023, 07:15:04 PM »
Free version of Vehicle Turning Simulation https://glamsen.se/

BIGAL

  • Swamp Rat
  • Posts: 1430
  • 40 + years of using Autocad
Re: Help: parking ramp lisp
« Reply #12 on: July 08, 2023, 07:31:58 PM »
The Cad Tools vehicle turning looks good !
A man who never made a mistake never made anything

xdcad

  • Swamp Rat
  • Posts: 505
Re: Help: parking ramp lisp
« Reply #13 on: November 22, 2023, 08:13:35 PM »
Mark the post first
After completing the content, post it

« Last Edit: November 22, 2023, 08:17:55 PM by xdcad »
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
https://github.com/xdcad
https://sourceforge.net/projects/xdrx-api-zip/
http://bbs.xdcad.net