Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline tedd  
#1 Posted : 22 August 2013 03:24:41(UTC)
tedd

Rank: Newbie

Groups: Registered
Joined: 28/01/2012(UTC)
Posts: 9
Location: Canada

I'm attempting to use the same set of parameters in sMath calculations as I use in Autodesk Inventor CAD files. Inventor requires the parameters to be recorded in either a .xls or a .xlsx file. The method I've settled on is to create the parameter sheet in Excel in the format that Inventor requires, and then importData into sMath. The problem is the units. Inventor requires a rigid spreadsheet format: parameter_name, value, unit, and the units must be in plain text (mm, m/s, etc.)

So I can import the parameters into sMath as an nx3 matrix, and I can see what the unit for each parameter is meant to be ("mm", "m/s", etc.). But how do I assign that unit to the parameter?

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 22 August 2013 04:05:49(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
You can try with a loop in the matrix where you multiply the 2nd row value with the 3rd row value using the attached function

That's a naive solution, so if you have something like 1/s replace it with Hz or s^-1 (if possible).


regards,

Davide

Edited by user 22 August 2013 04:14:13(UTC)  | Reason: Not specified

File Attachment(s):
UnitFromPlain.sm (5kb) downloaded 22 time(s).
Davide Carpi attached the following image(s):
2013-08-22 03_07_07-SMath Studio Desktop - [UnitFromPlain.sm].png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline tedd  
#3 Posted : 22 August 2013 19:46:57(UTC)
tedd

Rank: Newbie

Groups: Registered
Joined: 28/01/2012(UTC)
Posts: 9
Location: Canada

Davide:

Thanks, that works great!

Perhaps the next step, for me, is to figure out how to turn that into a plugin. The company I work for is standardizing on sMath for engineering calculations, and I would like all our engineers to share parameter files between sMath and the CAD system, but most of the other engineers will only adopt it if I make it user friendly.

Tedd
Offline mkraska  
#4 Posted : 22 August 2013 20:07:54(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
Originally Posted by: tedd Go to Quoted Post

Perhaps the next step, for me, is to figure out how to turn that into a plugin. The company I work for is standardizing on sMath for engineering calculations, and I would like all our engineers to share parameter files between sMath and the CAD system, but most of the other engineers will only adopt it if I make it user friendly.

Tedd

May be you want to have a look at the SMath viewer.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 22/08/2013(UTC)
Offline Davide Carpi  
#5 Posted : 23 August 2013 00:05:40(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
Originally Posted by: mkraska Go to Quoted Post
May be you want to have a look at the SMath viewer.


that's a very good idea Good
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline tedd  
#6 Posted : 23 August 2013 01:10:30(UTC)
tedd

Rank: Newbie

Groups: Registered
Joined: 28/01/2012(UTC)
Posts: 9
Location: Canada

Martin:

Thank you, that is a great idea. I did not know about the viewer.

Even if I decide not to use it for this particular thing, I'm sure I will want to use it for other things.

Tedd
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.