Author Topic: Acessing Plotter Configuration Editor with ActiveX  (Read 1752 times)

0 Members and 1 Guest are viewing this topic.

Grrr1337

  • Swamp Rat
  • Posts: 812
Acessing Plotter Configuration Editor with ActiveX
« on: March 31, 2017, 03:42:23 PM »
Hi guys,

I think I've seen being questioned before about creating custom paper size with autolisp.
But my question rather would be is it even possible to access this "Plotter Configuration Editor" - with activex (using vlax-create-object/vlax-get-or-create-object).  :thinking:



I'm not very experienced when it goes on manipulating objects outside of the CAD application - but I'm curious, does such object (plotter cfg) exists at all.
(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

ChrisCarlson

  • Guest
Re: Acessing Plotter Configuration Editor with ActiveX
« Reply #1 on: March 31, 2017, 03:47:55 PM »
I don't believe that is exposed through LISP

Grrr1337

  • Swamp Rat
  • Posts: 812
Re: Acessing Plotter Configuration Editor with ActiveX
« Reply #2 on: March 31, 2017, 04:28:57 PM »
Looks like it can be opened only, like:
Code: [Select]
(startapp "pc3exe.exe" (getfiled "Specify pc3 file" "" "pc3" 0))or using the shell app:
Code: [Select]
(defun _openfile (file / sh)
    (if (findfile file)
      (progn (setq sh (vlax-get-or-create-object "Shell.Application"))
        (vlax-invoke-method sh 'open (findfile file))
        (vlax-release-object sh)
        file
      )
    )
  )

But its kinda sad that activex won't do the job.
(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: Acessing Plotter Configuration Editor with ActiveX
« Reply #3 on: March 31, 2017, 05:49:28 PM »
pc3 is a zip-ed txt file
there is a topic about it somewhere on thesmawp

Grrr1337

  • Swamp Rat
  • Posts: 812
Re: Acessing Plotter Configuration Editor with ActiveX
« Reply #4 on: April 01, 2017, 07:22:53 AM »
pc3 is a zip-ed txt file
there is a topic about it somewhere on thesmawp

Thanks, Vovka
Hopefully I'll figure out something about this in the future (I don't have enough experience at the moment).
(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