vbs script - fiber orientation calculation (3D) model

vbs script - fiber orientation calculation (3D) model

Anonymous
Not applicable
1,454 Views
4 Replies
Message 1 of 5

vbs script - fiber orientation calculation (3D) model

Anonymous
Not applicable

Hello everyone,

 

I want to automatic change the fiber orientation calculation (3D) model (select Material >> Details >> Filler/Fiber) and specify the settings of the model with part of a vbs script, used in a python script.

My Problem is, that the Moldflow Insight macro tool didn't collect the Informations for vbs during the manual variation of the model and it's properties.

The synergy API reference didn't helped me either, but that could be my fault.

Changing the settings outside of moldflow in a copied .udb file could be an alternative, but i failed by reading the .udb file...

 

Maybe someone has got any suggestions, that would be nice.

 

Thanks very much.

 

 Ps.: using Moldflow Insight 2018.1

 

0 Likes
Accepted solutions (1)
1,455 Views
4 Replies
Replies (4)
Message 2 of 5

bernor_mf
Advisor
Advisor

Hi,

could you try via Process Settings wizard?

(Or maybe you already did...?)

 

It normally collect the settings and property codes.

 

  1. When active study: Start recording
  2. Enter Process Settings
  3. Advanced Options...
  4. Molding Material: click Edit...
  5. Select tab Filler and change properties.
  6. Exit with OK
  7. Stop Recording

 

Edit .vbs-file to review code

 

Hope this helps.

Regards,

Berndt

 

 

In below example I changed E-modulus, 1st and 2nd of Filler from 72.000 to 80.000.

 

 

Synergy.SetUnits "Metric"
Set PropEd = Synergy.PropertyEditor()
Set Prop = PropEd.FindProperty(21000, 2)
Set DVec = Synergy.CreateDoubleArray()
DVec.AddDouble 40
DVec.AddDouble 2.54
DVec.AddDouble 700
DVec.AddDouble 1
DVec.AddDouble 80000
DVec.AddDouble 80000
DVec.AddDouble 0.22
DVec.AddDouble 0.22
DVec.AddDouble 29510
DVec.AddDouble 5e-006
DVec.AddDouble 5e-006
DVec.AddDouble 3500
DVec.AddDouble 3500
DVec.AddDouble 25
Prop.FieldValues 3001, DVec
Set DVec = Synergy.CreateDoubleArray()
DVec.AddDouble 0
DVec.AddDouble 0
DVec.AddDouble 0
Prop.FieldValues 3913, DVec
PropEd.CommitChanges "Process Conditions"
( If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)
Message 3 of 5

bernor_mf
Advisor
Advisor
Accepted solution

Hi,

it should be possible for solver parameters as well:

 

When recording , via Process Settings, Advanced Options... Solver Parameters Edit...

 

This example uses

 3 = RSC or ARD-RSC model (determined by length)

 

Set PropEd = Synergy.PropertyEditor()
Set Prop = PropEd.FindProperty(10080, 1)
Set DVec = Synergy.CreateDoubleArray()
DVec.AddDouble 3
Prop.FieldValues 635, DVec
PropEd.CommitChanges "Process Conditions"

 

 

635 Calculate fiber orientation using

 

[data item 0] Calculate fiber orientation using

Data type

enumeration
  • 1 = Folgar-Tucker model with auto-calculated Ci
  • 2 = Folgar-Tucker model with specified Ci
  • 3 = RSC or ARD-RSC model (determined by length)
  • 4 = RSC model with specified Ci
  • 5 = ARD-RSC model for long fibers

 

If not, maybe a defect in release.

 

Hope this helps, and what you are looking for.

Regards,

Berndt

( If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)
Message 4 of 5

Anonymous
Not applicable

Hey Berndt,

 

thanks a lot,

with that Property Path it works.

Now I have Input to play with!

 

best regards

 

0 Likes
Message 5 of 5

bernor_mf
Advisor
Advisor

Hi,

happy to hear it resolves your issue.

 

Happy programming Smiley Happy

 

Regards,

Berndt

( If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)
0 Likes