Automatic dimension detection future request maybe?
All  1-3  4-16

Previous
Next
 From:  Barry-H
11751.4 In reply to 11751.2 
Hi Michael,
just tried Auto dimension script and got this error.
TypeError: undefined is not a constructor (evaluating 'moi.geometryDatabase.addConstructionLine( begin, end )')

DimAuto.js line 95

91: }
92:
93: function CreateCLine( begin, end )
94: {
95: >> var cline = moi.geometryDatabase.addConstructionLine( begin, end );
96: cline.setHitTest( false );
97:
98: return cline;
99: }

Also cant this function be achieved with the standard Aligned dimension tool anyway ?
Cheers
Barry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Grendel
11751.5 
Same here
Image Attachments:
Size: 47.1 KB, Downloaded: 13 times, Dimensions: 803x401px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  大道刀 (SUIYAN)
11751.6 In reply to 11751.2 
HI Michael
我建议这个脚本包含除了引线、文字之外的所有测量标注形式,至于使用哪种可以使用按钮(I suggest that this script include all measurement and annotation forms except for leaders and text. As for which one to use and which button to use)


Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
11751.7 
Thanks Michael.
Works efficient as usual.

One more question to speed my workflow.

How do I setup when I start a new drawing either in mm, cm , inch etc

so I can predefine the grid for each type of measurements?

Let say if it is in mm ...the grid is set at 1
if it is in cm the grid is set at 0.5

so every time I start Moi all is set.

Tnx!

EDITED: 29 May by MATADEM

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11751.8 In reply to 11751.4 
Hi Barry & Grendel,

re:
> just tried Auto dimension script and got this error.
> TypeError: undefined is not a constructor (evaluating 'moi.geometryDatabase.addConstructionLine( begin, end )')

The script is using a new function in MoI version 5, you'll get this error if you are running it in v4 or earlier.

I'll update it to show a warning message and bail out if you're running it with v4.


> Also cant this function be achieved with the standard Aligned dimension tool anyway ?

Yes that's correct, this version is just a convenience function that determines whether to make it horizontal, vertical, or aligned by the location of the 3rd point pick instead of determining it by launching different "dim horizontal", "dim vertical" or "dim aligned" commands.

If you are placing a whole bunch of them it can speed things up since you can repeat this one command and control it by the 3rd pick.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11751.9 In reply to 11751.6 
Hi SUIYAN,

re:
>(I suggest that this script include all measurement and annotation forms except
> for leaders and text. As for which one to use and which button to use)

The main purpose of this script is to avoid needing to specify what type to use and instead figuring it out automatically based on the position of the pick.

So it doesn't really fit with it to have type buttons inside of the "auto" command like that.

There are already different buttons for individual types in the main UI "Dim" palette.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pressure (PEER)
11751.10 In reply to 11751.2 
Very nice!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
11751.11 
French version done! )
In fact nothing to do, was yet there! :)
he new DimAuto uses the same UI as the DimHorizontal, DimVertical and DimAligned so it uses those already translated strings. :)
---
Pilou
Is beautiful that please without concept!
My Moi French Site
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11751.12 In reply to 11751.7 
Hi Matadem,

re:
> How do I setup when I start a new drawing either in mm, cm , inch etc
>
> so I can predefine the grid for each type of measurements?

Currently grid properties are global. There isn't anything built in for storing them in a template file but you could set up a script to help with that.


> Let say if it is in mm ...the grid is set at 1
> if it is in cm the grid is set at 0.5

A script that would set this goes like this:

script: if ( moi.geometryDatabase.units == 'Millimeters' ) { moi.grid.size = moi.grid.snapSize = 1.0; } else if ( moi.geometryDatabase.units == 'Centimeters' ) { moi.grid.size = moi.grid.snapSize = 0.5; }

Or another possible way is you could set some values in document user text under File > Notes > Document user text and then the script could look there to get the size to set. Let me know if you want to try that way.

You can open a file as a template file by using right click on the File > Open instead of left click.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
11751.13 In reply to 11751.12 
Good day...the second option looks like a better choice.
Question on the second choice...as soon as Moi starts it automatically look for the script or I need to activate it?

More automatic as possible would be great.

Tnx!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11751.14 In reply to 11751.13 
Hi Matadem,

re:
> Question on the second choice...as soon as Moi starts it automatically look for the script or I need to activate it?

If you're always starting up a new window for this then it should be possible to have the script automatically run by putting it in the appdata\startup folder.

If you want it to work on an already open window you would need to trigger it yourself.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mk (MARKY)
11751.15 In reply to 11751.2 
Hi Michael,

Works like a charm.

Thank you,
Marek
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Frenchy Pilou (PILOU)
11751.16 
on inclined plane! :)

---
Pilou
Is beautiful that please without concept!
My Moi French Site
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-3  4-16