Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Hello again Ronjonp!
For you it is maybe nothing but for me this is amazing  :yay!: :yay!: :yay!: Thank you very much!! ;D

In the meantime I was also examining this routine. It did something but not as smooth and fast as your routine. Maybe it is interesting for you to study.
http://cadtips.cadalyst.com/attributed-blocks/automatically-convert-text-or-mtext-attributes (credits to Ricky Medley).

Anyway, thangs again! I am glad I get my deadline in time!  ;D
Glad to help :) .. now you can go home early today!  ;)
13
Hello again Ronjonp!
For you it is maybe nothing but for me this is amazing  :yay!: :yay!: :yay!: Thank you very much!! :-D

In the meantime I was also examining this routine. It did something but not as smooth and fast as your routine. Maybe it is interesting for you to study.
http://cadtips.cadalyst.com/attributed-blocks/automatically-convert-text-or-mtext-attributes (credits to Ricky Medley).

Anyway, thangs again! I am glad I get my deadline in time!  :-D
14
.NET / Re: Updating Program Version
« Last post by nullptr on Today at 09:54:33 am »
For CAD?
Maybe a menu with a check for updates option, otherwise your program might need special permissions.
I turn off auto-updates whereever I can.

cheers! 


 
15
Visual DCL Programming / Re: image_tile and vector_image
« Last post by Grrr1337 on Today at 09:43:40 am »
The image tile will need to be an image_button tile in order to be assigned an action.

Man, I feel so stupid  :oops:

Also I was about to ask how the tile's size should be determined, depending on the AxB image bit size, until I browsed in: DCL-Bitmaps\Tile Definitions\ImageTiles.dcl

This is the final result (I also modified the original code) :


You are a great tutor, Lee!
Everytime I try to learn some new aspect of the lisp world - I see that you've been there already, perfecting it.
Like this LM:DisplayBitmap looks so easy and comfortable to use, that IMO it deserves a place within the standad tile functions (like action_tile/set_tile) ! :-)
16
Hi Ronjonp! I tried the lisp but it not working in my drawing. I attached a small part of it. Maybe you can take a look?
Thanks in advance!

Kind regards,
Luis
Here you go:
Code - Auto/Visual Lisp: [Select]
  1. (defun c:foo (/ blocks el fuzz p text txt x)
  2.  (setq fuzz 0.001)
  3.  (if (and (setq text (ssget "_x" '((0 . "text") (8 . "!Kunstwerken_Watervaknummer"))))
  4.   (setq blocks (ssget "_x" '((0 . "insert") (66 . 1) (2 . "Symbool_Kunstwerk"))))
  5.   (setq blocks (mapcar 'vlax-ename->vla-object (mapcar 'cadr (ssnamex blocks))))
  6.   (setq
  7.     text (mapcar
  8.    '(lambda (x) (setq el (entget x)) (list (cdr (assoc 11 el)) (cdr (assoc 1 el)) x))
  9.    (mapcar 'cadr (ssnamex text))
  10.  )
  11.   )
  12.      )
  13.    (foreach block blocks
  14.      (setq p (vlax-get block 'insertionpoint))
  15.      (if (setq txt (vl-some '(lambda (x)
  16. (if (equal p (car x) fuzz)
  17.  x
  18. )
  19.      )
  20.     text
  21.    )
  22.  )
  23.       (vlax-invoke block 'getattributes)
  24.       )
  25.       (entdel (last txt))
  26. )
  27.      )
  28.    )
  29.  )
  30.  (princ)
  31. )
17
Visual DCL Programming / Re: image_tile and vector_image
« Last post by Lee Mac on Today at 08:53:09 am »
Now just one issue left - the action_tile - whats wrong with it?

The image tile will need to be an image_button tile in order to be assigned an action.
18
.NET / Updating Program Version
« Last post by Master_Shake on Today at 07:58:50 am »
How do you guys handle program updates? I'm wrapping up a program which will be sent out to about 100 different users but it needs to be updated occasionally. I'm learning towards the approach that Spotify uses; ping a remote server, compare versions, download the update, and automatically apply the update in the background.

Are there better ways or any cons to the "Spotify" approach that I'm not accounting for?

//edit
The program is a self-contained executable if that changes anything.
19
Hi Ronjonp! I tried the lisp but it not working in my drawing. I attached a small part of it. Maybe you can take a look?
Thanks in advance!

Kind regards,
Luis
20
AutoLISP (Vanilla / Visual) / Re: Routine wanted to modifile
« Last post by kottok on Today at 04:54:34 am »
Thanks Peter , i will try it.
Pages: 1 [2] 3 4 ... 10