Hi, I cant seem to create a single scripted profile. Even when I copy the example rpofile given in the help files, I get an error trying to save the profile afted import.
The error says - TypeError : module() takes most 2 arguments (3 given)
Can anyone explain what am I doing wrong? Below is the exapmle script from the help file that returns the error (every other code I attempted results in the same outcome)
import apache
class HeatingSetpointControl(apache.profile):
category = apache.Absolute
def evaluate(self):
toa = self.context.weather.ta
val = toa+2
return val
Cant create scripted profile
The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Jump to
- Announcements
- Virtual Environment Software
- ↳ VE (For Engineers and Architects)
- ↳ ModelBuilder
- ↳ ModelIT
- ↳ Component Modeller
- ↳ DXF drawings
- ↳ Importing from SketchUp
- ↳ Importing from Revit®
- ↳ Solar
- ↳ SunCast
- ↳ Thermal
- ↳ ApacheSim
- ↳ ApacheCalc/Loads
- ↳ ApacheHVAC
- ↳ MacroFlo
- ↳ Vista
- ↳ VistaPro
- ↳ Utilities
- ↳ Templates
- ↳ Weather
- ↳ Profiles
- ↳ Constructions
- ↳ Apache Systems
- ↳ Compliance and Ratings
- ↳ ASHRAE 90.1 App. G - PRM
- ↳ Part L2 - England & Wales
- ↳ ApacheSim(DSM) Method
- ↳ SBEM
- ↳ Section 6 - Scotland
- ↳ Part F - Northern Ireland
- ↳ Part L - Republic of Ireland
- ↳ Title 24
- ↳ General building compliance
- ↳ Lighting
- ↳ FlucsDL/Pro
- ↳ Radiance
- ↳ General Lighting
- ↳ Value & Cost
- ↳ DEFT
- ↳ CostPlan
- ↳ LifeCycle
- ↳ Egress
- ↳ Simulex
- ↳ LISI
- ↳ Mechanical
- ↳ IndusPro
- ↳ Airflow-CFD
- ↳ MicroFlo
- ↳ VE-Gaia
- ↳ Plug-Ins
- ↳ Revit plug-in
- ↳ Latest Update
- ↳ Frequently Asked Questions
- ↳ Known Issues
- ↳ Wish List
- ↳ SketchUp plug-in
- ↳ Latest Update
- ↳ Frequently Asked Questions
- ↳ Known Issues
- ↳ Wish List
- ↳ License Keys
- ↳ Good Practice
- ↳ VE Python API
- VE Community
- ↳ Welcome to the boards
- ↳ General discussion
- ↳ Suggestions
- VE-Pro in French
