Message 1 of 1
API: Set up: Scenario Object Error
Not applicable
11-26-2016
04:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I executed the following lines to start a new design study from scratch (using CFD Script Manager):
ds = Setup.DesignStudy.Create()
ds.add('design1', 'C:/Users/CFD2016_TESTS/cfd_export.stp') #import cad geometry
s = ds.getActiveScenario()
s.mesh()
However, it returns an error with "NoneType object has no attribute mesh"
I guess the current scenario is null for some reasons or it was not created.
What is my problem? How do I create a scenario object?