Author Topic: vlax-3D-point to list  (Read 5971 times)

0 Members and 1 Guest are viewing this topic.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
vlax-3D-point to list
« on: May 17, 2005, 03:19:06 PM »
If you use this (vlax-3D-point list) to create a vlax point
How do you reverse the process?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
vlax-3D-point to list
« Reply #1 on: May 17, 2005, 03:28:51 PM »
(vlax-safearray->list (vlax-variant-value (vlax-3D-point '(0 0 0))))

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
vlax-3D-point to list
« Reply #2 on: May 17, 2005, 03:35:45 PM »
Well you can tell I don't use that one very often. :oops:
You would think the help file would have a clue in the vlax-3D-point command
as to how to reverse the process. Oh well.

Thanks Michael
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
vlax-3D-point to list
« Reply #3 on: May 18, 2005, 02:16:49 AM »
Hi CAB

You can also use the VitalLisp part of ActiveX:
Code: [Select]
(vla-get-StartPoint Obj)
;can be replaced by:
(vlax-get Obj 'StartPoint)
;and returns directly a list...
or:
(vla-put-StartPoint Obj (vlax-3D-point '(0 0 0)))
;can be replaced by:
(vlax-put Obj 'StartPoint '(0 0 0))

Cheers
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
vlax-3D-point to list
« Reply #4 on: May 18, 2005, 08:11:15 AM »
Thanks for the help Jürg, very informative.
That reminds me that ther was a thread about the difference in the two methods.
Now if I can only find it. 8)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
vlax-3D-point to list
« Reply #5 on: May 18, 2005, 08:20:45 AM »
OK, here it is.
Your example sparked my dim memory of this post. :)
http://www.theswamp.org/phpBB2/viewtopic.php?t=620&highlight=vlaxput
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

SMadsen

  • Guest
vlax-3D-point to list
« Reply #6 on: May 18, 2005, 08:20:57 AM »
Always wondered about the exact origin of those functions. Good info. Thanks mr. Menzi.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
vlax-3D-point to list
« Reply #7 on: May 18, 2005, 08:28:46 AM »
I wish Autodesk never bought Vital LISP from BASIS Software. Vital LISP today would kick Visual LISP's butt around the block (Autodesk have let it languish), we'd have actual secure output (arx) and you wouldn't have to run it inside AutoCAD.

/rant
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
vlax-3D-point to list
« Reply #8 on: May 18, 2005, 08:56:28 AM »
I agree MP. I still have my original manuals around here somewhere.

I recall the disappointment I felt with each subsequent release by AutoDesk when nothing was done to expand on the work BASIS did on the product.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
vlax-3D-point to list
« Reply #9 on: May 18, 2005, 09:59:29 AM »
I still remember getting version 2 and rubbing me hands gleefully "Excellent Smithers, let's bash some serious apps out, w00t!". Last version I had round here was 3 Professional (IIRC). Now where are those manuals ...

... 'Course, I remember AutoDIRECT too. Man, time flies ...
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

SMadsen

  • Guest
vlax-3D-point to list
« Reply #10 on: May 18, 2005, 10:05:59 AM »
Quote from: Kerry Brown
I still have my original manuals around here somewhere.

I suppose they are printed manuals? If so, you know how OCR scanning works, right?  :wink: