🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Using *createentitypanel for single entity selection

I need to ask the user to specify one and only one line. From what I understand (according to this help document: https://www.sharcnet.ca/Software/Hyperworks/help/hm/hmbat.htm?_createentitypanel.htm), the only way to accomplish that is by using *createentitypanel <entity_type> <message> followed by hm_info lastselectedentity <entity_type> to reference the selected entity.  However, when I use the code below, I always get the message 'No line selected'.

 *createentitypanel lines 'Select line' if {[hm_info lastselectedentity lines] == 0} {     hm_errormessage 'No line selected' }

What am I doing wrong?

Find more posts tagged with

Sort by:
1 - 2 of 21