How to add comment using OpenSTAAD (VBA)


       
  Applies To     
       
  Product(s): STAAD.Pro  
  Version(s): All  
  Environment:  N/A  
  Area:  OpenSTAAD  
  Subarea:  General  
  Original Author: Bentley Technical Support Group, Shreyanka Bhattacharjee  
       

 

 

 

 

 

 

 

 

Problem Description:

How to add comment using OpenSTAAD (VBA)

Solution:

 

As of now there is no OpenSTAAD function to add comment in the input editor. But windows functions can be used to perform this task.

This process explained above have been done in the attached .xlsm file.

  1. If you open the file, the input editor is read as text file
  2. If you run the code, the below syntax will be added above code DEFINE IS1893 2016 LOAD

*Zone Factor=0.36

*Importance Factor=1.2

*Soil Type=hard Soil

*Structure Type=1

  1. And then the .STD file will also be updated (Please change the location of the .STD file as per the requirement)

You can follow this process to add comment as per your requirement.

The code can be seen by clicking on View Code under Developer Tab.

If you require any OpenSTAAD function to add comment in the input editor, I would request you to post your suggestion in Bentley Ideas Portal

Link to Bentley Ideas Portal Pagehttps://staadpro.ideas.aha.io/

STAAD model and macro File:

communities.bentley.com/.../IS-1893-2016-Static-Seismic.STD

communities.bentley.com/.../Add-Comment.xlsm