Hi Christian,
I used Solidworks '98. In the future, I’ll probably use Solid Edge or
Autocad because the department I’m in has newer versions available for
use. I won’t be creating extensive models, but I wanted to make sure
I understood the STL importing process.
Brent
— In anyscript@yahoogroups.com, Christian Gammelgaard <cgol03@…>
wrote:
>
> Hi Brent
>
> You are welcome. Which CAD program are you using?
>
> Regards Christian
>
> blulrey skrev:
> >
> > I figured out that the origin was moved by the CAD program when
> > exporting the STL such that all values were positive. I corrected
> > that, and now it is importing as expected.
> >
> > Thank you,
> > Brent
> >
> > — In anyscript@yahoogroups.com
<mailto:anyscript%40yahoogroups.com>,
> > “cgol03” <cgammel@> wrote:
> > >
> > > Hi
> > >
> > > Yes… just loaded the cube into Rhino, and the origin is
located in a
> > > corner of the cube.
> > >
> > > Regards Christian
> > >
> > > — In anyscript@yahoogroups.com
> > <mailto:anyscript%40yahoogroups.com>, “AnyBody Support” <support@>
wrote:
> > > >
> > > > Brent,
> > > >
> > > > Yes - exactly.
> > > > Well I can understand your confusion due to the name ‘GlobalRef’,
> > > > but the name could have been anything, which might have made it
> > > > clearer.
> > > >
> > > > I too do not know why it is displaced the 0.1 meter in the
model you
> > > > speak of.
> > > >
> > > > About the Cube.stl: I do not think it has a local frame in the
> > > > center of the cube. I looked in the file and all vertices have
> > > > positive or zero coordinates in all directions, as far as I
can see.
> > > > This indicates that the local system is indeed locaed in a corner.
> > > > Was it different in the CAD system where you created it?
> > > >
> > > >
> > > > Michael
> > > > AnyBody Support
> > > >
> > > >
> > > > — In anyscript@yahoogroups.com
> > <mailto:anyscript%40yahoogroups.com>, “blulrey” <blulrey@> wrote:
> > > > >
> > > > > Michael,
> > > > > I see now that the GlobalRef.Origin is different than the global
> > > > > origin. My first thought was that the definition of GlobalRef
> > > > would
> > > > > define an origin for all other reference frames. From what you
> > > > said,
> > > > > there is a fixed global origin at {0,0,0} and
GlobalRef.Origin is a
> > > > > reference frame, like any other defined reference frame.
> > > > >
> > > > > Brent
> > > > >
> > > > > — In anyscript@yahoogroups.com
> > <mailto:anyscript%40yahoogroups.com>, “AnyBody Support” <support@>
> > > > wrote:
> > > > > >
> > > > > > Hi Brent,
> > > > > >
> > > > > > I see you confusion now. It is not what Christian speaks
of that
> > > > > > tricks you (though he is right of course). What happens in
your
> > > > case
> > > > > > is the following:
> > > > > >
> > > > > > You define GloablRef at (0,0.1,0). Then you make a node
with the
> > > > > > relative displacement (sRel) of zero in all direction. This
> > > > implies
> > > > > > of course that the node is place on top of GlobalRef.
> > > > > >
> > > > > > Then you make a segment (AnySeg) called Box. A segment is
also a
> > > > > > reference frame but a movable one and therefore you can
give it
> > > > a
> > > > > > position, but this is just an initial position. The initial
> > > > position
> > > > > > you set equal to sRel (which is the zero vector) and therefore
> > > > the
> > > > > > segment is (initially) positioned at the global origin
(not the
> > > > > > origin of GlobalRef).
> > > > > >
> > > > > > You can put (declare) your stl geometry in BoxPnt itself. Then
> > > > you
> > > > > > will get what you want, I believe.
> > > > > >
> > > > > > Alternatively (not what you want in this case but just to
> > > > explain),
> > > > > > you can make kinematic constraints on the motion of the
segment
> > > > > > called Box that state that it must be fixed to the BoxPnt.
Then
> > > > when
> > > > > > you run the kinematic analysis, the segment will be moved away
> > > > from
> > > > > > its initial position to the correct position (specified by the
> > > > > > constraints).
> > > > > >
> > > > > > I hope this clear the matter a bit.
> > > > > >
> > > > > > Best regards,
> > > > > >
> > > > > > Michael
> > > > > > Anybody Support
> > > > > >
> > > > > > — In anyscript@yahoogroups.com
> > <mailto:anyscript%40yahoogroups.com>, “blulrey” <blulrey@> wrote:
> > > > > > >
> > > > > > > Michael,
> > > > > > > I attempted to put a ref node at the point I wanted to
import
> > > > a
> > > > > > cube
> > > > > > > (BoxPnt). The cube is 1 meter square, and AnyBody loads
it at
> > > > a
> > > > > > > corner of the cube.
> > > > > > >
> > > > > > > AnyFixedRefFrame GlobalRef = {
> > > > > > > Origin ={0.0,0.1,0.0};
> > > > > > > #include “drawcoorsystem.any”
> > > > > > >
> > > > > > > AnyRefNode BoxPnt = {
> > > > > > > sRel = {0.0, 0.0, 0.0};
> > > > > > > AnyDrawNode drw = {};
> > > > > > > };
> > > > > > >
> > > > > > > };//GlobalRef
> > > > > > >
> > > > > > > AnySeg Box = {
> > > > > > > AnyVar Length = 0.3048; //meters
> > > > > > > AnyVar Width = 0.3048;
> > > > > > > AnyVar Height = 0.3048;
> > > > > > > Mass = 4.5359237; // kilograms
> > > > > > > Jii = {1, 1, 1}; // dummy values
> > > > > > >
> > > > > > > r0 = .GlobalRef.BoxPnt.sRel;
> > > > > > >
> > > > > > > AnyDrawSurf Cube = {
> > > > > > > FileName = “Cube”; //Cube.anysurf in Yahoo group files
> > > > > > > Transparency = 0.5;
> > > > > > > ScaleXYZ = {.Width,.Height,.Length};
> > > > > > > };
> > > > > > > };
> > > > > > >
> > > > > > > The Cube is imported to {0,0,0} because that is the value of
> > > > > > > .GlobalRef.BoxPnt.sRel I thought that it would load the Cube
> > > > at
> > > > > > the
> > > > > > > actual location of .GlobalRef.BoxPnt.sRel, which in this
case
> > > > is
> > > > > > > {0,0.1,0}. Perhaps I do not understand how the GlobalRef
> > > > Origin
> > > > > > > works. It makes sense that the definition of the GlobalRef
> > > > Origin
> > > > > > > would define the axes for all other points.
> > > > > > >
> > > > > > > My other question was: Why is the GlobalRef origin for the
> > > > > > > StandingModel at {0,0.1,0}? It seems that a global origin
> > > > should
> > > > > > be
> > > > > > > at {0,0,0}.
> > > > > > >
> > > > > > > Thank you,
> > > > > > > Brent
> > > > > > >
> > > > > > > — In anyscript@yahoogroups.com
> > <mailto:anyscript%40yahoogroups.com>, “AnyBody Support” <support@>
> > > > > > wrote:
> > > > > > > >
> > > > > > > > Hi Brent,
> > > > > > > >
> > > > > > > > Here by me it is working fine, I think. I think I may have
> > > > > > > > misunderstood exactly what you did.
> > > > > > > >
> > > > > > > > I have tried something like this:
> > > > > > > >
> > > > > > > > // Global Reference Frame
> > > > > > > > AnyFixedRefFrame GlobalRef = {
> > > > > > > >
> > > > > > > > Origin = {0,0,1};
> > > > > > > > //AnyDrawRefFrame drw = {};
> > > > > > > >
> > > > > > > > AnyRefNode node = {
> > > > > > > >
> > > > > > > > AnyDrawRefFrame drw = { RGB = {1,0,0}; };
> > > > > > > > AnyDrawSurf drw_stl = {
> > > > > > > > FileName = “crank.anysurf”;
> > > > > > > > };
> > > > > > > >
> > > > > > > > };
> > > > > > > >
> > > > > > > > }; // Global reference frame
> > > > > > > >
> > > > > > > >
> > > > > > > > This draws a red reference frame in the ‘node’
> > > > of ‘GlobalRef’,
> > > > > > which
> > > > > > > > is placed in point (0,0,1) according to ‘Origin’
> > > > in ‘GlobalRef’.
> > > > > > > > The AnyDrawSurf is placed here too, I am sure.
> > > > > > > >
> > > > > > > > Adding
> > > > > > > > AnyFixedRefFrame GlobalRef1 = {
> > > > > > > > AnyDrawRefFrame drw = {};
> > > > > > > > };
> > > > > > > > you will get a yellow reference at the global origin
(0,0,0)
> > > > for
> > > > > > > > comparison.
> > > > > > > >
> > > > > > > > If you still think thee is something fishy, could you
please
> > > > > > upload
> > > > > > > > the files with your example and I shall have a look.
> > > > > > > >
> > > > > > > > Best regards,
> > > > > > > >
> > > > > > > > Michael
> > > > > > > > AnyBody Support
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > — In anyscript@yahoogroups.com
> > <mailto:anyscript%40yahoogroups.com>, “blulrey” <blulrey@> wrote:
> > > > > > > > >
> > > > > > > > > Hello,
> > > > > > > > > In the StandingModel, why is the Origin of the GlobalRef
> > > > {0,
> > > > > > 0.1, 0}?
> > > > > > > > > I am loading a cube stl and using a reference node at
> > > > {0,0,0}
> > > > > > in the
> > > > > > > > > GlobalRef folder. The reference node is placed correctly
> > > > on
> > > > > > the
> > > > > > > > > displayed global reference frame, however when the
stl is
> > > > > > loaded at
> > > > > > > > > {0, 0, 0}, it is 0.1 below the Origin. If the GlobalRef
> > > > > > Origin is
> > > > > > > > > changed to {0, 0, 0} everything lines up.
> > > > > > > > >
> > > > > > > > > It seems that when loading an stl, AnyBody is always
using
> > > > an
> > > > > > Origin
> > > > > > > > > of {0,0,0} and not the value set in the GlobalRef
folder.
> > > > > > > > >
> > > > > > > > > Brent
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
>