Re: Importing MetaMesh Data

Apr 11, 2004 1 Replies

Can anyone give any info on how to move or rotate a part in an assembly with three data points using API?



I have the deltaX, deltaY, and deltaZ to move a part in an assembly.



I also have the part selected via "Part.Extension.SelectByID".



Is there a command like "move.part(deltaX,DeltaY,DeltaZ)" that I'm just plain missing in the Help files?



I also need to be able to do the same thing for rotating.



Thanks, George



I've looked into a bit deeper. I was sent a sample output file and it isn't
> just points.
> There are sections that define a polygon and it's extrusion or revolution.
> There are also
> sections that define transitions, which I'm still trying to figure out. >
> George
>
> >
> > Looks like meta mesh files are just the spatial coordinates of nodes. > Taken
> > literally, all you would end up with is a cloud of points in anything > other
> > than the native system. This type of data is pretty much usless in a > system
> > like SW.
> >
> > Regards
> >
> > Mark
> >
> >
> >
> >
> >
> > > I was wondering if anyone here has had any eperience importing
> > > data from MetaMesh into SolidWorks?
> > >
> > >
> >
> >
>
>

I'm slowly plugging along on this program. I can now get the mathvectors "Call xform.GetData(x, y, z, p, s)", but I'm at a loss as to how to take an angle (an integer) and turn it into a mathvector. I have three integers, one for rotation around each of the three axis. Could you possibly point me in the right direction?

Once I figure that out, "Call xform.SetData(x, y, z, p, s) Component.Transform = xform"

I believe will rotate my part for me

TIA

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required