News: Need training? HyperSizer Training Videos are available now! Learn more here: https://hypersizer.com/trainingevents/e-learning/

Author Topic: Laminate.AddPly()  (Read 25857 times)

oseresta

  • Client
  • **
  • Posts: 13
    •  
Laminate.AddPly()
« on: March 10, 2011, 01:42:11 PM »
The arguments for Laminate.AddPly(Angle as Single, Thickness as Single, Foamkey as String, Honeycombkey as String, Isotropickey as String, Orthotropickey as String, [object1=, object2=, object=]

unlike layup.AddPly(Angle as Single)

I want to add laminate with where each ply has a different orthotropic material property. In that case
1. Angle is KNOWN
2. Thickness = ? Do we need to put anything because orthotropic material has thickness or do we put the exact same thickness
3. Foamkey = ? what should be the input if the current ply is orthotropic only
3a. Honeycombkey = ?
4. Isotropickey = ?
5. Orthotropickey = Matl key for the orthotropic material
6. Object1, 2, and 3 = what do they stand for ?

Ryan

  • Administrator
  • *****
  • Posts: 145
    •  
Re: Laminate.AddPly()
« Reply #1 on: March 14, 2011, 02:57:20 AM »
2. If you want the thickness of the ply to be the thickness defined for the orthotropic material set thickness = 0.0. Setting a non-zero value will simply override the defined orthotropic material thickness.

3 - 5. If you want to apply an orthotropic material to the ply, set all other material type keys to blank strings.

6. The Object1, Object2, Object3 booleans refer to the HyperLaminate definitions L2, L3, L4. These arguments are optional.

Example:

Call hsLaminate.AddPly(sngAngle, 0#, "", "", "", strOrthoKey)

oseresta

  • Client
  • **
  • Posts: 13
    •  
Re: Laminate.AddPly()
« Reply #2 on: March 14, 2011, 06:53:43 AM »
newLam.AddPly(plyAngle,0.0,"","","",HS.Orthotropics.Item(2).MaterialKey)

The above statement is giving compiler error (syntax error)

Thanks
Omprakash

Phil

  • Administrator
  • *****
  • Posts: 218
    • HyperSizer Structural Sizing Software
    •  
Re: Laminate.AddPly()
« Reply #3 on: March 15, 2011, 10:58:29 AM »
Omprakash,

I apologize for the delay, our Object Model expert is out of town at a training class and has not had a chance to answer this question yet. I will pass along to him that you are awaiting an answer.

Phil

Phil

  • Administrator
  • *****
  • Posts: 218
    • HyperSizer Structural Sizing Software
    •  
Re: Laminate.AddPly()
« Reply #4 on: March 15, 2011, 11:00:22 AM »
Omprakash,

Can you tell me what version of HyperSizer you are running?

Phil

oseresta

  • Client
  • **
  • Posts: 13
    •  
Re: Laminate.AddPly()
« Reply #5 on: March 15, 2011, 11:38:18 AM »
Currently I am running 5.9. However, there are talks to upgrade it to 6.1 very soon.

Thanks
Omprakash Seresta

Ryan

  • Administrator
  • *****
  • Posts: 145
    •  
Re: Laminate.AddPly()
« Reply #6 on: March 15, 2011, 10:54:50 PM »
Assuming you are using VBA, remember the 'Call' keyword since this method is a subroutine.

Call newLam.AddPly(plyAngle,0.0,"","","",HS.Orthotropics.Item(2).MaterialKey)

oseresta

  • Client
  • **
  • Posts: 13
    •  
Re: Laminate.AddPly()
« Reply #7 on: March 16, 2011, 06:47:23 AM »
Thank you. It worked.