Author Topic: Fonts for grvecs  (Read 11677 times)

0 Members and 2 Guests are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Fonts for grvecs
« Reply #15 on: May 11, 2014, 09:49:02 AM »
I also love solution, provided by Lee Mac at his Grtext lisp demo.
http://lee-mac.com/grtext.html
It's very flexible on my mind.


Thank you Inciner!  :-)
That is a fantastic way to visualise the vector encoding.

If you entmakex your text there is no need
for transforming fonts.

Similar to Alan's linked example, this is also the method I used in my very old Dynamic Information program; however, I much prefer the far cleaner solution of displaying text using temporary vector graphics, rather than many thousands of additions/deletions/modifications to the drawing database (which may also bloat UNDO cache files).
« Last Edit: May 11, 2014, 09:56:28 AM by Lee Mac »

ymg

  • Guest
Re: Fonts for grvecs
« Reply #16 on: May 11, 2014, 03:12:33 PM »
Bloating the UNDO cache is definitively a possibility.

Can be prevented that turning UNDO Off at beginning of routine
and back on as routine completes.

Creating and Deleting entities as far as I am concerned is a moot point
as it is designed for this exact purpose.  On top of that those grvec vectors
have to live somewhere while you display then.

ymg

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Fonts for grvecs
« Reply #17 on: May 11, 2014, 03:21:35 PM »
On top of that those grvec vectors have to live somewhere while you display then.

Yes, but the overhead will be substantially less.

reltro

  • Guest
Re: Fonts for grvecs
« Reply #18 on: May 12, 2014, 05:07:23 PM »
On top of that those grvec vectors have to live somewhere while you display then.

:) they live somewhere in the wonderland but I have not to be worried about where this place is :)

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Fonts for grvecs
« Reply #19 on: May 13, 2014, 10:53:33 AM »
...however, I much prefer the far cleaner solution of displaying text using temporary vector graphics, rather than many thousands of additions/deletions/modifications to the drawing database (which may also bloat UNDO cache files).
I've never thought about this as an issue. Is this something that has always occurred, or just in newer versions? I do notice that, if I've had c3d open all day, doing a lot of heavy work, c3d can become a little laggy, but restarting acad (not computer) will solve the issue.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Fonts for grvecs
« Reply #20 on: May 13, 2014, 02:53:54 PM »
...however, I much prefer the far cleaner solution of displaying text using temporary vector graphics, rather than many thousands of additions/deletions/modifications to the drawing database (which may also bloat UNDO cache files).
I've never thought about this as an issue. Is this something that has always occurred, or just in newer versions? I do notice that, if I've had c3d open all day, doing a lot of heavy work, c3d can become a little laggy, but restarting acad (not computer) will solve the issue.

I can't say whether it has always been the case, but I've certainly seen some pretty large UNDO.ac$ files in the past, with the 'running out of system memory' message not long to follow. I should imagine restarting AutoCAD cleans up the UNDO cache and the application starts afresh on the next run.

ymg

  • Guest
Re: Fonts for grvecs
« Reply #21 on: May 13, 2014, 08:36:46 PM »
AlanJT,

That Undo file certainly grow in the case of such a program
where you keep drawing and erasing to do animation.

However a simple command like
Code: [Select]
(vl-cmdf "_AUTO" "_OFF")
prevents it from growing.

Been like that for as long as I can remember. (And that's a long way!)

ymg

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Fonts for grvecs
« Reply #22 on: May 14, 2014, 01:06:16 AM »
AlanJT,

That Undo file certainly grow in the case of such a program
where you keep drawing and erasing to do animation.

However a simple command like
Code: [Select]
(vl-cmdf "_AUTO" "_OFF")
prevents it from growing.

Been like that for as long as I can remember. (And that's a long way!)

ymg

I assume you mean
Code: [Select]
(vl-cmdf "_UNDO" "_AUTO" "_OFF")
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.

ymg

  • Guest
Re: Fonts for grvecs
« Reply #23 on: May 14, 2014, 11:26:49 AM »
Quote
I assume you mean
Code: [Select]
(vl-cmdf "_UNDO" "_AUTO" "_OFF")

Indeed!  :embarrassed:

Sorry! about that.

ymg

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Fonts for grvecs
« Reply #24 on: May 14, 2014, 02:20:09 PM »
Interesting. Is there an adverse effect to turning off auto all the time?

Keep in mind, I've not experienced undo issues, nor do I create/erase objects for animation.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Fonts for grvecs
« Reply #25 on: May 14, 2014, 02:24:47 PM »
Execution speed, especially when batch processing dwgs in the thousands may upset peers that prefer to do things the hard (manual) way.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Fonts for grvecs
« Reply #26 on: May 14, 2014, 02:38:43 PM »
Execution speed, especially when batch processing dwgs in the thousands may upset peers that prefer to do things the hard (manual) way.
Then I should be worried.  :lol:
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Fonts for grvecs
« Reply #27 on: May 14, 2014, 02:44:48 PM »
My favorite setting:

(vl-cmdf "_undo" "_control" "_none")

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

ymg

  • Guest
Re: Fonts for grvecs
« Reply #28 on: May 14, 2014, 04:04:28 PM »
Quote
Interesting. Is there an adverse effect to turning off auto all the time?

I normally turn it back on on completion of the routine
in the Error Handler, in order to catch the "Escape" artist.

But I certainly like having undo available specially when
testing routines.

ymg

chlh_jd

  • Guest
Re: Fonts for grvecs
« Reply #29 on: May 25, 2014, 08:21:02 AM »
Hey People...
Short time ago I wrote a python-script to extract information out of a .pt3 (Font) to generate a lisp-function wich calculates the vertices of a text for the use with grvecs...

curves in the original font are ignored.

Wanna share some Fonts, and if somebody wants, the python-script...

greets
reltro
Great works !
dose these font-vectors maked by some tools ,which has a function tanslate shape into vectors ?