Scripting help please! 2004-03-23 - By André Adam
Back Sorry, did a mistake, you will have to write it like this:
set myProp = AddProp ("Custom_parameter_list", , , A + "_my_param" )
Haven't been testing it before pressing the send button... kind of a bad habit.
-Andr�
Andr� Adam wrote:
> Something like this should work: > > set ReceiverElem = GetValue("SelectionList") > set MasterElem = PickElement.Value("PickedElement") > set A= Getvalue(MasterElem.Name) > set myProp = AddProp "Custom_parameter_list", , , A + "_my_param" > > This way you can reference the new property using the variable myProp. > > -Andr� > > Matthew Lowery wrote: > >> Ok this is something that I just can't see a way around so if someone >> can help me out it would be great. I have this script I'm trying to >> write that creates a custom parameter set based on the name an object >> that gets picked, like so: >> >> set ReceiverElem = GetValue("SelectionList") >> set MasterElem = PickElement.Value("PickedElement") >> set A= Getvalue(MasterElem.Name) >> AddProp "Custom_parameter_list", , , A + "_my_param" >> >> Ok so this works fine, now I want to add parameters to this newly >> created parameter set, but the parameter set's name changes depending >> on what object you picked during the picking session, so how do I >> select this parameter set so I can add parameters and reference those >> parameters later in the script? >> >> Thanks in advance, >> m@ >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|