Author Topic: Draw a simple line...  (Read 18782 times)

0 Members and 1 Guest are viewing this topic.


  • Swamp Rat
  • Posts: 596
Re: Draw a simple line...
« Reply #15 on: November 16, 2005, 12:03:06 PM »
yup works for 2005

I'll post the solution after lunch if anyone is interested.


  • King Gator
  • Posts: 3520
  • (x-in)->[process]->(y-out)
Re: Draw a simple line...
« Reply #16 on: November 16, 2005, 12:29:54 PM »
I think the ads_ prefix and this style of arx (as shown in Luis' first post) is a throw back to the early days when most if not all customisation was in lisp (before even ads/arx), rather than registering a command on the command stack as in current arx you (or autocad before ads) created your function and with the help of the macro or similar it 'exported' the function for use in lisp.
IOW, this is probably pretty much the reason how and why you can draw a line from lisp.

Just thinking out loud.... :)
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

"The E in Javascript stands for 'easy'." — Florin Pop tweet


  • Villiage Idiot
  • Seagull
  • Posts: 16897
  • Superior Stupidity at its best
Re: Draw a simple line...
« Reply #17 on: November 16, 2005, 01:19:27 PM »
If I remember correctly, you can change the prefix designation. You should register your prefix with Autodesk to be sure noone else uses that prefix and thus causes your programming to have issues with other programming. i.e. if there is already a program using ads_myline and you compile this code, there would be competing programming for the exported function and thus one of the programs would not operate properly. I think it has to do maily with object ownership, but right now my memory is failing me.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on @kblackie


  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Draw a simple line...
« Reply #18 on: November 16, 2005, 01:32:34 PM »
Thank you for the code Luis (and Swift, Mick, Troy, Paul, Chuck, Glenn, Mark ... forgive me if the list is not comprehensive).

While I won't be looking at it today I will be down the line, so thank you all in advance (and for those other threads where you folks posted some great c++).

Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client