MoI discussion forum
MoI discussion forum

Full Version: V4 beta Oct-27-2020 available now

Show messages:  1-4  5-24  25-44  45-64  65-84  85-104  105-124  125-144  145-158

From: fcwilt
30 Oct 2020   [#65] In reply to [#54]
Hi,

Sorry my bad.

The taskbar shortcut I was using was still invoking the previous beta release.

The current release no longer marks the file as changed on export of STL.

Thanks for fixing that.

Frederick
From: Mik (MIKULAS)
30 Oct 2020   [#66] In reply to [#63]
Hi Michael,

concept which I mean is based on Make2D4Views script, which generate 4 views (according viewports views I have set) like most technical drawings, pls see here https://i.stack.imgur.com/xwJwc.jpg or here https://en.wikipedia.org/wiki/Engineering_drawing#Line_styles_and_types

This script is perfect, but doesn't offer so many PDF export settings, like in case of solid/surface model, where I can change line styles, hidden lines are automaticly in dashed line style, shaded backround makes drawing more cool if it's necessary.

Therefore I copied and rotated model manually to achieve same arrangement like in case of Make2D4Views script, pls see enclosed.

Re:
>I was thinking something more like in the PDF export dialog there would be a setting for doing 4 views, and also an option for a title block template which could be a separate 3DM file that you had prepared which would get merged into the PDF output. Maybe there's a named rectangle in the title block template file and the exporter fills in that area with that view.

It would be great! Do you mean that final 3DM will contain merged objects in 4 views + block template and then we can start with dimensionsioning or exporter will generate PDF with 4 views + block template, then we import PDF into MOI and start dimensionsioning?

Re:
>Maybe the other piece needed would be a property on dimensions to say whether they display in all views, ortho views only, or 3D view only... ?

Yes, it woud be fine.

Mik

Attachments:
Dim Test.zip


From: Michael Gibson
30 Oct 2020   [#67] In reply to [#64]
Hi Pilou, for moving the text you can do that with a regular dimension by selecting it and turning on edit points using Edit > Show pts. There will be a point on the text which you can drag to reposition it. The dimension text will also automatically rotate itself to be legible in any view of it so you don't need to manually rotate it.

> PS Seems there is something wrong somewhere : I don't success to re import in the same Size / View / Position
> else dimensions, arrows and lines themselves are good! (except of course surfaces as you said above:)

Well the PDF/AI file only has 2D coordinates so when you read it back in it's going to be on the x/y "Top" plane.

For your case there you could do it like this:

Select dimension, export to PDF format using "Projection view: Right", "Scale: Preserve units", 1 units in MoI = 1 cm on page, and "Center on page" off.

Next run File > Import, pick your PDF file, then run Transform > Orient > View to view and click once in the Top view and then next in the Right view to reposition the dim back to the Front view.

- Michael
From: Frenchy Pilou (PILOU)
30 Oct 2020   [#68] In reply to [#67]
<< for moving the text...

yes but the " text number " stays at the same place between arrows (who move too) !
It's not free itself till i Export / Import PDF ;)

<< Export / Import PDF - AI

Tricky & a little cerebral but Excellent!!!

THX for all!
From: Michael Gibson
30 Oct 2020   [#69] In reply to [#68]
Hi Pilou,

re:
> yes but the " text number " stays at the same place between arrows (who move too) !
> It's not free itself till i Export / Import PDF ;)

That will happen if you drag the points at the ends of the arrow line.

If you drag the point that is on the text you can move the text freely independent from the arrow line, here is an example:



- Michael
From: Frenchy Pilou (PILOU)
30 Oct 2020   [#70] In reply to [#69]
Indeed! Very cool! I have picked the bad point! 1/3 :)

Else for the other one Export / Import (i have artificially lower position original for better see )
all works fine except
a little problem of text size... i have followed your info above but...(a bug or a bad options from my part?)
seems very small against the original! All was made in the same session!
I have Cm as Unities system enabled before draw something
not visible here because I have not add it after the <> in the Details' box


From: Michael Gibson
30 Oct 2020   [#71] In reply to [#70]
Hi Pilou, yes for text size to be preserved in this case you would need to set the option for "Scaling: By model units" on the dimension's properties.

- Michael
From: Michael Gibson
30 Oct 2020   [#72] In reply to [#66]
Hi Mik,

re:
> It would be great! Do you mean that final 3DM will contain merged objects in 4 views + block
> template and then we can start with dimensionsioning or exporter will generate PDF with 4
> views + block template, then we import PDF into MOI and start dimensionsioning?

So I mean more like this - you have your model you've made in one file, and a title block template set up in a separate file. Now go ahead and add in dimensions on your model. Then you export to PDF and there is an option for the view configuration. It would have options for "Top", "Front", "Right", "3D" (all single view drawings as it is now), "4 views", or "Use title block template".

If you set "Use title block template", it would compose the PDF by pulling in your title block template file and looking through it for any rectangles that have been given an object name of "Top", "Front", "Right", or "3D" and when it finds those it will generate that view and put it inside there.

- Michael
From: Frenchy Pilou (PILOU)
30 Oct 2020   [#73] In reply to [#71]
Ok this time all works fine! And all is editable! ;)


From: pafurijaz
30 Oct 2020   [#74]
Great update, I love it now the overlapping vertex with imported obj for subDiv don't make crashes..
From: Larry Fahnoe (FAHNOE)
31 Oct 2020   [#75] In reply to [#72]
Hi Michael,

> So I mean more like this - you have your model you've made in one file, and a title block
> template set up in a separate file. Now go ahead and add in dimensions on your model.
> Then you export to PDF and there is an option for the view configuration. It would have
> options for "Top", "Front", "Right", "3D" (all single view drawings as it is now), "4 views",
> or "Use title block template".

> If you set "Use title block template", it would compose the PDF by pulling in your title block
> template file and looking through it for any rectangles that have been given an object name
> of "Top", "Front", "Right", or "3D" and when it finds those it will generate that view and put
> it inside there.

This will be a wonderful feature addition! As Santa Claus, you're making a lot of work for yourself & like ungrateful children, the present (v4) is barely opened and we're already looking forward to the next one (v5)!!! ;-}

--Larry
From: Larry Fahnoe (FAHNOE)
31 Oct 2020   [#76]
I was playing with dimensions and encountered a problem dimensioning the radius of the edge of a solid.

Steps I took:
1) Draw solid box
2) Draw solid sphere overlapping box
3) Boolean Diff, with sphere as cutting object
4) DimRadius one of the arc edges that the sphere cut

DimRadius command runs but doesn't display an arrow or center point. Clicking on Arrow location and Text location doesn't produce a radius dimension.

Thinking it was due to this being an edge, I selected the edge and copy/paste to create a curve and then tried DimRadius the curve, same results. Am I doing something wrong, or have I stumbled upon a bug? Model attached.

--Larry

Attachments:
Arc dim problem.3dm


From: bemfarmer
31 Oct 2020   [#77] In reply to [#76]
I would say that neither the edge curve, nor the curve from copying the edge curve, are being recognized as a circular arc.

A new arc draw over top of the edge is recognized as a curcular arc, and the dim arc works fine.

Cannot remember all of the new curve methods...is a line, is an arc (?), is open, is closed, etc... to see how the curve is ID'd.
How does MoI know if a curve is an arc?

- Brian
From: nameless
31 Oct 2020   [#78]
Hey Michael, thank you for the awesome additions! Also, congrats on a squeaky-clean to-do list! This must be a rare state for you :))

moi.ui.getLastOrientationPickerFrame() <- Is this what I think it is? *rubs eyes with excitement*

Can't wait to try this version out. Much love!
From: Larry Fahnoe (FAHNOE)
31 Oct 2020   [#79] In reply to [#77]
Hi Brian,

Indeed, neither the edge nor curve that resulted from copy/paste of the edge are arcs:

The edge's Details are: Open edge, Joined, Planar

The pasted curve's details are: Open curve, Planar, 1 segment

And a real arc's details are: Open curve, Arc, Planar, 1 segment

From the API perspective I believe the relevant properties are isCircle and isArc.

Odd though that a boolean diff with a sphere as cutting object wouldn't have left an arc behind but I suppose it depends upon the object being cut.

> How does MoI know if a curve is an arc?

It's Halloween, so it must just be magic... ;-}

--Larry
From: bemfarmer
31 Oct 2020   [#80] In reply to [#79]
:-)
Awaiting Michaels response.

- Brian
From: Michael Gibson
31 Oct 2020   [#81] In reply to [#76]
Hi Larry, yes that's not really a bug in the dimensions, it's like Brian writes above that the edges are not being recognized as arcs.

Currently MoI looks at a curve and in order to be recognized as an arc it must have the same curvature (within a very tight tolerance of 0.0000000001 units) at 10 points sampled along it.

Meanwhile the result of the boolean is calculated at an intersection tolerance of 0.001 units. So this mismatch between the "is it an arc" tolerance and the "surface/surface intersection tolerance" is one problem.

But also there is a mechanism that does special case intersections between analytic shapes to get higher precision. However, I have disabled the sphere/plane analytic intersector back a long time ago though because of some bugs in it.

It's pretty risky to modify either the tolerance or the surface/surface intersector right at the end of the beta cycle, so this is something that I can look at fixing in v5 once that is underway.

- Michael
From: Michael Gibson
31 Oct 2020   [#82] In reply to [#78]
Hi nameless,

re:
> moi.ui.getLastOrientationPickerFrame() <- Is this what I think it is? *rubs eyes with excitement*

Yes, this is the piece that should make it possible to make a plugin that does scaling after positioning an imported object. I'll see if I can set it up.

- Michael
From: bemfarmer
31 Oct 2020   [#83] In reply to [#81]
Just a thought, maybe off-base and not important:
To assist in the dimensioning of curves that look like arcs, but are out of current MoI tolerance testing range,
a small user ran script might be able to test a single arc-like curve, for planarity and arc-ness, with a broader tolerance,
and respond with a radius value, or "not an arc" message? User could add a regular leader with ØR...

https://wiki.mcneel.com/developer/sdksamples/classifycurve

- Brian
From: Michael Gibson
31 Oct 2020   [#84] In reply to [#76]
re: Box / Sphere boolean dimensioning - well analytic intersections are active for plane/plane, plane/cone, plane/cylinder, and plane/torus but not plane/sphere. I seem to remember the problem was that it didn't handle a partial sphere surface instead of a full sphere.

I can dig into it more in v5.

- Michael

Show messages:  1-4  5-24  25-44  45-64  65-84  85-104  105-124  125-144  145-158