We have decided to start using HCD graphics at our site and use the frsModules_Theme dynamo set. I am creating my first custom dynamo to have a similar look as these dynamos. I created my form, wrote my scripts, tested it and FAIL. I have two questions about the VB scripting behind my form:
1. The Edit script behind my dynamo has frmDyn.Open to open my form, but this only works if the form is on the current display. I obviously don't want to have the form on every graphic. How do I open the form if I store it in the User global file?
2. Below is a part of my UserForm_Active script. I do not know how to set Objdynamo to the current dynamo object so it gives me an error when my form opens - "Object variable or With block variable not set". So, my question is, how do I set Objdynamo equal to the current dynamo?
Dim objTest As Object
'Get Friendly NameSet objTest = NothingSet objTest = findlocalobject(Objdynamo, "ps_FriendlyName")If Not objTest Is Nothing Then FriendlyName.EditText = objTest.CurrentValueEnd If
Thanks for any help,
Kevin
In reply to Ben Bishop:
In reply to kdculb:
In reply to gdpike: