• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

macro dftsnapview - aligns balls on a grid

  • Thread starter Thread starter vespa_83
  • Start date Start date

vespa_83

Guest
for the ordered drawing maniacs here is the macro that
move views and balls on a grid of 2 mm.

result: the balls almost in a row align, the most shocked are shaken by 2 mm (i.e. more clearly)

use: launches .bat file
advice: I usually at the time of inserting the balls:
1. launch the macro to make the snap of the views,
2. active grid 40mm/10division = 4 mm,
3. I insert the balls and they come well,
4. happens to move the balls by hand or the view, so
5. towards the end launch the macro and control for good results.
even on very dense designs so far I had no inconvenience.

technology: powered by
lua-64x64.png
moon moon - a script language, very flexible and simple. I prefer script languages, do not need compilation, just open them with notespad.
vbscript and surrogated in this case do not work: functions such as .getorigin(x, y) require parameters within brackets, the error "non-compliant type" is returned, but in vbscript it is not possible to define the type of data and with x = cdbl(1) conversions does not work the same.
on request I can post the code in vba to easily upload it to vb6 or convert it to vb.net
 

Attachments

  • dftSnapView.zip
    dftSnapView.zip
    159 KB · Views: 36
  • dftSnapView, preview.webp
    dftSnapView, preview.webp
    45.8 KB · Views: 48
Can you set the programming grid or do it by hand?
I ask why bees to set the grid seem not to work. . or at least I can't get any results.

Hi.
 
Can you set the programming grid or do it by hand?
I ask why bees to set the grid seem not to work. . or at least I can't get any results.

Hi.
I put it by hand. with the old versions (before the new toolbars then < st1) I set ctrl+g to activate/disable the grid, then I noticed that they did not get the same results and I stopped, maybe they changed something then? boh.
 
Noo. with the st5 this macro no longer works well. you move the views but not the balls. Very strange. .
 
I would like to ask you some advice on how to proceed with the report:
There is a bug in the st5 bees: if I move the position of a ball (last vertex) via macro with setvertex(), on the draft the position does not change even if with getvertex() it seems to have assumed the new position set.

is it better to report via the dealer, on the American forum or other?
 
I would like to ask you some advice on how to proceed with the report:
There is a bug in the st5 bees: if I move the position of a ball (last vertex) via macro with setvertex(), on the draft the position does not change even if with getvertex() it seems to have assumed the new position set.

is it better to report via the dealer, on the American forum or other?
by experience: report to the dealer, better if I send him a small testcase and code lines to show the bug. Better if you attach the text in English where you explain what the problem is.

once you have the number of public ir on the American forum the problem.

Hi.
 
good of boys
I've been writing xkè for a long time.
now we have gone to st4 I would like to know if the macro acts x st4
and the correct procedure x install bees since I find three files
I'm sorry if I ask lumi but I'm a little ignorant about it! ! ! !
thanks in advance
 
Immagine.webpIf it's like this, it's okay.
launches a bat opening a dos window also called console.
is executed lua.exe with the script "dftsnapview.lua" (they have to reside all on the same folder, I think not network).

the balls inserted by the st5 version give some problem as written above.
 
thanks to nuvo vespa unique inconvenient and that the dos session does not cover the pallini already present today however I do tests and I let you know
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top