Author Topic: Word scripting Issue  (Read 5335 times)

0 Members and 1 Guest are viewing this topic.

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Word scripting Issue
« Reply #15 on: March 12, 2018, 06:39:51 AM »
i'd send a screenshot, but not until Monday
i'm surprised that it doesn't work for you, Grrr1337

Grrr1337

  • Swamp Rat
  • Posts: 812
Re: Word scripting Issue
« Reply #16 on: March 12, 2018, 07:47:16 AM »
Yup, I wasn't even aware that it was possible to inspect the external objects (not related to AutoCAD).
Although the vlax-dump-object function works fine.
And when I import the MSWord library - it only affects on the atoms-family.

For anyone interested, my specs are:
Windows 8.1 Pro
ACAD 2017
MS Office Pro Plus 2013


BTW Does that mean you can inspect any external object like that, so you get everytime all the properties and methods?
(apply ''((a b c)(a b c))
  '(
    (( f L ) (apply 'strcat (f L)))
    (( L ) (if L (cons (chr (car L)) (f (cdr L)))))
    (72 101 108 108 111 32 87 111 114 108 100)
  )
)
vevo.bg

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Word scripting Issue
« Reply #17 on: March 12, 2018, 09:34:28 AM »
BTW Does that mean you can inspect any external object like that, so you get everytime all the properties and methods?
some of them will and some of them won't
you'll have to test every one of them to be sure
for example (vlax-create-object "MSXML2.DOMDocument.6.0") and (vlax-create-object "WinHTTP.WinHTTPRequest.5.1") both work fine

Grrr1337

  • Swamp Rat
  • Posts: 812
Re: Word scripting Issue
« Reply #18 on: March 12, 2018, 11:14:21 AM »
some of them will and some of them won't
you'll have to test every one of them to be sure
for example (vlax-create-object "MSXML2.DOMDocument.6.0") and (vlax-create-object "WinHTTP.WinHTTPRequest.5.1") both work fine

I see, same like using the vlax-dump-object function - for some objects prorperties'n'methods appear fully/partially/do not.
Just to elaborate a bit the inspect tool issue - looks like the problem might be at the MS Office version I'm using, since it kinda works for the other 'control' objects.
(apply ''((a b c)(a b c))
  '(
    (( f L ) (apply 'strcat (f L)))
    (( L ) (if L (cons (chr (car L)) (f (cdr L)))))
    (72 101 108 108 111 32 87 111 114 108 100)
  )
)
vevo.bg