User defined coordinate system

User defined coordinate system

bravaiser
Enthusiast Enthusiast
953 Views
4 Replies
Message 1 of 5

User defined coordinate system

bravaiser
Enthusiast
Enthusiast

I am hours new with Fusion, but I have some experience with Inventor. There, I was able to create a patterning tool for use on free-form surfaces. I would love to translate my code into Fusion, but I need calls to the engine similar to the ones in Inventor:

 

 

  UserCoordinateSystemDefinition oUCSDef = oCompDef.UserCoordinateSystems.CreateDefinition();

  UserCoordinateSystem oUCS = default(UserCoordinateSystem);

 

I looked through the help files but I do not see any object like oUCS, would you please give me a hand?

thank you 

 

Here an image of what my code can do.

0 Likes
954 Views
4 Replies
Replies (4)
Message 2 of 5

ekinsb
Alumni
Alumni

That looks very cool.

 

Fusion doesn't have something called a "User defined coordinate system" but I think you might be able to use something else to get the same result.

 

In Inventor, a "User defined coordinate system" is really just a work points, three work planes, and three work axes that are grouped together and named.  You can then subsequently use those work features for other creation.

 

In Fusion you can create a new component and then using the Move command you can reposition the occurrence that reference that component anywhere in space.  You can get the transform of the occurrence in sapce.  You'll also see in the browser that the component has the same kinds of geometry associated with it; point, planes, and axes.  You can use reference this construction geometry when building other geometry.

 

-Brian


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 5

bravaiser
Enthusiast
Enthusiast

I love reading your blog (Mod the Machine), thank you for the information you put out there. Without your sharing, my project would have taken even longer, and thanks for your time writing this response. 

I am planning on going to the Fusion Conference next month, maybe I get to meet you. 

Thank you for the rapid response, do you have an example of using the transform, is that part of the API? How can I access it? Is it possible to use the same idea in Inventor? 

One of my problems the time Inventor takes to create the features, past a certain number (in the hundreds usually) Inventor takes hours to create a model.

thank you again

0 Likes
Message 4 of 5

ekinsb
Alumni
Alumni

I'm glad you've found some of what I've written useful.  I will be at the Forge conference so we do need to connect.

 

You can do something similar with Inventor.  You can place a part into the assembly and use the position of that part in place of the UCS.  I don't know how you're using the UCS so it's difficult to say for sure if you can do everything you need using a component instead of a UCS.  In both Inventor and Fusion, there is a Transformation property that returns the tranform matrix that defines the position of the occurrence in space.

 

I believe you about the compute time.  It would be good to look at in more detail to see if there are any other approaches that might be faster.  Again, maybe we can spend some time at the Forge conference.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 5 of 5

bravaiser
Enthusiast
Enthusiast

 

Yes, hopefully, you have some time during the conference to discuss more in detail.

 

thanks 

 

 

0 Likes