[esp-r] Issue on creating new predefined entities in esp-r

Clodoaldo Carvalho Filho clodoaldo at ufc.br
Tue May 2 18:25:19 BST 2023


Dear all

I am trying to create a predefined entity "standing_man" and save it in
predefined.db1 for later use.

So I inserted a new category named "people" after the existing category
"lighting":

*Category,people,People (visual+mass)

and put the following code at the end of predefined.db1 just before
"*End_category" line

*item,standing_man,standing man 720x160x1760mm (+y) # tag name menu entry
*incat,people
*includes,visual,mass
*sourced,Dimensions for a typical adult man.
*origin,0.0,0.0,0.0
*bounding_box,0.720,0.160,1.76
*Text
Adult standing man facing north (+y).
*End_text
#
*vertex,0.160,0.160,0.800  #   1
*vertex,0.160,0.160,1.560  #   2
*vertex,0.560,0.160,1.560  #   3
*vertex,0.560,0.160,0.800  #   4
#
*mass,seat,door,OPAQUE,4,1,2,3,4  #  1
*mass,seat_,door,OPAQUE,4,2,1,4,3  #  2
#
*vis,0.260,0.000,1.560,0.200,0.160,0.200,0.000,1.00,head,steel_pl_3mm  #
visual   1
*vis,0.160,0.000,0.800,0.400,0.160,0.760,0.000,1.00,trunk,steel_pl_3mm  #
visual   2
*vis,0.560,0.000,0.800,0.160,0.160,0.760,0.000,1.00,r_arm,steel_pl_3mm  #
visual   3
*vis,0.000,0.000,0.800,0.160,0.160,0.760,0.000,1.00,l_arm,steel_pl_3mm  #
visual   4
*vis,0.400,0.000,0.000,0.160,0.160,0.800,0.000,1.00,r_leg,door  # visual   5
*vis,0.160,0.000,0.000,0.160,0.160,0.800,0.000,1.00,l_leg,door  # visual   6
#
*end_item

Note that materials still have to be changed to match the real entity.

The problem I am facing is that ESP-r changes "a Office furniture
(visual+mass)" in the "Predefined categories" menu to "a standing_manture
(visual+mass)", looking as if it had merged the name of new item with the
description of first category "Office furniture (visual+mass)".
Furthermore, clicking in "a standing_manture (visual+mass)", ESP-r changes
"a standard swivel office chair" in the "Available predefined object" menu
to "a people      vel office chair" (the blank spaces seem to be the
complement of "people" to 12 char length string). By the way, the problem
spreads to the subsequent categories and items as new items are created in
the database.

What am I missing? Any help will be appreciated.

Best regards.

Clodoaldo.

*Prof. Clodoaldo de O. Carvalho Filho, Dr.*
Universidade Federal do Ceará
Depto. de Engenharia Mecânica
Lab. de Eficiência Energética no Conforto Ambiental - Coordenador
ASHRAE Fortaleza Student Branch - Advisor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20230502/c96ece24/attachment.html 


More information about the esp-r mailing list