You are on page 1of 1

################################################################################

# property update after midsurfmesh


# author: adriano a. koga
# adriano@altair.com
# altair engineering do brasil
# 28/05/2014
# version 1.0
################################################################################

#open property selection panel


*createmarkpanel props 1 "Select properties to be isolated"

#extracts the list of props selected


set props_list [hm_getmark props 1]
*clearmark props 1

#for each prop in props_list


foreach propo $props_list {

#gets prop name


set prop_name [hm_getentityvalue props $propo name 1]

#creates a new component named with the prop name


*collectorcreateonly components $prop_name "" 5
*createmark components 1 -1

#indirectly assign property on component


*propertyupdate components 1 $prop_name
*clearmark comps 1

#selects all elements assigned with the current prop


*createmark elems 1 "by property id" $propo

#moves elements for the comp created


*movemark elements 1 $prop_name

#clear direct element assignment for property


*createmark elems 1 "by property id" $propo
*propertyupdate elements 1 ""
*clearmark elems 1
}
#

You might also like